tools/rpmdeps.c File Reference

#include "system.h"
#include <rpmbuild.h>
#include <argv.h>
#include <rpmds.h>
#include <rpmfc.h>
#include "debug.h"

Go to the source code of this file.

Functions

static void rpmdsPrint (const char *msg, rpmds ds, FILE *fp)
int main (int argc, char *const argv[])

Variables

const char * program_name
char * progname
static int print_provides
static int print_requires
static struct poptOption optionsTable []


Function Documentation

int main ( int  argc,
char *const   argv[] 
)

Definition at line 49 of file rpmdeps.c.

References _rpmfc_debug, argiCount(), argvAdd(), argvCount(), argvSort(), rpmfc_s::cdict, rpmfc_s::ddictx, rpmfc_s::fknown, rpmfc_s::nfiles, optionsTable, print_provides, print_requires, progname, rpmfc_s::provides, rpmfc_s::requires, rpmcliFini(), rpmcliInit(), rpmdsPrint(), rpmfcApply(), rpmfcClassify(), rpmfcFree(), rpmfcNew(), and rpmfcPrint().

static void rpmdsPrint ( const char *  msg,
rpmds  ds,
FILE *  fp 
) [static]

Definition at line 20 of file rpmdeps.c.

References rpmdsDNEVR(), rpmdsInit(), and rpmdsNext().

Referenced by main().


Variable Documentation

struct poptOption optionsTable[] [static]

Initial value:

 {

 { NULL, '\0', POPT_ARG_INCLUDE_TABLE, rpmcliAllPoptTable, 0,
         "Common options for all rpm modes and executables:" ,
        NULL }, 

 { "provides", 'P', POPT_ARG_VAL, &print_provides, -1,
        NULL, NULL },
 { "requires", 'R', POPT_ARG_VAL, &print_requires, -1,
        NULL, NULL },

   POPT_AUTOALIAS
   POPT_AUTOHELP
   POPT_TABLEEND
}

Definition at line 32 of file rpmdeps.c.

int print_provides [static]

Definition at line 15 of file rpmdeps.c.

Referenced by main().

int print_requires [static]

Definition at line 18 of file rpmdeps.c.

Referenced by main().

char* progname

Definition at line 12 of file rpmdeps.c.

const char* program_name

Definition at line 2 of file rpmdeps.c.


Generated on Fri Oct 12 08:44:56 2007 for rpm by  doxygen 1.5.2