Android-cuttlefish cvd tool
Classes | Functions | Variables
commandline.h File Reference
#include <android-base/strings.h>
#include <google/protobuf/text_format.h>
#include <stdlib.h>
#include <optional>
#include "adb.h"
#include "adb_client.h"
#include "adb_unique_fd.h"
#include "transport.h"
Include dependency graph for commandline.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  StandardStreamsCallbackInterface
 
class  DefaultStandardStreamsCallback
 
class  SilentStandardStreamsCallbackInterface
 
class  ProtoBinaryToText< T >
 

Functions

int adb_commandline (int argc, const char **argv)
 
const std::optional< FeatureSet > & adb_get_feature_set_or_die ()
 
bool copy_to_file (int inFd, int outFd)
 
int send_shell_command (const std::string &command, bool disable_shell_protocol=false, StandardStreamsCallbackInterface *callback=&DEFAULT_STANDARD_STREAMS_CALLBACK)
 
int read_and_dump (borrowed_fd fd, bool use_shell_protocol=false, StandardStreamsCallbackInterface *callback=&DEFAULT_STANDARD_STREAMS_CALLBACK)
 
template<typename ContainerT >
unique_fd send_abb_exec_command (const ContainerT &command_args, std::string *error)
 

Variables

DefaultStandardStreamsCallback DEFAULT_STANDARD_STREAMS_CALLBACK
 

Function Documentation

◆ adb_commandline()

int adb_commandline ( int  argc,
const char **  argv 
)

◆ adb_get_feature_set_or_die()

const std::optional< FeatureSet > & adb_get_feature_set_or_die ( )

◆ copy_to_file()

bool copy_to_file ( int  inFd,
int  outFd 
)

◆ read_and_dump()

int read_and_dump ( borrowed_fd  fd,
bool  use_shell_protocol = false,
StandardStreamsCallbackInterface callback = &DEFAULT_STANDARD_STREAMS_CALLBACK 
)

◆ send_abb_exec_command()

template<typename ContainerT >
unique_fd send_abb_exec_command ( const ContainerT &  command_args,
std::string *  error 
)

◆ send_shell_command()

int send_shell_command ( const std::string &  command,
bool  disable_shell_protocol = false,
StandardStreamsCallbackInterface callback = &DEFAULT_STANDARD_STREAMS_CALLBACK 
)

Variable Documentation

◆ DEFAULT_STANDARD_STREAMS_CALLBACK

DefaultStandardStreamsCallback DEFAULT_STANDARD_STREAMS_CALLBACK
extern