diff --git a/app/src/adb/adb.c b/app/src/adb/adb.c index 44c197eb..ded0298b 100644 --- a/app/src/adb/adb.c +++ b/app/src/adb/adb.c @@ -13,8 +13,8 @@ static const char *adb_executable; -static inline const char * -get_adb_executable(void) { +const char * +sc_adb_get_executable(void) { if (!adb_executable) { adb_executable = getenv("ADB"); if (!adb_executable) @@ -163,7 +163,7 @@ sc_adb_create_argv(const char *serial, const char *const adb_cmd[], return NULL; } - argv[0] = get_adb_executable(); + argv[0] = sc_adb_get_executable(); int i; if (serial) { argv[1] = "-s"; diff --git a/app/src/adb/adb.h b/app/src/adb/adb.h index 34fd7866..8b8954f8 100644 --- a/app/src/adb/adb.h +++ b/app/src/adb/adb.h @@ -14,6 +14,9 @@ #define SC_ADB_SILENT (SC_ADB_NO_STDOUT | SC_ADB_NO_STDERR | SC_ADB_NO_LOGERR) +const char * +sc_adb_get_executable(void); + sc_pid sc_adb_execute(const char *serial, const char *const adb_cmd[], size_t len, unsigned flags);