diff options
Diffstat (limited to 'adb/adb.h')
-rw-r--r-- | adb/adb.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -56,6 +56,7 @@ std::string adb_version(); // Increment this when we want to force users to start a new adb server. #define ADB_SERVER_VERSION 39 +using TransportId = uint64_t; class atransport; struct amessage { @@ -149,7 +150,7 @@ atransport* find_emulator_transport_by_console_port(int console_port); int service_to_fd(const char* name, const atransport* transport); #if ADB_HOST -asocket *host_service_to_socket(const char* name, const char *serial); +asocket* host_service_to_socket(const char* name, const char* serial, TransportId transport_id); #endif #if !ADB_HOST @@ -159,7 +160,8 @@ asocket* create_jdwp_tracker_service_socket(); int create_jdwp_connection_fd(int jdwp_pid); #endif -int handle_forward_request(const char* service, TransportType type, const char* serial, int reply_fd); +int handle_forward_request(const char* service, TransportType type, const char* serial, + TransportId transport_id, int reply_fd); #if !ADB_HOST void framebuffer_service(int fd, void *cookie); @@ -216,7 +218,8 @@ extern int SHELL_EXIT_NOTIFY_FD; #define USB_FFS_ADB_IN USB_FFS_ADB_EP(ep2) #endif -int handle_host_request(const char* service, TransportType type, const char* serial, int reply_fd, asocket *s); +int handle_host_request(const char* service, TransportType type, const char* serial, + TransportId transport_id, int reply_fd, asocket* s); void handle_online(atransport *t); void handle_offline(atransport *t); |