diff options
author | Doug Zongker <dougz@android.com> | 2012-03-20 09:40:04 -0700 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2012-03-20 09:58:12 -0700 |
commit | 098d1f63c64cdc0975ce8cd650e82e4043fc2600 (patch) | |
tree | 08c97c14b3cf9e501cf5b2ff125cb827db985fbf /minadbd/adb.h | |
parent | 703ed152147d90a549a2fee7cda5771703e502a0 (diff) | |
download | bootable_recovery-098d1f63c64cdc0975ce8cd650e82e4043fc2600.zip bootable_recovery-098d1f63c64cdc0975ce8cd650e82e4043fc2600.tar.gz bootable_recovery-098d1f63c64cdc0975ce8cd650e82e4043fc2600.tar.bz2 |
remove unused code from minadbd
Change-Id: I2f192c67ef425a53a1dba65d3e0544c1d5a567bd
Diffstat (limited to 'minadbd/adb.h')
-rw-r--r-- | minadbd/adb.h | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/minadbd/adb.h b/minadbd/adb.h index a989edd..98fa597 100644 --- a/minadbd/adb.h +++ b/minadbd/adb.h @@ -41,7 +41,6 @@ typedef struct amessage amessage; typedef struct apacket apacket; typedef struct asocket asocket; -typedef struct alistener alistener; typedef struct aservice aservice; typedef struct atransport atransport; typedef struct adisconnect adisconnect; @@ -134,7 +133,7 @@ struct asocket { /* the adisconnect structure is used to record a callback that ** will be called whenever a transport is disconnected (e.g. by the user) ** this should be used to cleanup objects that depend on the -** transport (e.g. remote sockets, listeners, etc...) +** transport (e.g. remote sockets, etc...) */ struct adisconnect { @@ -194,30 +193,6 @@ struct atransport }; -/* A listener is an entity which binds to a local port -** and, upon receiving a connection on that port, creates -** an asocket to connect the new local connection to a -** specific remote service. -** -** TODO: some listeners read from the new connection to -** determine what exact service to connect to on the far -** side. -*/ -struct alistener -{ - alistener *next; - alistener *prev; - - fdevent fde; - int fd; - - const char *local_name; - const char *connect_to; - atransport *transport; - adisconnect disconnect; -}; - - void print_packet(const char *label, apacket *p); asocket *find_local_socket(unsigned id); |