dpkg 1.22.7-3-g89f48
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Functions | Variables
options.h File Reference

(042ea3b92)

#include <dpkg/macros.h>
#include <dpkg/dpkg-db.h>
Include dependency graph for options.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  cmdinfo
 

Macros

#define MAX_CONFIG_LINE   1024
 
#define ACTION(longopt, shortopt, code, func)    { longopt, shortopt, 0, NULL, NULL, setaction, code, NULL, func }
 
#define ACTION_MUX(longopt, shortopt, code, func, strvar)    { longopt, shortopt, 2, NULL, strvar, setaction, code, NULL, func }
 
#define OBSOLETE(longopt, shortopt)    { longopt, shortopt, 0, NULL, NULL, setobsolete, 0, NULL, NULL }
 

Typedefs

typedef int action_func(const char *const *argv)
 

Functions

void badusage (const char *fmt,...) DPKG_ATTR_NORET DPKG_ATTR_PRINTF(1)
 
void dpkg_options_load (const char *prog, const struct cmdinfo *cmdinfos)
 
void dpkg_options_parse (const char *const **argvp, const struct cmdinfo *cmdinfos, const char *help_str)
 
long dpkg_options_parse_arg_int (const struct cmdinfo *cmd, const char *str)
 
struct pkginfodpkg_options_parse_pkgname (const struct cmdinfo *cmd, const char *name)
 Parse an argument as a package name.
 
void setaction (const struct cmdinfo *cip, const char *value)
 
void setobsolete (const struct cmdinfo *cip, const char *value)
 
void set_instdir (const struct cmdinfo *cip, const char *value)
 
void set_admindir (const struct cmdinfo *cip, const char *value)
 
void set_root (const struct cmdinfo *cip, const char *value)
 

Variables

const struct cmdinfocipaction
 Current cmdinfo action.