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:160
void command_init(struct command *cmd, const char *filename, const char *name)
Initialize a command structure.
Definition: command.c:45
void command_add_arg(struct command *cmd, const char *arg)
Append an argument to the command's argv.
Definition: command.c:98
void command_exec(struct command *cmd) DPKG_ATTR_NORET
Execute the command specified.
Definition: command.c:179
void command_add_argv(struct command *cmd, va_list args)
Append a va_list of argument to the command's argv.
Definition: command.c:135
void command_destroy(struct command *cmd)
Destroy a command structure.
Definition: command.c:67
void command_shell(const char *cmd, const char *name) DPKG_ATTR_NORET
Execute a shell with a possible command.
Definition: command.c:193
void command_add_argl(struct command *cmd, const char **argv)
Append an argument array to the command's argv.
Definition: command.c:113
#define DPKG_BEGIN_DECLS
Definition: macros.h:86
#define DPKG_END_DECLS
Definition: macros.h:87
#define DPKG_ATTR_SENTINEL
Definition: macros.h:71
#define DPKG_ATTR_NORET
Definition: macros.h:55
Describe a command to execute.
Definition: command.h:37
int argc
Definition: command.h:42
const char ** argv
Definition: command.h:44
const char * name
Descriptive name of the command, used when printing.
Definition: command.h:39
int argv_size
Definition: command.h:43
const char * filename
Filename to execute; either a path or the progname.
Definition: command.h:41