#include <functional>
#include <optional>
#include <string>
#include "adb.h"
#include "adb_unique_fd.h"
#include "sysdeps.h"
#include "transport.h"
Go to the source code of this file.
|
bool | adb_check_server_version (std::string *_Nonnull error) |
|
int | adb_connect (std::string_view service, std::string *_Nonnull error) |
|
int | adb_connect (TransportId *_Nullable id, std::string_view service, std::string *_Nonnull error, bool force_switch_device=false) |
|
bool | adb_kill_server () |
|
bool | adb_command (const std::string &service) |
|
bool | adb_query (const std::string &service, std::string *_Nonnull result, std::string *_Nonnull error, bool force_switch_device=false) |
|
void | adb_set_transport (TransportType type, const char *_Nullable serial, TransportId transport_id) |
|
void | adb_get_transport (TransportType *_Nullable type, const char *_Nullable *_Nullable serial, TransportId *_Nullable transport_id) |
|
void | adb_set_one_device (const char *_Nullable one_device) |
|
void | adb_set_socket_spec (const char *_Nonnull socket_spec) |
|
int | adb_send_emulator_command (int argc, const char *_Nonnull *_Nonnull argv, const char *_Nullable serial) |
|
bool | adb_status (borrowed_fd fd, std::string *_Nonnull error) |
|
std::string | format_host_command (const char *_Nonnull command) |
|
const std::optional< FeatureSet > & | adb_get_feature_set (std::string *_Nullable error) |
|
void | error_exit (const char *_Nonnull fmt,...) __attribute__((__format__(__printf__ |
|
void void | perror_exit (const char *_Nonnull fmt,...) __attribute__((__format__(__printf__ |
|
◆ adb_check_server_version()
bool adb_check_server_version |
( |
std::string *_Nonnull |
error | ) |
|
◆ adb_command()
bool adb_command |
( |
const std::string & |
service | ) |
|
◆ adb_connect() [1/2]
int adb_connect |
( |
std::string_view |
service, |
|
|
std::string *_Nonnull |
error |
|
) |
| |
◆ adb_connect() [2/2]
int adb_connect |
( |
TransportId *_Nullable |
id, |
|
|
std::string_view |
service, |
|
|
std::string *_Nonnull |
error, |
|
|
bool |
force_switch_device = false |
|
) |
| |
◆ adb_get_feature_set()
const std::optional< FeatureSet > & adb_get_feature_set |
( |
std::string *_Nullable |
error | ) |
|
◆ adb_get_transport()
void adb_get_transport |
( |
TransportType *_Nullable |
type, |
|
|
const char *_Nullable *_Nullable |
serial, |
|
|
TransportId *_Nullable |
transport_id |
|
) |
| |
◆ adb_kill_server()
◆ adb_query()
bool adb_query |
( |
const std::string & |
service, |
|
|
std::string *_Nonnull |
result, |
|
|
std::string *_Nonnull |
error, |
|
|
bool |
force_switch_device = false |
|
) |
| |
◆ adb_send_emulator_command()
int adb_send_emulator_command |
( |
int |
argc, |
|
|
const char *_Nonnull *_Nonnull |
argv, |
|
|
const char *_Nullable |
serial |
|
) |
| |
◆ adb_set_one_device()
void adb_set_one_device |
( |
const char *_Nullable |
one_device | ) |
|
◆ adb_set_socket_spec()
void adb_set_socket_spec |
( |
const char *_Nonnull |
socket_spec | ) |
|
◆ adb_set_transport()
◆ adb_status()
bool adb_status |
( |
borrowed_fd |
fd, |
|
|
std::string *_Nonnull |
error |
|
) |
| |
◆ error_exit()
void error_exit |
( |
const char *_Nonnull |
fmt, |
|
|
|
... |
|
) |
| |
◆ format_host_command()
std::string format_host_command |
( |
const char *_Nonnull |
command | ) |
|
◆ perror_exit()
void void perror_exit |
( |
const char *_Nonnull |
fmt, |
|
|
|
... |
|
) |
| |
◆ __adb_argv
void void const char* _Nullable* _Nullable __adb_argv |
|
extern |
◆ __adb_envp
const char* _Nullable* _Nullable __adb_envp |
|
extern |