21#ifndef LIBDPKG_COMMAND_H
22#define LIBDPKG_COMMAND_H
void * args[20]
Definition ehandle.c:89
void command_add_args(struct command *cmd,...) DPKG_ATTR_SENTINEL
Append a variable list of argument to the command's argv.
Definition command.c:162
void command_init(struct command *cmd, const char *filename, const char *name)
Initialize a command structure.
Definition command.c:47
bool command_in_path(const char *cmd)
Check whether a command can be found in PATH.
Definition command.c:227
void command_add_arg(struct command *cmd, const char *arg)
Append an argument to the command's argv.
Definition command.c:100
void command_exec(struct command *cmd) DPKG_ATTR_NORET
Execute the command specified.
Definition command.c:181
void command_add_argv(struct command *cmd, va_list args)
Append a va_list of argument to the command's argv.
Definition command.c:137
void command_destroy(struct command *cmd)
Destroy a command structure.
Definition command.c:69
void command_shell(const char *cmd, const char *name) DPKG_ATTR_NORET
Execute a shell with a possible command.
Definition command.c:195
void command_add_argl(struct command *cmd, const char **argv)
Append an argument array to the command's argv.
Definition command.c:115
#define DPKG_BEGIN_DECLS
Definition macros.h:164
#define DPKG_END_DECLS
Definition macros.h:165
#define DPKG_ATTR_SENTINEL
Definition macros.h:136
#define DPKG_ATTR_NORET
Definition macros.h:108
Describe a command to execute.
Definition command.h:40
int argc
Definition command.h:45
const char ** argv
Definition command.h:47
const char * name
Descriptive name of the command, used when printing.
Definition command.h:42
int argv_size
Definition command.h:46
const char * filename
Filename to execute; either a path or the progname.
Definition command.h:44