diff options
author | Elliott Hughes <enh@google.com> | 2015-04-17 09:47:42 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2015-04-17 09:47:42 -0700 |
commit | 2d4121c0dcc93382bcd7ea6476f433d8254919dd (patch) | |
tree | bdd8ab4be041d06fc50418b4a99fcb8b5a81b07a /adb/adb_listeners.h | |
parent | a4802ca08bfcbf0124f5e9b959ed4e3a198d5f46 (diff) | |
download | system_core-2d4121c0dcc93382bcd7ea6476f433d8254919dd.zip system_core-2d4121c0dcc93382bcd7ea6476f433d8254919dd.tar.gz system_core-2d4121c0dcc93382bcd7ea6476f433d8254919dd.tar.bz2 |
Remove extern "C" barriers to using C++.
Change-Id: Ic046d6aa540738cb46b54531bc59ba3b47b0136d
Diffstat (limited to 'adb/adb_listeners.h')
-rw-r--r-- | adb/adb_listeners.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/adb/adb_listeners.h b/adb/adb_listeners.h index 14fdcd6..6421df1 100644 --- a/adb/adb_listeners.h +++ b/adb/adb_listeners.h @@ -19,17 +19,13 @@ #include "adb.h" -#ifdef __cplusplus -extern "C" { -#endif - // error/status codes for install_listener. -typedef enum { +enum install_status_t { INSTALL_STATUS_OK = 0, INSTALL_STATUS_INTERNAL_ERROR = -1, INSTALL_STATUS_CANNOT_BIND = -2, INSTALL_STATUS_CANNOT_REBIND = -3, -} install_status_t; +}; extern alistener listener_list; @@ -47,8 +43,4 @@ int format_listeners(char* buf, size_t buflen); int remove_listener(const char *local_name, atransport* transport); void remove_all_listeners(void); -#ifdef __cplusplus -} -#endif - #endif /* __ADB_LISTENERS_H */ |