Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

poptALL.c File Reference

Popt tables for all rpm modes. More...

#include "system.h"
#include <rpmcli.h>
#include "debug.h"

Go to the source code of this file.

Defines

#define POPT_SHOWVERSION   -999
#define POPT_SHOWRC   -998
#define POPT_QUERYTAGS   -997
#define POPT_PREDEFINE   -996

Functions

void printVersion (FILE *fp)
 Display rpm version.
void rpmcliConfigured (void)
 Make sure that rpm configuration has been read.
void rpmcliAllArgCallback (poptContext con, enum poptCallbackReason reason, const struct poptOption *opt, const char *arg, const void *data)
poptContext rpmcliFini (poptContext optCon)
 Destroy most everything needed by an rpm CLI executable context.
poptContext rpmcliInit (int argc, char *const argv[], struct poptOption *optionsTable)
 Initialize most everything needed by an rpm CLI executable context.

Variables

int _debug = 0
int _rpmds_nopromote
int _fps_debug
int _fsm_debug
int _fsm_threads
int _hdr_debug
int _print_pkts
int _psm_debug
int _psm_threads
int _rpmal_debug
int _rpmdb_debug
int _rpmds_debug
int _rpmfc_debug
int _rpmfi_debug
int _rpmps_debug
int _rpmsq_debug
int _rpmsx_debug
int _rpmte_debug
int _rpmts_debug
int _rpmts_stats
int noLibio
const char * rpmcliPipeOutput = NULL
const char * rpmcliRcfile = NULL
const char * rpmcliRootDir = "/"
rpmQueryFlags rpmcliQueryFlags
int _ftp_debug
int _rpmio_debug
int rpmcliInitialized = -1
poptOption rpmcliAllPoptTable []


Detailed Description

Popt tables for all rpm modes.

Definition in file poptALL.c.


Define Documentation

#define POPT_PREDEFINE   -996
 

Definition at line 15 of file poptALL.c.

Referenced by rpmcliAllArgCallback().

#define POPT_QUERYTAGS   -997
 

Definition at line 14 of file poptALL.c.

Referenced by rpmcliAllArgCallback().

#define POPT_SHOWRC   -998
 

Definition at line 13 of file poptALL.c.

Referenced by rpmcliAllArgCallback().

#define POPT_SHOWVERSION   -999
 

Definition at line 12 of file poptALL.c.

Referenced by rpmcliAllArgCallback().


Function Documentation

void printVersion FILE *  fp  )  [static]
 

Display rpm version.

Definition at line 115 of file poptALL.c.

References _, and rpmEVR.

Referenced by printUsage(), and rpmcliAllArgCallback().

void rpmcliAllArgCallback poptContext  con,
enum poptCallbackReason  reason,
const struct poptOption opt,
const char *  arg,
const void *  data
[static]
 

Definition at line 143 of file poptALL.c.

References _free(), poptOption::arg, POPT_PREDEFINE, POPT_QUERYTAGS, POPT_SHOWRC, POPT_SHOWVERSION, poptContext, printVersion(), RMIL_CMDLINE, RPMCLI_POPT_NODIGEST, RPMCLI_POPT_NOHDRCHK, RPMCLI_POPT_NOSIGNATURE, rpmcliConfigured(), rpmcliInitialized, rpmCLIMacroContext, rpmcliQueryFlags, rpmDefineMacro(), rpmDisplayQueryTags(), rpmExpand(), rpmIncreaseVerbosity, RPMMESS_QUIET, rpmSetVerbosity, rpmShowRC(), and poptOption::val.

void rpmcliConfigured void   ) 
 

Make sure that rpm configuration has been read.

Warning:
Options like --rcfile and --verbose must precede callers option.

Definition at line 127 of file poptALL.c.

References EXIT_FAILURE, rpmcliInitialized, rpmcliRcfile, and rpmReadConfigFiles().

Referenced by main(), rpmcliAllArgCallback(), and rpmcliInit().

poptContext rpmcliFini poptContext  optCon  ) 
 

Destroy most everything needed by an rpm CLI executable context.

Parameters:
optCon popt context
Returns:
NULL always

Definition at line 337 of file poptALL.c.

References poptContext, and poptFreeContext().

Referenced by main().

poptContext rpmcliInit int  argc,
char *const   argv[],
struct poptOption optionsTable
 

Initialize most everything needed by an rpm CLI executable context.

Parameters:
argc no. of args
argv arg array
optionsTable popt option table
Returns:
popt context (or NULL)

Definition at line 352 of file poptALL.c.

References _, __progname, argv, bindtextdomain, EXIT_FAILURE, LIBRPMALIAS_FILENAME, LOCALEDIR, PACKAGE, POPT_BADOPTION_NOALIAS, poptBadOption(), poptContext, poptGetContext(), poptGetNextOpt(), poptGetOptArg(), poptReadConfigFile(), poptReadDefaultConfig(), poptSetExecPath(), poptStrerror(), rpmcliConfigured(), RPMCONFIGDIR, rpmIncreaseVerbosity, RPMMESS_NORMAL, rpmSetVerbosity, setlocale, setprogname, and textdomain.

Referenced by main().


Variable Documentation

int _debug = 0 [static]
 

Definition at line 21 of file poptALL.c.

int _fps_debug
 

Definition at line 268 of file transaction.c.

int _fsm_debug
 

Definition at line 38 of file fsm.c.

int _fsm_threads
 

Definition at line 42 of file fsm.c.

int _ftp_debug
 

Definition at line 111 of file rpmio.c.

Referenced by httpResp().

int _hdr_debug
 

Definition at line 20 of file header.c.

int _print_pkts
 

Definition at line 25 of file rpmchecksig.c.

Referenced by rpmVerifySignatures().

int _psm_debug
 

Definition at line 37 of file psm.c.

Referenced by XrpmpsmLink(), and XrpmpsmUnlink().

int _psm_threads
 

Definition at line 39 of file psm.c.

int _rpmal_debug
 

Definition at line 18 of file rpmal.c.

Referenced by rpmal_Debug().

int _rpmdb_debug
 

Definition at line 49 of file rpmdb.c.

int _rpmds_debug
 

Definition at line 20 of file rpmds.c.

Referenced by archFilter(), rpmds_Debug(), rpmdsFilter(), rpmdsFree(), rpmdsNew(), rpmdsNext(), XrpmdsLink(), and XrpmdsUnlink().

int _rpmds_nopromote
 

Definition at line 23 of file rpmds.c.

Referenced by checkPackageSet(), ensureOlder(), rpmtsAddInstallElement(), setEpochPromote(), and unsatisfiedDepend().

int _rpmfc_debug
 

Definition at line 59 of file poptALL.c.

int _rpmfi_debug
 

Definition at line 33 of file rpmfi.c.

Referenced by rpmfi_Debug(), rpmfiFree(), rpmfiNew(), rpmfiNext(), rpmfiNextD(), XrpmfiLink(), and XrpmfiUnlink().

int _rpmio_debug
 

Definition at line 116 of file rpmio.c.

Referenced by fdWritable().

int _rpmps_debug
 

Definition at line 18 of file rpmps.c.

Referenced by XrpmpsLink(), and XrpmpsUnlink().

int _rpmsq_debug
 

Definition at line 179 of file rpmsq.c.

int _rpmsx_debug
 

Definition at line 17 of file rpmsx.c.

Referenced by rpmsxFree(), rpmsxNext(), XrpmsxLink(), and XrpmsxUnlink().

int _rpmte_debug
 

Definition at line 20 of file rpmte.c.

Referenced by rpmte_Debug().

int _rpmts_debug
 

Definition at line 66 of file rpmts.c.

Referenced by rpmts_alloc(), rpmts_Debug(), rpmts_init(), and rpmtsAddAvailableElement().

int _rpmts_stats
 

Definition at line 69 of file rpmts.c.

Referenced by setStats().

int noLibio
 

Definition at line 103 of file poptALL.c.

Referenced by ufdClose().

int rpmcliInitialized = -1 [static]
 

Definition at line 110 of file poptALL.c.

Referenced by rpmcliAllArgCallback(), and rpmcliConfigured().

const char* rpmcliPipeOutput = NULL
 

Definition at line 87 of file poptALL.c.

Referenced by main().

const char* rpmcliRcfile = NULL
 

Definition at line 90 of file poptALL.c.

Referenced by main(), and rpmcliConfigured().

const char* rpmcliRootDir = "/"
 

Definition at line 93 of file poptALL.c.

Referenced by main().


Generated on Mon May 7 03:05:01 2007 for rpm by  doxygen 1.3.9.1