rpm  5.4.15
Functions | Variables
poptIO.h File Reference
#include <rpmio.h>
#include <rpmiotypes.h>
#include <rpmcb.h>
#include <rpmmacro.h>
#include <rpmmg.h>
#include <rpmpgp.h>
#include <rpmsw.h>
#include <rpmurl.h>
#include <argv.h>
#include <fts.h>
#include <mire.h>
#include <popt.h>
Include dependency graph for poptIO.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

poptContext rpmioInit (int argc, char *const argv[], struct poptOption *optionsTable)
 Initialize most everything needed by an rpmio executable context. More...
 
void rpmioConfigured (void)
 Make sure that rpm configuration has been read. More...
 
poptContext rpmioFini (poptContext optCon)
 Destroy most everything needed by an rpm CLI executable context. More...
 

Variables

int __debug
 
int _rpmio_popt_context_flags
 
pgpHashAlgo rpmioDigestHashAlgo
 
struct poptOption rpmioDigestPoptTable []
 Popt option table for options to select digest algorithm. More...
 
struct poptOption rpmioAllPoptTable []
 Popt option table for options shared by all modes and executables. More...
 
int rpmioFtsOpts
 
struct poptOption rpmioFtsPoptTable []
 Popt option table for options to set Fts(3) options. More...
 
const char * rpmioPipeOutput
 
const char * rpmioRootDir
 

Function Documentation

void rpmioConfigured ( void  )

Make sure that rpm configuration has been read.

Warning
Options like –rcfile and –verbose must precede callers option.

Definition at line 382 of file poptIO.c.

References EXIT_FAILURE.

Referenced by rpmioAllArgCallback(), and rpmioInit().

poptContext rpmioFini ( poptContext  optCon)

Destroy most everything needed by an rpm CLI executable context.

Parameters
optConpopt context
Returns
NULL always

Definition at line 734 of file poptIO.c.

References rpmCLIMacroContext, rpmFreeMacros(), and rpmioClean().

Referenced by main(), and rpmioAllArgCallback().

poptContext rpmioInit ( int  argc,
char *const  argv[],
struct poptOption *  optionsTable 
)

Initialize most everything needed by an rpmio executable context.

Parameters
argcno. of args
argvarg array
optionsTablepopt option table
Returns
popt context (or NULL)

Definition at line 767 of file poptIO.c.

References _, _free(), bindtextdomain, checkfd(), EXIT_FAILURE, i, LOCALEDIR, PACKAGE, rpmGlob(), rpmIncreaseVerbosity, rpmioConfigured(), rpmlog(), RPMLOG_NOTICE, RPMLOG_WARNING, rpmSecuritySaneFile(), rpmSetVerbosity, setlocale, setprogname, textdomain, USRLIBRPM, and xstrdup().

Referenced by main(), and rpmrepoInitPopt().

Variable Documentation

int __debug

Definition at line 76 of file poptIO.c.

int _rpmio_popt_context_flags

Definition at line 145 of file poptIO.c.

struct poptOption rpmioAllPoptTable[]

Popt option table for options shared by all modes and executables.

Definition at line 564 of file poptIO.c.

pgpHashAlgo rpmioDigestHashAlgo

Definition at line 147 of file poptIO.c.

Referenced by main(), rpmdcFiniFile(), and rpmrepoInitPopt().

struct poptOption rpmioDigestPoptTable[]

Popt option table for options to select digest algorithm.

Popt option table for options to select digest algorithm.

Definition at line 152 of file poptIO.c.

Referenced by rpmdcAlgo2Name(), rpmdcFiniFile(), rpmdcInitFile(), and rpmdcName2Algo().

int rpmioFtsOpts
struct poptOption rpmioFtsPoptTable[]

Popt option table for options to set Fts(3) options.

Definition at line 542 of file poptIO.c.

const char* rpmioPipeOutput

Definition at line 124 of file poptIO.c.

Referenced by main().

const char* rpmioRootDir

Definition at line 127 of file poptIO.c.

Referenced by main().