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

lib/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 _hdr_debug
int _print_pkts
int _psm_debug
int _rpmal_debug
int _rpmdb_debug
int _rpmds_debug
int _rpmfc_debug
int _rpmfi_debug
int _rpmps_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 101 of file poptALL.c.

References _.

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 129 of file poptALL.c.

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

void rpmcliConfigured void   
 

Make sure that rpm configuration has been read.

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

Definition at line 113 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 315 of file poptALL.c.

References 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 330 of file poptALL.c.

References _, __progname, argv, bindtextdomain, EXIT_FAILURE, LIBRPMALIAS_FILENAME, LOCALEDIR, PACKAGE, POPT_BADOPTION_NOALIAS, poptBadOption(), 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 28 of file poptALL.c.

int _fsm_debug
 

Definition at line 31 of file poptALL.c.

Referenced by fsmStage().

int _ftp_debug
 

Definition at line 88 of file poptALL.c.

int _hdr_debug
 

Definition at line 34 of file poptALL.c.

int _print_pkts
 

Definition at line 37 of file poptALL.c.

int _psm_debug
 

Definition at line 40 of file poptALL.c.

int _rpmal_debug
 

Definition at line 43 of file poptALL.c.

int _rpmdb_debug
 

Definition at line 46 of file poptALL.c.

int _rpmds_debug
 

Definition at line 49 of file poptALL.c.

int _rpmds_nopromote
 

Definition at line 25 of file poptALL.c.

int _rpmfc_debug
 

Definition at line 53 of file poptALL.c.

int _rpmfi_debug
 

Definition at line 56 of file poptALL.c.

int _rpmio_debug
 

Definition at line 92 of file poptALL.c.

int _rpmps_debug
 

Definition at line 59 of file poptALL.c.

int _rpmte_debug
 

Definition at line 62 of file poptALL.c.

int _rpmts_debug
 

Definition at line 65 of file poptALL.c.

int _rpmts_stats
 

Definition at line 68 of file poptALL.c.

int noLibio
 

Definition at line 71 of file poptALL.c.

Referenced by Fdopen(), and ufdClose().

int rpmcliInitialized = -1 [static]
 

Definition at line 96 of file poptALL.c.

Referenced by rpmcliAllArgCallback(), and rpmcliConfigured().

const char* rpmcliPipeOutput = NULL
 

Definition at line 75 of file poptALL.c.

const char* rpmcliRcfile = NULL
 

Definition at line 78 of file poptALL.c.

Referenced by rpmcliConfigured().

const char* rpmcliRootDir = "/"
 

Definition at line 81 of file poptALL.c.


Generated on Sun Oct 26 13:02:05 2003 for rpm by doxygen1.2.18