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. More...

void rpmcliConfigured (void)
 Make sure that config files have been read. More...

void rpmcliAllArgCallback (poptContext con, enum poptCallbackReason reason, const struct poptOption *opt, const char *arg, const void *data)
poptContext rpmcliFini (poptContext optCon)
poptContext rpmcliInit (int argc, char *const argv[], struct poptOption *optionsTable)

Variables

int _debug = 0
int _rpmds_nopromote
int _fps_debug
int _fsm_debug
int _hdr_debug
int _psm_debug
int _rpmal_debug
int _rpmdb_debug
int _rpmds_debug
int _rpmfi_debug
int _rpmps_debug
int _rpmte_debug
int _rpmts_debug
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 91 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 119 of file poptALL.c.

References _free, POPT_PREDEFINE, POPT_QUERYTAGS, POPT_SHOWRC, POPT_SHOWVERSION, printVersion, RMIL_CMDLINE, rpmcliConfigured, rpmcliInitialized, rpmcliQueryFlags, rpmDefineMacro, rpmDisplayQueryTags, rpmExpand, and rpmShowRC.

void rpmcliConfigured void   
 

Make sure that config files have been read.

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

Definition at line 103 of file poptALL.c.

References EXIT_FAILURE, rpmcliInitialized, rpmcliRcfile, and rpmReadConfigFiles.

Referenced by main, rpmcliAllArgCallback, and rpmcliInit.

poptContext rpmcliFini poptContext    optCon
 

Definition at line 299 of file poptALL.c.

References poptFreeContext.

Referenced by main.

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

Definition at line 314 of file poptALL.c.

References _, __progname, bindtextdomain, EXIT_FAILURE, LIBRPMALIAS_FILENAME, LOCALEDIR, poptBadOption, poptGetContext, poptGetNextOpt, poptGetOptArg, poptReadConfigFile, poptReadDefaultConfig, poptSetExecPath, poptStrerror, rpmcliConfigured, RPMCONFIGDIR, 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.

int _ftp_debug
 

Definition at line 78 of file poptALL.c.

int _hdr_debug
 

Definition at line 34 of file poptALL.c.

int _psm_debug
 

Definition at line 37 of file poptALL.c.

int _rpmal_debug
 

Definition at line 40 of file poptALL.c.

int _rpmdb_debug
 

Definition at line 43 of file poptALL.c.

int _rpmds_debug
 

Definition at line 46 of file poptALL.c.

int _rpmds_nopromote
 

Definition at line 25 of file poptALL.c.

int _rpmfi_debug
 

Definition at line 49 of file poptALL.c.

Referenced by rpmfi_Debug.

int _rpmio_debug
 

Definition at line 82 of file poptALL.c.

int _rpmps_debug
 

Definition at line 52 of file poptALL.c.

int _rpmte_debug
 

Definition at line 55 of file poptALL.c.

int _rpmts_debug
 

Definition at line 58 of file poptALL.c.

int noLibio
 

Definition at line 61 of file poptALL.c.

struct poptOption rpmcliAllPoptTable[]
 

Definition at line 193 of file poptALL.c.

int rpmcliInitialized = -1 [static]
 

Definition at line 86 of file poptALL.c.

Referenced by rpmcliAllArgCallback, and rpmcliConfigured.

const char* rpmcliPipeOutput = NULL
 

Definition at line 65 of file poptALL.c.

Referenced by main.

rpmQueryFlags rpmcliQueryFlags
 

Definition at line 74 of file poptALL.c.

Referenced by main, and rpmcliAllArgCallback.

const char* rpmcliRcfile = NULL
 

Definition at line 68 of file poptALL.c.

Referenced by main, and rpmcliConfigured.

const char* rpmcliRootDir = "/"
 

Definition at line 71 of file poptALL.c.

Referenced by main.


Generated on Wed Sep 4 12:50:00 2002 for rpm by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002