The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2007 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | #ifndef __ADB_H |
| 18 | #define __ADB_H |
| 19 | |
| 20 | #include <limits.h> |
Dan Albert | 7664901 | 2015-02-24 15:51:19 -0800 | [diff] [blame] | 21 | #include <sys/types.h> |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 22 | |
leozwang | d3fc15f | 2014-07-29 12:50:02 -0700 | [diff] [blame] | 23 | #include "adb_trace.h" |
Dan Albert | 630b9af | 2014-11-24 23:34:35 -0800 | [diff] [blame] | 24 | #include "fdevent.h" |
JP Abgrall | 408fa57 | 2011-03-16 15:57:42 -0700 | [diff] [blame] | 25 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 26 | #define MAX_PAYLOAD 4096 |
| 27 | |
| 28 | #define A_SYNC 0x434e5953 |
| 29 | #define A_CNXN 0x4e584e43 |
| 30 | #define A_OPEN 0x4e45504f |
| 31 | #define A_OKAY 0x59414b4f |
| 32 | #define A_CLSE 0x45534c43 |
| 33 | #define A_WRTE 0x45545257 |
Benoit Goby | d5fcafa | 2012-04-12 12:23:49 -0700 | [diff] [blame] | 34 | #define A_AUTH 0x48545541 |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 35 | |
Dan Albert | 7664901 | 2015-02-24 15:51:19 -0800 | [diff] [blame] | 36 | // ADB protocol version. |
| 37 | #define A_VERSION 0x01000000 |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 38 | |
Dan Albert | 7664901 | 2015-02-24 15:51:19 -0800 | [diff] [blame] | 39 | // Used for help/version information. |
| 40 | #define ADB_VERSION_MAJOR 1 |
| 41 | #define ADB_VERSION_MINOR 0 |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 42 | |
Dan Albert | 7664901 | 2015-02-24 15:51:19 -0800 | [diff] [blame] | 43 | // Increment this when we want to force users to start a new adb server. |
| 44 | #define ADB_SERVER_VERSION 32 |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 45 | |
Elliott Hughes | 2d4121c | 2015-04-17 09:47:42 -0700 | [diff] [blame] | 46 | struct atransport; |
| 47 | struct usb_handle; |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 48 | |
| 49 | struct amessage { |
| 50 | unsigned command; /* command identifier constant */ |
| 51 | unsigned arg0; /* first argument */ |
| 52 | unsigned arg1; /* second argument */ |
| 53 | unsigned data_length; /* length of payload (0 is allowed) */ |
| 54 | unsigned data_check; /* checksum of data payload */ |
| 55 | unsigned magic; /* command ^ 0xffffffff */ |
| 56 | }; |
| 57 | |
| 58 | struct apacket |
| 59 | { |
| 60 | apacket *next; |
| 61 | |
| 62 | unsigned len; |
| 63 | unsigned char *ptr; |
| 64 | |
| 65 | amessage msg; |
| 66 | unsigned char data[MAX_PAYLOAD]; |
| 67 | }; |
| 68 | |
| 69 | /* An asocket represents one half of a connection between a local and |
| 70 | ** remote entity. A local asocket is bound to a file descriptor. A |
| 71 | ** remote asocket is bound to the protocol engine. |
| 72 | */ |
| 73 | struct asocket { |
| 74 | /* chain pointers for the local/remote list of |
| 75 | ** asockets that this asocket lives in |
| 76 | */ |
| 77 | asocket *next; |
| 78 | asocket *prev; |
| 79 | |
| 80 | /* the unique identifier for this asocket |
| 81 | */ |
| 82 | unsigned id; |
| 83 | |
| 84 | /* flag: set when the socket's peer has closed |
| 85 | ** but packets are still queued for delivery |
| 86 | */ |
| 87 | int closing; |
| 88 | |
Benoit Goby | f366b36 | 2012-03-16 14:50:07 -0700 | [diff] [blame] | 89 | /* flag: quit adbd when both ends close the |
| 90 | ** local service socket |
| 91 | */ |
| 92 | int exit_on_close; |
| 93 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 94 | /* the asocket we are connected to |
| 95 | */ |
| 96 | |
| 97 | asocket *peer; |
| 98 | |
| 99 | /* For local asockets, the fde is used to bind |
| 100 | ** us to our fd event system. For remote asockets |
| 101 | ** these fields are not used. |
| 102 | */ |
| 103 | fdevent fde; |
| 104 | int fd; |
| 105 | |
| 106 | /* queue of apackets waiting to be written |
| 107 | */ |
| 108 | apacket *pkt_first; |
| 109 | apacket *pkt_last; |
| 110 | |
| 111 | /* enqueue is called by our peer when it has data |
| 112 | ** for us. It should return 0 if we can accept more |
| 113 | ** data or 1 if not. If we return 1, we must call |
| 114 | ** peer->ready() when we once again are ready to |
| 115 | ** receive data. |
| 116 | */ |
| 117 | int (*enqueue)(asocket *s, apacket *pkt); |
| 118 | |
| 119 | /* ready is called by the peer when it is ready for |
| 120 | ** us to send data via enqueue again |
| 121 | */ |
| 122 | void (*ready)(asocket *s); |
| 123 | |
David 'Digit' Turner | 818d641 | 2013-12-13 14:09:44 +0100 | [diff] [blame] | 124 | /* shutdown is called by the peer before it goes away. |
| 125 | ** the socket should not do any further calls on its peer. |
| 126 | ** Always followed by a call to close. Optional, i.e. can be NULL. |
| 127 | */ |
| 128 | void (*shutdown)(asocket *s); |
| 129 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 130 | /* close is called by the peer when it has gone away. |
| 131 | ** we are not allowed to make any further calls on the |
| 132 | ** peer once our close method is called. |
| 133 | */ |
| 134 | void (*close)(asocket *s); |
| 135 | |
Benoit Goby | 9470c2f | 2013-02-20 15:04:53 -0800 | [diff] [blame] | 136 | /* A socket is bound to atransport */ |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 137 | atransport *transport; |
| 138 | }; |
| 139 | |
| 140 | |
| 141 | /* the adisconnect structure is used to record a callback that |
| 142 | ** will be called whenever a transport is disconnected (e.g. by the user) |
| 143 | ** this should be used to cleanup objects that depend on the |
| 144 | ** transport (e.g. remote sockets, listeners, etc...) |
| 145 | */ |
| 146 | struct adisconnect |
| 147 | { |
| 148 | void (*func)(void* opaque, atransport* t); |
| 149 | void* opaque; |
| 150 | adisconnect* next; |
| 151 | adisconnect* prev; |
| 152 | }; |
| 153 | |
| 154 | |
| 155 | /* a transport object models the connection to a remote device or emulator |
| 156 | ** there is one transport per connected device/emulator. a "local transport" |
| 157 | ** connects through TCP (for the emulator), while a "usb transport" through |
| 158 | ** USB (for real devices) |
| 159 | ** |
| 160 | ** note that kTransportHost doesn't really correspond to a real transport |
| 161 | ** object, it's a special value used to indicate that a client wants to |
| 162 | ** connect to a service implemented within the ADB server itself. |
| 163 | */ |
Elliott Hughes | 3bd73c1 | 2015-05-05 13:10:43 -0700 | [diff] [blame] | 164 | enum TransportType { |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 165 | kTransportUsb, |
| 166 | kTransportLocal, |
| 167 | kTransportAny, |
| 168 | kTransportHost, |
Elliott Hughes | 2d4121c | 2015-04-17 09:47:42 -0700 | [diff] [blame] | 169 | }; |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 170 | |
Benoit Goby | d5fcafa | 2012-04-12 12:23:49 -0700 | [diff] [blame] | 171 | #define TOKEN_SIZE 20 |
| 172 | |
Dan Albert | dcd78a1 | 2015-05-18 16:43:57 -0700 | [diff] [blame^] | 173 | enum ConnectionState { |
| 174 | kCsAny = -1, |
| 175 | kCsOffline = 0, |
| 176 | kCsBootloader, |
| 177 | kCsDevice, |
| 178 | kCsHost, |
| 179 | kCsRecovery, |
| 180 | kCsNoPerm, // Insufficient permissions to communicate with the device. |
| 181 | kCsSideload, |
| 182 | kCsUnauthorized, |
| 183 | }; |
| 184 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 185 | struct atransport |
| 186 | { |
| 187 | atransport *next; |
| 188 | atransport *prev; |
| 189 | |
| 190 | int (*read_from_remote)(apacket *p, atransport *t); |
| 191 | int (*write_to_remote)(apacket *p, atransport *t); |
| 192 | void (*close)(atransport *t); |
| 193 | void (*kick)(atransport *t); |
| 194 | |
| 195 | int fd; |
| 196 | int transport_socket; |
| 197 | fdevent transport_fde; |
| 198 | int ref_count; |
| 199 | unsigned sync_token; |
| 200 | int connection_state; |
Benoit Goby | d5fcafa | 2012-04-12 12:23:49 -0700 | [diff] [blame] | 201 | int online; |
Elliott Hughes | 3bd73c1 | 2015-05-05 13:10:43 -0700 | [diff] [blame] | 202 | TransportType type; |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 203 | |
| 204 | /* usb handle or socket fd as needed */ |
| 205 | usb_handle *usb; |
| 206 | int sfd; |
| 207 | |
| 208 | /* used to identify transports for clients */ |
| 209 | char *serial; |
| 210 | char *product; |
Scott Anderson | e82c2db | 2012-05-25 14:10:02 -0700 | [diff] [blame] | 211 | char *model; |
| 212 | char *device; |
Scott Anderson | e109d26 | 2012-04-20 11:21:14 -0700 | [diff] [blame] | 213 | char *devpath; |
Stefan Hilzinger | d9d1ca4 | 2010-04-26 10:17:43 +0100 | [diff] [blame] | 214 | int adb_port; // Use for emulators (local transport) |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 215 | |
| 216 | /* a list of adisconnect callbacks called when the transport is kicked */ |
| 217 | int kicked; |
| 218 | adisconnect disconnects; |
Benoit Goby | d5fcafa | 2012-04-12 12:23:49 -0700 | [diff] [blame] | 219 | |
| 220 | void *key; |
| 221 | unsigned char token[TOKEN_SIZE]; |
| 222 | fdevent auth_fde; |
| 223 | unsigned failed_auth_attempts; |
Elliott Hughes | e67f1f8 | 2015-04-30 17:32:03 -0700 | [diff] [blame] | 224 | |
| 225 | const char* connection_state_name() const; |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 226 | }; |
| 227 | |
| 228 | |
| 229 | /* A listener is an entity which binds to a local port |
| 230 | ** and, upon receiving a connection on that port, creates |
| 231 | ** an asocket to connect the new local connection to a |
| 232 | ** specific remote service. |
| 233 | ** |
| 234 | ** TODO: some listeners read from the new connection to |
| 235 | ** determine what exact service to connect to on the far |
| 236 | ** side. |
| 237 | */ |
| 238 | struct alistener |
| 239 | { |
| 240 | alistener *next; |
| 241 | alistener *prev; |
| 242 | |
| 243 | fdevent fde; |
| 244 | int fd; |
| 245 | |
Dan Albert | bac3474 | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 246 | char *local_name; |
| 247 | char *connect_to; |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 248 | atransport *transport; |
| 249 | adisconnect disconnect; |
| 250 | }; |
| 251 | |
| 252 | |
| 253 | void print_packet(const char *label, apacket *p); |
| 254 | |
David 'Digit' Turner | 818d641 | 2013-12-13 14:09:44 +0100 | [diff] [blame] | 255 | asocket *find_local_socket(unsigned local_id, unsigned remote_id); |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 256 | void install_local_socket(asocket *s); |
| 257 | void remove_socket(asocket *s); |
| 258 | void close_all_sockets(atransport *t); |
| 259 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 260 | asocket *create_local_socket(int fd); |
| 261 | asocket *create_local_service_socket(const char *destination); |
| 262 | |
| 263 | asocket *create_remote_socket(unsigned id, atransport *t); |
| 264 | void connect_to_remote(asocket *s, const char *destination); |
| 265 | void connect_to_smartsocket(asocket *s); |
| 266 | |
| 267 | void fatal(const char *fmt, ...); |
| 268 | void fatal_errno(const char *fmt, ...); |
| 269 | |
| 270 | void handle_packet(apacket *p, atransport *t); |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 271 | |
Alexey Tarasov | 3166410 | 2009-10-22 02:55:00 +1100 | [diff] [blame] | 272 | void get_my_path(char *s, size_t maxLen); |
Stefan Hilzinger | a84a42e | 2010-04-19 12:21:12 +0100 | [diff] [blame] | 273 | int launch_server(int server_port); |
| 274 | int adb_main(int is_daemon, int server_port); |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 275 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 276 | /* initialize a transport object's func pointers and state */ |
Stefan Hilzinger | d9d1ca4 | 2010-04-26 10:17:43 +0100 | [diff] [blame] | 277 | #if ADB_HOST |
| 278 | int get_available_local_transport_index(); |
| 279 | #endif |
Mike Lockwood | 2f38b69 | 2009-08-24 15:58:40 -0700 | [diff] [blame] | 280 | int init_socket_transport(atransport *t, int s, int port, int local); |
Dan Albert | dcd78a1 | 2015-05-18 16:43:57 -0700 | [diff] [blame^] | 281 | void init_usb_transport(atransport *t, usb_handle *usb, ConnectionState state); |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 282 | |
Stefan Hilzinger | d9d1ca4 | 2010-04-26 10:17:43 +0100 | [diff] [blame] | 283 | #if ADB_HOST |
| 284 | atransport* find_emulator_transport_by_adb_port(int adb_port); |
| 285 | #endif |
Mike Lockwood | 74d7ff8 | 2009-10-11 23:04:18 -0400 | [diff] [blame] | 286 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 287 | int service_to_fd(const char *name); |
| 288 | #if ADB_HOST |
| 289 | asocket *host_service_to_socket(const char* name, const char *serial); |
| 290 | #endif |
| 291 | |
| 292 | #if !ADB_HOST |
| 293 | int init_jdwp(void); |
| 294 | asocket* create_jdwp_service_socket(); |
| 295 | asocket* create_jdwp_tracker_service_socket(); |
| 296 | int create_jdwp_connection_fd(int jdwp_pid); |
| 297 | #endif |
| 298 | |
Elliott Hughes | aee80fb | 2015-05-07 21:38:41 -0700 | [diff] [blame] | 299 | int handle_forward_request(const char* service, TransportType type, const char* serial, int reply_fd); |
David 'Digit' Turner | 2525869 | 2013-03-21 21:07:42 +0100 | [diff] [blame] | 300 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 301 | #if !ADB_HOST |
| 302 | void framebuffer_service(int fd, void *cookie); |
Paul Lawrence | 982089d | 2014-12-03 15:31:57 -0800 | [diff] [blame] | 303 | void set_verity_enabled_state_service(int fd, void* cookie); |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 304 | #endif |
| 305 | |
| 306 | /* packet allocator */ |
| 307 | apacket *get_apacket(void); |
| 308 | void put_apacket(apacket *p); |
| 309 | |
leozwang | cbf0267 | 2014-08-15 09:51:27 -0700 | [diff] [blame] | 310 | // Define it if you want to dump packets. |
| 311 | #define DEBUG_PACKETS 0 |
| 312 | |
Benoit Goby | d5fcafa | 2012-04-12 12:23:49 -0700 | [diff] [blame] | 313 | #if !DEBUG_PACKETS |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 314 | #define print_packet(tag,p) do {} while (0) |
| 315 | #endif |
| 316 | |
John Michelau | c318833 | 2010-09-23 17:08:34 -0500 | [diff] [blame] | 317 | #if ADB_HOST_ON_TARGET |
| 318 | /* adb and adbd are coexisting on the target, so use 5038 for adb |
| 319 | * to avoid conflicting with adbd's usage of 5037 |
| 320 | */ |
| 321 | # define DEFAULT_ADB_PORT 5038 |
| 322 | #else |
| 323 | # define DEFAULT_ADB_PORT 5037 |
| 324 | #endif |
| 325 | |
Stefan Hilzinger | a84a42e | 2010-04-19 12:21:12 +0100 | [diff] [blame] | 326 | #define DEFAULT_ADB_LOCAL_TRANSPORT_PORT 5555 |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 327 | |
Xavier Ducrohet | a481d09 | 2009-05-21 17:47:43 -0700 | [diff] [blame] | 328 | #define ADB_CLASS 0xff |
| 329 | #define ADB_SUBCLASS 0x42 |
| 330 | #define ADB_PROTOCOL 0x1 |
Dima Zavin | 3fd82b8 | 2009-05-08 18:25:58 -0700 | [diff] [blame] | 331 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 332 | |
Mike Lockwood | cef31a0 | 2009-08-26 12:50:22 -0700 | [diff] [blame] | 333 | void local_init(int port); |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 334 | int local_connect(int port); |
Stefan Hilzinger | d9d1ca4 | 2010-04-26 10:17:43 +0100 | [diff] [blame] | 335 | int local_connect_arbitrary_ports(int console_port, int adb_port); |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 336 | |
| 337 | /* usb host/client interface */ |
| 338 | void usb_init(); |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 339 | int usb_write(usb_handle *h, const void *data, int len); |
| 340 | int usb_read(usb_handle *h, void *data, int len); |
| 341 | int usb_close(usb_handle *h); |
| 342 | void usb_kick(usb_handle *h); |
| 343 | |
| 344 | /* used for USB device detection */ |
Xavier Ducrohet | a09fbd1 | 2009-05-20 17:33:53 -0700 | [diff] [blame] | 345 | #if ADB_HOST |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 346 | int is_adb_interface(int vid, int pid, int usb_class, int usb_subclass, int usb_protocol); |
Xavier Ducrohet | a09fbd1 | 2009-05-20 17:33:53 -0700 | [diff] [blame] | 347 | #endif |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 348 | |
Dan Albert | bac3474 | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 349 | int adb_commandline(int argc, const char **argv); |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 350 | |
Dan Albert | dcd78a1 | 2015-05-18 16:43:57 -0700 | [diff] [blame^] | 351 | ConnectionState connection_state(atransport *t); |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 352 | |
Dan Albert | bd0b750 | 2015-02-18 18:22:45 -0800 | [diff] [blame] | 353 | extern const char *adb_device_banner; |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 354 | extern int HOST; |
JP Abgrall | 408fa57 | 2011-03-16 15:57:42 -0700 | [diff] [blame] | 355 | extern int SHELL_EXIT_NOTIFY_FD; |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 356 | |
| 357 | #define CHUNK_SIZE (64*1024) |
| 358 | |
Andrzej Pietrasiewicz | fd96db1 | 2012-01-13 15:13:46 +0100 | [diff] [blame] | 359 | #if !ADB_HOST |
| 360 | #define USB_ADB_PATH "/dev/android_adb" |
| 361 | |
| 362 | #define USB_FFS_ADB_PATH "/dev/usb-ffs/adb/" |
| 363 | #define USB_FFS_ADB_EP(x) USB_FFS_ADB_PATH#x |
| 364 | |
| 365 | #define USB_FFS_ADB_EP0 USB_FFS_ADB_EP(ep0) |
| 366 | #define USB_FFS_ADB_OUT USB_FFS_ADB_EP(ep1) |
| 367 | #define USB_FFS_ADB_IN USB_FFS_ADB_EP(ep2) |
| 368 | #endif |
| 369 | |
Elliott Hughes | aee80fb | 2015-05-07 21:38:41 -0700 | [diff] [blame] | 370 | int handle_host_request(const char* service, TransportType type, const char* serial, int reply_fd, asocket *s); |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 371 | |
Dan Albert | ba3a251 | 2015-02-18 17:47:33 -0800 | [diff] [blame] | 372 | void handle_online(atransport *t); |
| 373 | void handle_offline(atransport *t); |
| 374 | |
| 375 | void send_connect(atransport *t); |
| 376 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 377 | #endif |