lib/rpmcli.h File Reference

#include "rpmlib.h"
#include "rpmurl.h"
#include "rpmmacro.h"
#include "rpmps.h"
#include "argv.h"

Include dependency graph for rpmcli.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  IDT_s
struct  IDTindex_s
struct  rpmQVKArguments_s
 Command line option information. More...
struct  rpmBuildArguments_s
 Describe build command line request. More...

Defines

#define RPMCLI_POPT_NODEPS   -1025
 Common/global popt tokens used for command line option tables.
#define RPMCLI_POPT_FORCE   -1026
#define RPMCLI_POPT_NOFDIGESTS   -1027
#define RPMCLI_POPT_NOSCRIPTS   -1028
#define RPMCLI_POPT_NOSIGNATURE   -1029
#define RPMCLI_POPT_NODIGEST   -1030
#define RPMCLI_POPT_NOHDRCHK   -1031
#define RPMCLI_POPT_NOCONTEXTS   -1032
#define RPMCLI_POPT_TARGETPLATFORM   -1033

Functions

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

Variables

int _noDirTokens
 Should version 3 packages be produced?
struct poptOption rpmcliAllPoptTable []
 Popt option table for options shared by all modes and executables.
int ftsOpts
struct poptOption rpmcliFtsPoptTable []
int global_depFlags
struct poptOption rpmcliDepFlagsPoptTable []
const char * rpmcliPipeOutput
const char * rpmcliRcfile
const char * rpmcliRootDir
const char * rpmcliTargets
struct rpmQVKArguments_s rpmQVKArgs
struct rpmQVKArguments_s rpmIArgs
struct rpmQVKArguments_s rpmDBArgs
RPMDB
struct poptOption rpmDatabasePoptTable []


Detailed Description

Definition in file rpmcli.h.


Define Documentation

#define _QUERY_FOR_BITS

#define RPMCLI_POPT_FORCE   -1026

Definition at line 99 of file rpmcli.h.

Referenced by buildArgCallback(), installArgCallback(), and queryArgCallback().

#define RPMCLI_POPT_NOCONTEXTS   -1032

Definition at line 105 of file rpmcli.h.

Referenced by installArgCallback(), and queryArgCallback().

#define RPMCLI_POPT_NODEPS   -1025

Common/global popt tokens used for command line option tables.

Definition at line 98 of file rpmcli.h.

Referenced by buildArgCallback(), installArgCallback(), and queryArgCallback().

#define RPMCLI_POPT_NODIGEST   -1030

#define RPMCLI_POPT_NOFDIGESTS   -1027

Definition at line 100 of file rpmcli.h.

Referenced by installArgCallback(), and queryArgCallback().

#define RPMCLI_POPT_NOHDRCHK   -1031

#define RPMCLI_POPT_NOSCRIPTS   -1028

Definition at line 101 of file rpmcli.h.

Referenced by installArgCallback(), and queryArgCallback().

#define RPMCLI_POPT_NOSIGNATURE   -1029

#define RPMCLI_POPT_TARGETPLATFORM   -1033

Definition at line 106 of file rpmcli.h.

Referenced by rpmcliAllArgCallback().

#define RPMVERIFY_ALL   ~(RPMVERIFY_NONE)

Definition at line 160 of file rpmcli.h.

Referenced by processPackageFiles(), and processSourceFiles().

#define RPMVERIFY_FAILURES   (RPMVERIFY_LSTATFAIL|RPMVERIFY_READFAIL|RPMVERIFY_READLINKFAIL|RPMVERIFY_LGETFILECONFAIL)

Definition at line 161 of file rpmcli.h.

Referenced by rpmVerifyFile().

#define RPMVERIFY_MD5   RPMVERIFY_FDIGEST

Definition at line 159 of file rpmcli.h.

Referenced by genCpioListAndHeader().

#define VERIFY_ALL

Value:

Definition at line 244 of file rpmcli.h.

Referenced by main().

#define VERIFY_ATTRS


Function Documentation

void rpmcliConfigured ( void   ) 

Make sure that rpm configuration has been read.

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

Definition at line 150 of file poptALL.c.

References _free(), EXIT_FAILURE, rpmcliInitialized, rpmcliRcfile, rpmcliTargets, rpmReadConfigFiles(), and xstrdup().

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

References _free(), headerTagIndices_s::byName, headerTagIndices_s::byValue, rpmCLIMacroContext, rpmcliTargets, rpmFreeFilesystems(), rpmFreeMacros(), rpmFreeRpmrc(), rpmlogClose(), rpmTags, and urlFreeCache().

Referenced by main(), and rpmcliAllArgCallback().

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

References _, __progname, _debug, bindtextdomain, EXIT_FAILURE, LOCALEDIR, PACKAGE, rpmcliConfigured(), rpmIncreaseVerbosity, RPMMESS_NORMAL, RPMPOPTFILE, rpmSetVerbosity, setlocale, setprogname, textdomain, and USRLIBRPM.

Referenced by main().

int rpmVerifySignatures ( QVA_t  qva,
rpmts  ts,
FD_t  fd,
const char *  fn 
)


Variable Documentation

int ftsOpts

Definition at line 275 of file poptALL.c.

Referenced by rpmcliArgIter().

Definition at line 299 of file poptALL.c.

Referenced by main().

struct poptOption rpmcliDepFlagsPoptTable[]

Definition at line 302 of file poptALL.c.

struct poptOption rpmcliFtsPoptTable[]

Definition at line 278 of file poptALL.c.

const char* rpmcliPipeOutput

Definition at line 110 of file poptALL.c.

Referenced by main().

const char* rpmcliRcfile

Definition at line 113 of file poptALL.c.

Referenced by main(), rpmcliConfigured(), rpmRebuildTargetVars(), rpmShowRC(), and rpmspecQuery().

const char* rpmcliRootDir

Definition at line 116 of file poptALL.c.

Referenced by main().

const char* rpmcliTargets

Definition at line 122 of file poptALL.c.

Referenced by rpmcliAllArgCallback(), rpmcliConfigured(), rpmcliFini(), and rpmspecQuery().


Generated on Fri Jun 19 18:49:20 2009 for rpm by  doxygen 1.5.7.1