rpmio/rpmmessages.h File Reference

#include "rpmlog.h"

Go to the source code of this file.

Defines

#define RPMMESS_DEBUG   RPMLOG_DEBUG
#define RPMMESS_VERBOSE   RPMLOG_INFO
#define RPMMESS_NORMAL   RPMLOG_NOTICE
#define RPMMESS_WARNING   RPMLOG_WARNING
#define RPMMESS_ERROR   RPMLOG_ERR
#define RPMMESS_FATALERROR   RPMLOG_CRIT
#define RPMMESS_QUIET   RPMMESS_WARNING
#define rpmMessage   rpmlog
#define rpmSetVerbosity(_lvl)   ((void)rpmlogSetMask( RPMLOG_UPTO( RPMLOG_PRI(_lvl))))
#define rpmIncreaseVerbosity()   ((void)rpmlogSetMask(((((unsigned)(rpmlogSetMask(0) & 0xff)) << 1) | 1)))
#define rpmDecreaseVerbosity()   ((void)rpmlogSetMask((((int)(rpmlogSetMask(0) & 0xff)) >> 1)))
#define rpmIsNormal()   (rpmlogSetMask(0) >= RPMLOG_MASK( RPMMESS_NORMAL ))
#define rpmIsVerbose()   (rpmlogSetMask(0) >= RPMLOG_MASK( RPMMESS_VERBOSE ))
#define rpmIsDebug()   (rpmlogSetMask(0) >= RPMLOG_MASK( RPMMESS_DEBUG ))

Typedefs

typedef const void * fnpyKey
typedef enum rpmCallbackType_e rpmCallbackType
typedef void * rpmCallbackData
typedef void *(* rpmCallbackFunction )(const void *h, const rpmCallbackType what, const unsigned long amount, const unsigned long total, fnpyKey key, rpmCallbackData data)

Enumerations

enum  rpmCallbackType_e {
  RPMCALLBACK_UNKNOWN = 0, RPMCALLBACK_INST_PROGRESS = (1 << 0), RPMCALLBACK_INST_START = (1 << 1), RPMCALLBACK_INST_OPEN_FILE = (1 << 2),
  RPMCALLBACK_INST_CLOSE_FILE = (1 << 3), RPMCALLBACK_TRANS_PROGRESS = (1 << 4), RPMCALLBACK_TRANS_START = (1 << 5), RPMCALLBACK_TRANS_STOP = (1 << 6),
  RPMCALLBACK_UNINST_PROGRESS = (1 << 7), RPMCALLBACK_UNINST_START = (1 << 8), RPMCALLBACK_UNINST_STOP = (1 << 9), RPMCALLBACK_REPACKAGE_PROGRESS = (1 << 10),
  RPMCALLBACK_REPACKAGE_START = (1 << 11), RPMCALLBACK_REPACKAGE_STOP = (1 << 12), RPMCALLBACK_UNPACK_ERROR = (1 << 13), RPMCALLBACK_CPIO_ERROR = (1 << 14)
}
 Bit(s) to identify progress callbacks. More...

Functions

void urlSetCallback (rpmCallbackFunction notify, rpmCallbackData notifyData, int notifyCount)


Detailed Description

Todo:
Eliminate from API.

Definition in file rpmmessages.h.


Define Documentation

 
#define rpmDecreaseVerbosity (  )     ((void)rpmlogSetMask((((int)(rpmlogSetMask(0) & 0xff)) >> 1)))

Definition at line 25 of file rpmmessages.h.

 
#define rpmIncreaseVerbosity (  )     ((void)rpmlogSetMask(((((unsigned)(rpmlogSetMask(0) & 0xff)) << 1) | 1)))

Definition at line 23 of file rpmmessages.h.

Referenced by main(), rpmcliAllArgCallback(), and rpmcliInit().

 
#define rpmIsDebug (  )     (rpmlogSetMask(0) >= RPMLOG_MASK( RPMMESS_DEBUG ))

Definition at line 31 of file rpmmessages.h.

Referenced by headerCheck(), rpmReadPackageFile(), rpmRollback(), and rpmVerifySignatures().

 
#define rpmIsNormal (  )     (rpmlogSetMask(0) >= RPMLOG_MASK( RPMMESS_NORMAL ))

Definition at line 27 of file rpmmessages.h.

 
#define rpmIsVerbose (  )     (rpmlogSetMask(0) >= RPMLOG_MASK( RPMMESS_VERBOSE ))

Definition at line 29 of file rpmmessages.h.

Referenced by checkPassPhrase(), doUntar(), main(), printUsage(), rpmErase(), rpmgiNext(), rpmInstall(), rpmInstallSource(), rpmRollback(), rpmtsAddInstallElement(), rpmVerifySignatures(), showQueryPackage(), showVerifyPackage(), and verifyHeader().

#define RPMMESS_DEBUG   RPMLOG_DEBUG

Definition at line 11 of file rpmmessages.h.

Referenced by db3close(), db3open(), db_fini(), db_init(), dnlInitIterator(), fsmStage(), ftsStashLatest(), getOutputFrom(), initGlobs(), makeGPGSignature(), makePGPSignature(), miFreeHeader(), printSize(), psmWait(), relocateFileList(), rpmdbRebuild(), rpmdsCompare(), rpmdsNotify(), rpmdsProblem(), rpmfiDecideFate(), rpmgiWalkPathFilter(), rpmInstall(), rpmQueryVerify(), rpmReadPackageFile(), rpmReadPackageManifest(), rpmRollback(), rpmtsAddInstallElement(), rpmtsFindPubkey(), rpmtsInitDSI(), rpmtsOrder(), rpmtsRun(), rpmtsScoreFree(), rpmtsScoreGetEntry(), rpmtsScoreInit(), rpmtsSolve(), rpmWriteSignature(), skipFiles(), urlConnect(), and urlGetFile().

#define RPMMESS_ERROR   RPMLOG_ERR

Definition at line 15 of file rpmmessages.h.

Referenced by checkSpec(), headerCheck(), miFreeHeader(), rpmErase(), rpmGraph(), rpmInstall(), rpmInstallSource(), rpmReadPackageFile(), rpmRollback(), rpmtsOpenDB(), rpmtsOrder(), rpmtsRun(), and urlSplit().

#define RPMMESS_FATALERROR   RPMLOG_CRIT

Definition at line 16 of file rpmmessages.h.

#define RPMMESS_NORMAL   RPMLOG_NOTICE

Definition at line 13 of file rpmmessages.h.

Referenced by buildSpec(), doScript(), flushBuffer(), main(), processBinaryFiles(), rpmcliInit(), rpmGraph(), rpmInstall(), rpmRollback(), verifyDependencies(), verifyHeader(), and writeRPM().

#define RPMMESS_QUIET   RPMMESS_WARNING

Definition at line 18 of file rpmmessages.h.

Referenced by rpmcliAllArgCallback().

#define RPMMESS_VERBOSE   RPMLOG_INFO

Definition at line 12 of file rpmmessages.h.

Referenced by rpmgiNext().

#define RPMMESS_WARNING   RPMLOG_WARNING

Definition at line 14 of file rpmmessages.h.

Referenced by addFile(), buildHost(), fsmMapAttrs(), fsmStage(), genCpioListAndHeader(), rpmdsCompare(), rpmReadPackageFile(), rpmReSign(), rpmtsAddInstallElement(), rpmtsOpenSDB(), and rpmtsOrder().

#define rpmMessage   rpmlog

Definition at line 20 of file rpmmessages.h.

Referenced by addFile(), buildHost(), buildSpec(), checkSpec(), db3close(), db3open(), db_fini(), db_init(), dnlInitIterator(), doScript(), flushBuffer(), fsmMapAttrs(), fsmStage(), ftsStashLatest(), genCpioListAndHeader(), getOutputFrom(), headerCheck(), initGlobs(), makeGPGSignature(), makePGPSignature(), miFreeHeader(), printSize(), processBinaryFiles(), psmWait(), relocateFileList(), rpmdbRebuild(), rpmdsCompare(), rpmdsNotify(), rpmdsProblem(), rpmErase(), rpmfiDecideFate(), rpmgiNext(), rpmgiWalkPathFilter(), rpmGraph(), rpmInstall(), rpmInstallSource(), rpmQueryVerify(), rpmReadPackageFile(), rpmReadPackageManifest(), rpmReSign(), rpmRollback(), rpmtsAddInstallElement(), rpmtsFindPubkey(), rpmtsInitDSI(), rpmtsOpenDB(), rpmtsOpenSDB(), rpmtsOrder(), rpmtsRun(), rpmtsScoreFree(), rpmtsScoreGetEntry(), rpmtsScoreInit(), rpmtsSolve(), rpmWriteSignature(), skipFiles(), urlConnect(), urlGetFile(), urlSplit(), verifyDependencies(), verifyHeader(), and writeRPM().

#define rpmSetVerbosity ( _lvl   )     ((void)rpmlogSetMask( RPMLOG_UPTO( RPMLOG_PRI(_lvl))))

Definition at line 21 of file rpmmessages.h.

Referenced by main(), rpmcliAllArgCallback(), rpmcliInit(), and setVerbosity().


Typedef Documentation

typedef const void* fnpyKey

Definition at line 35 of file rpmmessages.h.

typedef void* rpmCallbackData

Definition at line 62 of file rpmmessages.h.

typedef void*(* rpmCallbackFunction)(const void *h, const rpmCallbackType what, const unsigned long amount, const unsigned long total,fnpyKey key,rpmCallbackData data)

Definition at line 71 of file rpmmessages.h.

typedef enum rpmCallbackType_e rpmCallbackType


Enumeration Type Documentation

enum rpmCallbackType_e

Bit(s) to identify progress callbacks.

Enumerator:
RPMCALLBACK_UNKNOWN 
RPMCALLBACK_INST_PROGRESS 
RPMCALLBACK_INST_START 
RPMCALLBACK_INST_OPEN_FILE 
RPMCALLBACK_INST_CLOSE_FILE 
RPMCALLBACK_TRANS_PROGRESS 
RPMCALLBACK_TRANS_START 
RPMCALLBACK_TRANS_STOP 
RPMCALLBACK_UNINST_PROGRESS 
RPMCALLBACK_UNINST_START 
RPMCALLBACK_UNINST_STOP 
RPMCALLBACK_REPACKAGE_PROGRESS 
RPMCALLBACK_REPACKAGE_START 
RPMCALLBACK_REPACKAGE_STOP 
RPMCALLBACK_UNPACK_ERROR 
RPMCALLBACK_CPIO_ERROR 

Definition at line 41 of file rpmmessages.h.


Function Documentation

void urlSetCallback ( rpmCallbackFunction  notify,
rpmCallbackData  notifyData,
int  notifyCount 
)

Definition at line 1488 of file rpmio.c.


Generated on Sun Jun 1 21:56:24 2008 for rpm by  doxygen 1.5.4