Main Page   Modules   Compound List   File List   Compound Members   File Members   Related Pages  

rpmio/rpmlog.c File Reference

More...

#include "system.h"
#include <stdarg.h>
#include "rpmlog.h"
#include "debug.h"

Go to the source code of this file.

Functions

int rpmlogGetNrecs (void)
int rpmlogCode (void)
const char* rpmlogMessage (void)
void rpmlogPrint (FILE *f)
void rpmlogClose (void)
void rpmlogOpen ( const char *ident, int option, int facility)
int rpmlogSetMask (int mask)
rpmlogCallback rpmlogSetCallback (rpmlogCallback cb)
void vrpmlog (unsigned code, const char *fmt, va_list ap)
void rpmlog (int code, const char *fmt, ...)
rpmlogCallback rpmErrorSetCallback (rpmlogCallback cb)

Variables

int nrecs = 0
rpmlogRec recs = NULL
int rpmlogMask = RPMLOG_UPTO( RPMLOG_NOTICE )
int rpmlogFacility = RPMLOG_USER
rpmlogCallback _rpmlogCallback = NULL
char* rpmlogMsgPrefix []


Detailed Description

Definition in file rpmlog.c.


Function Documentation

rpmlogCallback rpmErrorSetCallback ( rpmlogCallback cb )
 

Definition at line 207 of file rpmlog.c.

void rpmlog ( int code,
const char * fmt,
... )
 

Definition at line 188 of file rpmlog.c.

Referenced by getGname(), getGnameS(), getUname(), and getUnameS().

void rpmlogClose ( void )
 

Definition at line 49 of file rpmlog.c.

int rpmlogCode ( void )
 

Definition at line 20 of file rpmlog.c.

int rpmlogGetNrecs ( void )
 

Definition at line 15 of file rpmlog.c.

Referenced by buildSpec().

const char * rpmlogMessage ( void )
 

Definition at line 28 of file rpmlog.c.

void rpmlogOpen ( const char * ident,
int option,
int facility )
 

Definition at line 65 of file rpmlog.c.

void rpmlogPrint ( FILE * f )
 

Definition at line 35 of file rpmlog.c.

Referenced by buildSpec().

rpmlogCallback rpmlogSetCallback ( rpmlogCallback cb )
 

Definition at line 83 of file rpmlog.c.

Referenced by rpmErrorSetCallback().

int rpmlogSetMask ( int mask )
 

Definition at line 73 of file rpmlog.c.

void vrpmlog ( unsigned code,
const char * fmt,
va_list ap ) [static]
 

Definition at line 101 of file rpmlog.c.

Referenced by rpmlog().


Variable Documentation

rpmlogCallback _rpmlogCallback = NULL [static]
 

Definition at line 81 of file rpmlog.c.

Referenced by vrpmlog().

int nrecs = 0 [static]
 

Definition at line 12 of file rpmlog.c.

rpmlogRec recs = NULL [static]
 

Definition at line 13 of file rpmlog.c.

int rpmlogFacility = RPMLOG_USER [static]
 

Definition at line 71 of file rpmlog.c.

int rpmlogMask = RPMLOG_UPTO( RPMLOG_NOTICE ) [static]
 

Definition at line 70 of file rpmlog.c.

char * rpmlogMsgPrefix[] [static]
 

Initializer:

{
     "fatal error: " ,
     "fatal error: " ,
     "fatal error: " ,
     "error: " ,        
     "warning: " ,      
    "",                 
    "",                 
    "D: ",              
}

Definition at line 90 of file rpmlog.c.


Generated at Sun Apr 8 18:43:05 2001 for rpm by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000