#include "system.h"
#include <rpmcli.h>
#include "rpmdb.h"
#include "rpmfi.h"
#include "rpmgi.h"
#include "rpmts.h"
#include "manifest.h"
#include "misc.h"
#include "debug.h"
Go to the source code of this file.
Defines | |
| #define | PATH_MAX 255 | 
| #define | _RPMGI_INTERNAL | 
Functions | |
| static void | printFileInfo (char *te, const char *name, unsigned int size, unsigned short mode, unsigned int mtime, unsigned short rdev, unsigned int nlink, const char *owner, const char *group, const char *linkto) | 
| static const char * | queryHeader (Header h, const char *qfmt) | 
| static void | flushBuffer (char **tp, char **tep, int nonewline) | 
| int | showQueryPackage (QVA_t qva, rpmts ts, Header h) | 
| Display results of package query.   | |
| void | rpmDisplayQueryTags (FILE *fp) | 
| Display list of tags that can be used in --queryformat.   | |
| static int | rpmgiShowMatches (QVA_t qva, rpmts ts) | 
| int | rpmcliShowMatches (QVA_t qva, rpmts ts) | 
| Display query/verify information for each header in iterator.   | |
| static unsigned char | nibble (char c) | 
| Convert hex to binary nibble.   | |
| int | rpmQueryVerify (QVA_t qva, rpmts ts, const char *arg) | 
| Common query/verify source interface, called once for each CLI arg.   | |
| int | rpmcliArgIter (rpmts ts, QVA_t qva, ARGV_t argv) | 
| Iterate over query/verify arg list.   | |
| int | rpmcliQuery (rpmts ts, QVA_t qva, const char **argv) | 
| Display package information.   | |
Definition in file query.c.
| #define PATH_MAX 255 | 
| static void flushBuffer | ( | char ** | tp, | |
| char ** | tep, | |||
| int | nonewline | |||
| ) |  [static] | 
        
Definition at line 129 of file query.c.
References RPMMESS_NORMAL, and rpmMessage.
Referenced by showQueryPackage().
| static unsigned char nibble | ( | char | c | ) |  [inline, static] | 
        
Convert hex to binary nibble.
| c | hex character | 
Definition at line 423 of file query.c.
Referenced by rpmdbAdd(), rpmdbRemove(), rpmfiNew(), rpmQueryVerify(), and verifyRSASignature().
| static void printFileInfo | ( | char * | te, | |
| const char * | name, | |||
| unsigned int | size, | |||
| unsigned short | mode, | |||
| unsigned int | mtime, | |||
| unsigned short | rdev, | |||
| unsigned int | nlink, | |||
| const char * | owner, | |||
| const char * | group, | |||
| const char * | linkto | |||
| ) |  [static] | 
        
Definition at line 32 of file query.c.
References _free(), alloca(), rpmPermsString(), and S_ISLNK.
Referenced by showQueryPackage().
| static const char* queryHeader | ( | Header | h, | |
| const char * | qfmt | |||
| ) |  [inline, static] | 
        
Definition at line 113 of file query.c.
References _, headerSprintf(), RPMERR_QFMT, rpmError, rpmHeaderFormats, and rpmTagTable.
Referenced by showQueryPackage().
Definition at line 380 of file query.c.
References rpmQVKArguments_s::qva_gi, rpmQVKArguments_s::qva_showPackage, rpmQVKArguments_s::qva_source, rpmgiHeader(), rpmgiNext(), RPMQV_DBOFFSET, and RPMRC_OK.
Referenced by rpmQueryVerify().
 1.5.2