956 Commits (cfcbc2ac218612b2e9d2322ceb98ec99d7cd9381)

Author SHA1 Message Date
Romain Vimont 92a458e846 Remove unreachable return statements
5 years ago
Romain Vimont 73e0311d14 Add missing return on file_handler failure
5 years ago
Romain Vimont 007f616302 Add missing includes
5 years ago
Romain Vimont 7b29f5fd2d Do not pass default values to the server
5 years ago
Romain Vimont 04e5537f8c Pass server parameters as key=value pairs
5 years ago
Romain Vimont 2eb881c5f1 Allocate and format server command args
5 years ago
Romain Vimont 5434ea543c Remove local "serial" variable
5 years ago
Romain Vimont d5f6697f3a Add (v)asprintf compatibility functions
5 years ago
Romain Vimont d6c0054545 Move check_functions in meson script
5 years ago
Romain Vimont 6f487a2892 Add missing includes in compat implementation
5 years ago
Romain Vimont dc0ac01e00 Define common feature test macros for all systems
5 years ago
Romain Vimont 6abff46c9f Add option to disable clipboard autosync
5 years ago
Romain Vimont 5d17bcf1bc Wait SET_CLIPBOARD ack before Ctrl+v via HID
5 years ago
Romain Vimont 2d5525eac1 Move PRIu64 Windows workaround to compat.h
5 years ago
Romain Vimont 2a0730ee9b Add device clipboard set acknowledgement
5 years ago
Romain Vimont 901d837165 Add sequence number to set_clipboard request
5 years ago
Romain Vimont aba1fc03c3 Add acksync helper to wait for acks
5 years ago
Romain Vimont 5b3856c3b6 Explicitly indicate when device clipboard is set
5 years ago
Romain Vimont 854de9659a Do not inject Ctrl+v if clipboard sync failed
5 years ago
Romain Vimont ea8028332c Synchronize computer-to-device empty clipboard
5 years ago
Romain Vimont 0427a981e5 Use UINT64_C macro for uint64_t constant in tests
5 years ago
Romain Vimont 68eaee5bb0 Force adb forward if tunnel host/port is provided
5 years ago
RipleyTom 7bdbde7363 Add options to configure tunnel host and port
5 years ago
RipleyTom 52e5181c84 Add function to parse IPv4 addresses
5 years ago
Romain Vimont ba547e3895 Configure feature test macros in meson
5 years ago
Romain Vimont 226f3b2c91 Add missing include config.h
5 years ago
Romain Vimont 6da6d905c2 Print scrcpy header first
5 years ago
Romain Vimont b25404ee4b Print help to stdout
5 years ago
Romain Vimont 4cfc1cd70a Assert that long options are correctly set
5 years ago
Romain Vimont 2fc80eae2d Simplify adb_tunnel
5 years ago
Romain Vimont 3fdbd994e0 Privatize low-level adb functions
5 years ago
Romain Vimont ce225f019a Use new user-friendly adb API
5 years ago
Romain Vimont b7559744a7 Expose new user-friendly adb functions
5 years ago
Romain Vimont afb5a5e80f Rename adb functions to adb_exec_*
5 years ago
Romain Vimont 84334cf7db Use sc_intr in file_handler
5 years ago
Romain Vimont 0ba2686e1d Simplify file_handler
5 years ago
Romain Vimont 55648d4d64 Improve file_handler readability
5 years ago
Romain Vimont 13fd693b50 Simplify adb_execute_p()
5 years ago
Romain Vimont 0426ae885c Make "adb get-serialno" interruptible
5 years ago
Romain Vimont ea454e9cee Add interruptible function to read from pipe
5 years ago
Romain Vimont cb65531533 Simplify sc_str_truncate()
5 years ago
Romain Vimont 9619ade706 Generalize string trunctation util function
5 years ago
Romain Vimont f2781a8b6d Expose util function to truncate first line
5 years ago
Romain Vimont 443cb14d6e Assume non-NULL serial in file_handler
5 years ago
Romain Vimont b30c3a429f Always retrieve device serial
5 years ago
Romain Vimont 632bd5697b Add missing error handling
5 years ago
Romain Vimont de50846905 Close process on check success
5 years ago
Romain Vimont 9cb14b5166 Inherit only specific handles on Windows
5 years ago
Romain Vimont 9cb8766220 Factorize resource release after CreateProcess()
5 years ago
Romain Vimont fd4ec784e0 Remove useless assignments on error
5 years ago
Romain Vimont 52cebe1597 Fix Windows sc_pipe function names
5 years ago
Romain Vimont 6a27062f48 Stop connection attempts if interrupted
5 years ago
Romain Vimont 739ff9dce0 Fix compilation errors with old SDL versions
5 years ago
Romain Vimont 45b0f8123a Increase delay to inject HID on Ctrl+v
5 years ago
Romain Vimont c1a34881d7 Use sc_ prefix for server
5 years ago
Romain Vimont 057c7a4df4 Move str_util to str
5 years ago
Romain Vimont 979ce64dc0 Improve string util API
5 years ago
Romain Vimont 9a0bd545d5 Rename SC_INVALID_SOCKET to SC_SOCKET_NONE
5 years ago
Romain Vimont c4d008b96a Extract adb tunnel to a separate component
5 years ago
Romain Vimont 0d45c29d13 Move IPV4_LOCALHOST to net.h
5 years ago
Romain Vimont 37c840a4c8 Interrupt on process terminated
5 years ago
Romain Vimont f488cbd7e7 Make server interruptible
5 years ago
Romain Vimont 40340509d9 Add interruptor utilities
5 years ago
Romain Vimont e0896142db Introduce interruptor tool
5 years ago
Romain Vimont 0426708544 Run the server from a dedicated thread
5 years ago
Romain Vimont 5b9c88693e Wait using a condition variable in server
5 years ago
Romain Vimont a54dc8212f Reorder server functions
5 years ago
Romain Vimont 882e4cff5f Copy server params
5 years ago
Romain Vimont 9fa4d1cd4a Reorder server and server_params
5 years ago
Romain Vimont 0bfa75a48b Split socket creation and connect/listen
5 years ago
Romain Vimont ed19901db1 Set video and control sockets only on success
5 years ago
Romain Vimont e69356c550 Initialize tunnel_enabled flag internally
5 years ago
Romain Vimont 03de9224fc Introduce process observer
5 years ago
Romain Vimont aa011832c1 Improve process API
5 years ago
Romain Vimont 7e93abcf6d Factorize common impl of process_execute()
5 years ago
Romain Vimont e80e6631e4 Remove duplicate function declaration
5 years ago
Romain Vimont fcc04f967b Improve file API
5 years ago
Romain Vimont d4c262301f Move functions from process to file
5 years ago
Romain Vimont be55e250ca Make screen_render() static
5 years ago
Romain Vimont 7a733328bc Adapt help to terminal size
5 years ago
Romain Vimont 38332f683c Add util function to get terminal size
5 years ago
Romain Vimont 3f51a2ab43 Generate getopt params from option structures
5 years ago
Romain Vimont 74ab0a4df8 Structure shortcuts help
5 years ago
Romain Vimont f59e9e3cb0 Structure command line options help
5 years ago
Romain Vimont 9ec3406568 Add line wrapper
5 years ago
Romain Vimont 6dba1922c1 Add string buffer util
5 years ago
Romain Vimont 570a003c39 Remove deprecated -T option
5 years ago
Romain Vimont b62df7ee91 Remove deprecated -c option
5 years ago
Romain Vimont 30d40f4e78 Document --power-off-on-close
5 years ago
Romain Vimont f489f7fcad Mention drag & drop for non-APK files in help
5 years ago
Romain Vimont f65c3fde69 Fix typos in help
5 years ago
Romain Vimont 48fcfa96ab Add missing include "common.h"
5 years ago
Romain Vimont 676fa73d2c Wrap device name and size in a struct
5 years ago
Romain Vimont 58ea238fb2 Remove unnecessary variable
5 years ago
Romain Vimont 13c4aa1a3b Disable synthetic mouse events from touch events
5 years ago
Romain Vimont caf594c90e Split SDL initialization
5 years ago
Romain Vimont 688477ff65 Move SDL initialization
5 years ago
Romain Vimont ac539e1312 Set SDL hints before initialization
5 years ago
Romain Vimont a57c7d3a2b Extract SDL hints
5 years ago
Romain Vimont d2d18466d4 Factorize SDL event push
5 years ago