1094 Commits (61b6324ee902f48da4c4e6a76b3123e8768b4a9f)

Author SHA1 Message Date
Romain Vimont dca2c5f94f Require SDL >= 2.0.5
4 years ago
Romain Vimont 90cf956f57 Remove spurious ';'
4 years ago
Romain Vimont 36c8778d2d Add missing comma
4 years ago
Romain Vimont ae90ef22db Add a unit test for clipboard text length
4 years ago
Yu-Chen Lin d80bc25eba Fix overflow in memcpy
4 years ago
Yu-Chen Lin daa06abd34 Fix comment in control message serialization
4 years ago
Romain Vimont 94702a4309 Fix memset() size in tests
4 years ago
Romain Vimont 65fbec9643 Mention SCRCPY_ICON_PATH env var in manpage
4 years ago
Romain Vimont 64a04b8d4a Fix process execution on Windows 7
4 years ago
Romain Vimont 86c91e183d Log CreateProcessW() error code on Windows
4 years ago
Romain Vimont e2b3968c66 Always synchronize clipboard on explicit COPY/CUT
4 years ago
Romain Vimont cbe73b0bc3 Fix set_clipboard message log
4 years ago
Romain Vimont bd56d81f72 Add --raw-key-events
4 years ago
Romain Vimont 5e918ac0c3 Use enum for key injection mode
4 years ago
Romain Vimont 0c0f62e4ab Use static maps to convert input events
4 years ago
Romain Vimont c96505200a Fix code style in keyboard_inject
4 years ago
Romain Vimont 82a053015d Improve HID keyboard documentation
4 years ago
Romain Vimont 19858e6aeb Add --tcpip feature
4 years ago
Romain Vimont 3b310f8317 Extract interruptible sleep for server
4 years ago
Romain Vimont 800ba33ff4 Add function to read an adb property
4 years ago
Romain Vimont 8543d842ea Add function to switch device to TCP/IP mode
4 years ago
Romain Vimont f609b406c9 Add function to find the device IP address
4 years ago
Romain Vimont b7e631791c Add util function to remove trailing '\r'
4 years ago
Romain Vimont b52f87a892 Add util function to locate a column in a string
4 years ago
Romain Vimont 3bf6fd2894 Workaround "adb connect" error detection
4 years ago
Romain Vimont bfce22414f Add adb connect and disconnect
4 years ago
Romain Vimont e6e6f865a0 Add adb flag to disable execution error logs
4 years ago
Romain Vimont e3d4aa8c5d Use flags for adb commands
4 years ago
Romain Vimont f801d8b312 Expose flags for process execution
4 years ago
Romain Vimont b9b8b6aab8 Simplify Windows process inheritance configuration
4 years ago
Romain Vimont 3e54773c48 Remove intermediate static functions from adb.c
4 years ago
Romain Vimont b90c89766b Set CLOEXEC flag on sockets
4 years ago
Romain Vimont 904f0ae61e Check process success locally for adb commands
4 years ago
Romain Vimont 680d2cc940 Extract command argv building
4 years ago
Romain Vimont 8ed3328055 Use unsigned for connection attempts count
4 years ago
Romain Vimont d31725f077 Reorder cli sanity checks
4 years ago
Romain Vimont b0eb1a55d6 Fix adb get-serialno error handling
4 years ago
Romain Vimont 3653fb6b15 Add OutOfMemory log helper
4 years ago
Romain Vimont 92a458e846 Remove unreachable return statements
4 years ago
Romain Vimont 73e0311d14 Add missing return on file_handler failure
4 years ago
Romain Vimont 007f616302 Add missing includes
4 years ago
Romain Vimont 7b29f5fd2d Do not pass default values to the server
4 years ago
Romain Vimont 04e5537f8c Pass server parameters as key=value pairs
4 years ago
Romain Vimont 2eb881c5f1 Allocate and format server command args
4 years ago
Romain Vimont 5434ea543c Remove local "serial" variable
4 years ago
Romain Vimont d5f6697f3a Add (v)asprintf compatibility functions
4 years ago
Romain Vimont d6c0054545 Move check_functions in meson script
4 years ago
Romain Vimont 6f487a2892 Add missing includes in compat implementation
4 years ago
Romain Vimont dc0ac01e00 Define common feature test macros for all systems
4 years ago
Romain Vimont 6abff46c9f Add option to disable clipboard autosync
4 years ago
Romain Vimont 5d17bcf1bc Wait SET_CLIPBOARD ack before Ctrl+v via HID
4 years ago
Romain Vimont 2d5525eac1 Move PRIu64 Windows workaround to compat.h
4 years ago
Romain Vimont 2a0730ee9b Add device clipboard set acknowledgement
4 years ago
Romain Vimont 901d837165 Add sequence number to set_clipboard request
4 years ago
Romain Vimont aba1fc03c3 Add acksync helper to wait for acks
4 years ago
Romain Vimont 5b3856c3b6 Explicitly indicate when device clipboard is set
4 years ago
Romain Vimont 854de9659a Do not inject Ctrl+v if clipboard sync failed
4 years ago
Romain Vimont ea8028332c Synchronize computer-to-device empty clipboard
4 years ago
Romain Vimont 0427a981e5 Use UINT64_C macro for uint64_t constant in tests
4 years ago
Romain Vimont 68eaee5bb0 Force adb forward if tunnel host/port is provided
4 years ago
RipleyTom 7bdbde7363 Add options to configure tunnel host and port
4 years ago
RipleyTom 52e5181c84 Add function to parse IPv4 addresses
4 years ago
Romain Vimont ba547e3895 Configure feature test macros in meson
4 years ago
Romain Vimont 226f3b2c91 Add missing include config.h
4 years ago
Romain Vimont 6da6d905c2 Print scrcpy header first
4 years ago
Romain Vimont b25404ee4b Print help to stdout
4 years ago
Romain Vimont 4cfc1cd70a Assert that long options are correctly set
4 years ago
Romain Vimont 2fc80eae2d Simplify adb_tunnel
4 years ago
Romain Vimont 3fdbd994e0 Privatize low-level adb functions
4 years ago
Romain Vimont ce225f019a Use new user-friendly adb API
4 years ago
Romain Vimont b7559744a7 Expose new user-friendly adb functions
4 years ago
Romain Vimont afb5a5e80f Rename adb functions to adb_exec_*
4 years ago
Romain Vimont 84334cf7db Use sc_intr in file_handler
4 years ago
Romain Vimont 0ba2686e1d Simplify file_handler
4 years ago
Romain Vimont 55648d4d64 Improve file_handler readability
4 years ago
Romain Vimont 13fd693b50 Simplify adb_execute_p()
4 years ago
Romain Vimont 0426ae885c Make "adb get-serialno" interruptible
4 years ago
Romain Vimont ea454e9cee Add interruptible function to read from pipe
4 years ago
Romain Vimont cb65531533 Simplify sc_str_truncate()
4 years ago
Romain Vimont 9619ade706 Generalize string trunctation util function
4 years ago
Romain Vimont f2781a8b6d Expose util function to truncate first line
4 years ago
Romain Vimont 443cb14d6e Assume non-NULL serial in file_handler
4 years ago
Romain Vimont b30c3a429f Always retrieve device serial
4 years ago
Romain Vimont 632bd5697b Add missing error handling
4 years ago
Romain Vimont de50846905 Close process on check success
4 years ago
Romain Vimont 9cb14b5166 Inherit only specific handles on Windows
4 years ago
Romain Vimont 9cb8766220 Factorize resource release after CreateProcess()
4 years ago
Romain Vimont fd4ec784e0 Remove useless assignments on error
4 years ago
Romain Vimont 52cebe1597 Fix Windows sc_pipe function names
4 years ago
Romain Vimont 6a27062f48 Stop connection attempts if interrupted
4 years ago
Romain Vimont 739ff9dce0 Fix compilation errors with old SDL versions
4 years ago
Romain Vimont 45b0f8123a Increase delay to inject HID on Ctrl+v
4 years ago
Romain Vimont c1a34881d7 Use sc_ prefix for server
4 years ago
Romain Vimont 057c7a4df4 Move str_util to str
4 years ago
Romain Vimont 979ce64dc0 Improve string util API
4 years ago
Romain Vimont 9a0bd545d5 Rename SC_INVALID_SOCKET to SC_SOCKET_NONE
4 years ago
Romain Vimont c4d008b96a Extract adb tunnel to a separate component
4 years ago
Romain Vimont 0d45c29d13 Move IPV4_LOCALHOST to net.h
4 years ago
Romain Vimont 37c840a4c8 Interrupt on process terminated
4 years ago
Romain Vimont f488cbd7e7 Make server interruptible
4 years ago
Romain Vimont 40340509d9 Add interruptor utilities
4 years ago
Romain Vimont e0896142db Introduce interruptor tool
4 years ago
Romain Vimont 0426708544 Run the server from a dedicated thread
4 years ago
Romain Vimont 5b9c88693e Wait using a condition variable in server
4 years ago
Romain Vimont a54dc8212f Reorder server functions
4 years ago
Romain Vimont 882e4cff5f Copy server params
4 years ago
Romain Vimont 9fa4d1cd4a Reorder server and server_params
4 years ago
Romain Vimont 0bfa75a48b Split socket creation and connect/listen
4 years ago
Romain Vimont ed19901db1 Set video and control sockets only on success
4 years ago
Romain Vimont e69356c550 Initialize tunnel_enabled flag internally
4 years ago
Romain Vimont 03de9224fc Introduce process observer
4 years ago
Romain Vimont aa011832c1 Improve process API
4 years ago
Romain Vimont 7e93abcf6d Factorize common impl of process_execute()
4 years ago
Romain Vimont e80e6631e4 Remove duplicate function declaration
4 years ago
Romain Vimont fcc04f967b Improve file API
4 years ago
Romain Vimont d4c262301f Move functions from process to file
4 years ago
Romain Vimont be55e250ca Make screen_render() static
4 years ago
Romain Vimont 7a733328bc Adapt help to terminal size
4 years ago
Romain Vimont 38332f683c Add util function to get terminal size
4 years ago
Romain Vimont 3f51a2ab43 Generate getopt params from option structures
4 years ago
Romain Vimont 74ab0a4df8 Structure shortcuts help
4 years ago
Romain Vimont f59e9e3cb0 Structure command line options help
4 years ago
Romain Vimont 9ec3406568 Add line wrapper
4 years ago
Romain Vimont 6dba1922c1 Add string buffer util
4 years ago
Romain Vimont 570a003c39 Remove deprecated -T option
4 years ago
Romain Vimont b62df7ee91 Remove deprecated -c option
4 years ago
Romain Vimont 30d40f4e78 Document --power-off-on-close
4 years ago
Romain Vimont f489f7fcad Mention drag & drop for non-APK files in help
4 years ago
Romain Vimont f65c3fde69 Fix typos in help
4 years ago
Romain Vimont 48fcfa96ab Add missing include "common.h"
4 years ago
Romain Vimont 676fa73d2c Wrap device name and size in a struct
4 years ago
Romain Vimont 58ea238fb2 Remove unnecessary variable
4 years ago
Romain Vimont 13c4aa1a3b Disable synthetic mouse events from touch events
4 years ago
Romain Vimont caf594c90e Split SDL initialization
4 years ago
Romain Vimont 688477ff65 Move SDL initialization
4 years ago
Romain Vimont ac539e1312 Set SDL hints before initialization
4 years ago
Romain Vimont a57c7d3a2b Extract SDL hints
4 years ago
Romain Vimont d2d18466d4 Factorize SDL event push
4 years ago
Romain Vimont dae091e3ab Handle SDL_PushEvent() errors
4 years ago
Romain Vimont 4c4381de4c Use sc_ prefix for size, position and point
4 years ago
Romain Vimont 06131ef634 Fix typo in clock comments
4 years ago
Romain Vimont 34eb10ea0b Define v4l2 option field only if HAVE_V4L2
4 years ago
Romain Vimont 27fa23846d Define default options as const struct
4 years ago
Romain Vimont e4d5c1ce36 Move scrcpy option structs to options.h
4 years ago
Romain Vimont ac23bec144 Expose socket interruption
4 years ago
Romain Vimont e5ea13770b Add socket wrapper
4 years ago
Romain Vimont 3eac212af1 Use net_send() from net_send_all()
4 years ago
Romain Vimont 3adff37c2d Use sc_ prefix for sockets
4 years ago
Romain Vimont eb6afe7669 Move net_init() and net_cleanup() upwards
4 years ago
Romain Vimont e4163321f0 Delay HID events on Ctrl+v
4 years ago
Romain Vimont c96874b257 Synchronize HID keyboard state on first event
4 years ago
Romain Vimont 511356710d Retrieve device serial for AOA
4 years ago
Romain Vimont d55015e4cf Expose function to get the device serial
4 years ago
Romain Vimont 0681480809 Add read_pipe_all()
4 years ago
Romain Vimont 96b18dabaa Expose adb execution with redirection
4 years ago
Romain Vimont eaf4afaad9 Add command execution with redirection
4 years ago
Alynx Zhou 207082977a Add support for USB HID keyboard over AOAv2
4 years ago
Romain Vimont f7d1efdf1d Extract mouse processor trait
4 years ago
Romain Vimont bcf5a9750f Extract keyboard processor trait
4 years ago
Romain Vimont 056d36ce4a Fix trait header guards
4 years ago
Romain Vimont 1e340caf76 Remove legacy scrcpy icon
4 years ago
Romain Vimont 6004f0b6b0 Use a new scrcpy icon
4 years ago
Romain Vimont 12ed2f2402 Add support for palette icon formats
4 years ago
Romain Vimont 0e4564da03 Add icon loader
4 years ago
Romain Vimont 156d958e77 Move common instruction out of ifdef
4 years ago
Romain Vimont 7229e3cce0 Extract util function to build a local file path
4 years ago
Romain Vimont a7e41b0f85 Fix code style
4 years ago
zhongkaizhu 46d3e35c30 Fix "Could not find v4l2 muxer"
4 years ago
Romain Vimont 07d75eb336 Simplify net_send_all()
4 years ago
Romain Vimont 31131039bb Add missing includes
4 years ago
Romain Vimont 1d1c9f36f4 Retrieve correct error messages on Windows
4 years ago
Romain Vimont 4d6dd9d281 Compute scrcpy directory manually
4 years ago
a1346054 b5e98db635 Fix typo in manpage
4 years ago
Romain Vimont 3761f56c28 Declare callbacks static
4 years ago
Romain Vimont f78608ab29 Fix type for assignment
5 years ago
Romain Vimont 6f03022646 Fix net_send_all()
5 years ago
Romain Vimont daf90d33d5 Fix code style
5 years ago
Romain Vimont 0ae10f2b39 Improve slope estimation on start
5 years ago
Romain Vimont 4c4d02295c Add buffering debugging tools
5 years ago
Romain Vimont 2f03141e9f Add clock tests
5 years ago
Romain Vimont 3397720330 Add buffering command line options
5 years ago
Romain Vimont 79278961b9 Implement buffering
5 years ago
Romain Vimont 408a301201 Notify new frames via callbacks
5 years ago
Romain Vimont 4d8bcfc68a Extract current video_buffer to frame_buffer
5 years ago
Romain Vimont 336248df08 Rename video_buffer to sc_video_buffer
5 years ago
Romain Vimont 28bce48d47 Relax v4l2_sink lock constraints
5 years ago
Romain Vimont 32e692d5d2 Replace delay by deadline in timedwait()
5 years ago
Romain Vimont ec871dd3f5 Wrap tick API
5 years ago
Romain Vimont 5524f378c8 Add missing error log
5 years ago
Romain Vimont 4ed3aa3604 Move include fps_counter
5 years ago
Romain Vimont 40cea1f677 Remove obsolete comment
5 years ago
Romain Vimont 099cba07f0 Rename queue to sc_queue
5 years ago
Romain Vimont af8a21ed7c Fix manpage formatting
5 years ago
Romain Vimont 5938e862a1 Fix --lock-video-orientation syntax in help
5 years ago
Romain Vimont e9096e3e34 Remove unnecessary calls to av_packet_unref()
5 years ago
Romain Vimont 5caeab5f6d Fix v4l2 data race
5 years ago
Romain Vimont 33fbdc86c7 Initialize fields before starting a thread
5 years ago
Romain Vimont f33d37976c Fix assertion race condition in debug mode
5 years ago
Romain Vimont 7dca5078e7 Initialize controller even if there is no display
5 years ago
Wirtos_new a9d9cbf8b5 Replace VLA by dynamic allocation
5 years ago