summaryrefslogtreecommitdiffstats
path: root/adb/services.h
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2018-07-25 18:15:52 -0700
committerJosh Gao <jmgao@google.com>2018-07-25 18:49:37 -0700
commit997cfac89fa3fbbb9b71de2375d114fedf9c4518 (patch)
tree3f14a88ea19058066afd1dfbee5a991cf24b935b /adb/services.h
parent954adcc5411e9236583fd8dbe1d141b54d28a376 (diff)
downloadsystem_core-997cfac89fa3fbbb9b71de2375d114fedf9c4518.tar.gz
system_core-997cfac89fa3fbbb9b71de2375d114fedf9c4518.tar.bz2
system_core-997cfac89fa3fbbb9b71de2375d114fedf9c4518.zip
adb: split daemon services out of service_to_fd.
Let minadbd override daemon services by pulling out the daemon services into a separate translation unit, that isn't compiled into libadbd. Bug: http://b/111831478 Test: mma Change-Id: Iecfebea371e03864108eca9a4d2e9cfd5db34749
Diffstat (limited to 'adb/services.h')
-rw-r--r--adb/services.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/adb/services.h b/adb/services.h
index 0428ca4ae..0ce25ba73 100644
--- a/adb/services.h
+++ b/adb/services.h
@@ -17,8 +17,11 @@
#ifndef SERVICES_H_
#define SERVICES_H_
+#include "adb_unique_fd.h"
+
constexpr char kShellServiceArgRaw[] = "raw";
constexpr char kShellServiceArgPty[] = "pty";
constexpr char kShellServiceArgShellProtocol[] = "v2";
+unique_fd create_service_thread(const char* service_name, std::function<void(unique_fd)> func);
#endif // SERVICES_H_