2021-01-03 13:55:15 +00:00
|
|
|
#ifndef SC_ADB_H
|
|
|
|
#define SC_ADB_H
|
|
|
|
|
2021-01-08 18:24:51 +00:00
|
|
|
#include "common.h"
|
|
|
|
|
2021-01-03 13:55:15 +00:00
|
|
|
#include <stdbool.h>
|
|
|
|
#include <inttypes.h>
|
|
|
|
|
|
|
|
#include "util/process.h"
|
|
|
|
|
|
|
|
process_t
|
|
|
|
adb_execute(const char *serial, const char *const adb_cmd[], size_t len);
|
|
|
|
|
2021-10-17 14:14:33 +00:00
|
|
|
process_t
|
|
|
|
adb_execute_redirect(const char *serial, const char *const adb_cmd[],
|
|
|
|
size_t len, pipe_t *pipe_stdin, pipe_t *pipe_stdout,
|
|
|
|
pipe_t *pipe_stderr);
|
|
|
|
|
2021-01-03 13:55:15 +00:00
|
|
|
process_t
|
|
|
|
adb_forward(const char *serial, uint16_t local_port,
|
|
|
|
const char *device_socket_name);
|
|
|
|
|
|
|
|
process_t
|
|
|
|
adb_forward_remove(const char *serial, uint16_t local_port);
|
|
|
|
|
|
|
|
process_t
|
|
|
|
adb_reverse(const char *serial, const char *device_socket_name,
|
|
|
|
uint16_t local_port);
|
|
|
|
|
|
|
|
process_t
|
|
|
|
adb_reverse_remove(const char *serial, const char *device_socket_name);
|
|
|
|
|
|
|
|
process_t
|
|
|
|
adb_push(const char *serial, const char *local, const char *remote);
|
|
|
|
|
|
|
|
process_t
|
|
|
|
adb_install(const char *serial, const char *local);
|
|
|
|
|
2021-10-17 14:30:07 +00:00
|
|
|
// Return the result of "adb get-serialno".
|
|
|
|
char *
|
|
|
|
adb_get_serialno(void);
|
|
|
|
|
2021-01-03 13:55:15 +00:00
|
|
|
#endif
|