rpm  5.4.15
Typedefs | Functions
rpmzlog.h File Reference

Job queue and buffer pool management. More...

#include <stdio.h>
#include <sys/time.h>
Include dependency graph for rpmzlog.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct rpmzLog_s * rpmzLog
 trace log pointer More...
 

Functions

rpmzLog rpmzLogLink (rpmzLog zlog)
 Reference the log data. More...
 
rpmzLog rpmzLogNew (struct timeval *tv)
 Set up log (call from main thread before other threads launched). More...
 
void rpmzLogAdd (rpmzLog zlog, const char *fmt,...)
 Add entry to trace log. More...
 
rpmzLog rpmzLogFree (rpmzLog zlog)
 Release a reference to the log data. More...
 
rpmzLog rpmzLogDump (rpmzLog zlog, FILE *fp)
 Show entries until no more, free log. More...
 

Detailed Description

Job queue and buffer pool management.

Definition in file rpmzlog.h.

Typedef Documentation

typedef struct rpmzLog_s* rpmzLog

trace log pointer

Definition at line 11 of file rpmzlog.h.

Function Documentation

void rpmzLogAdd ( rpmzLog  zlog,
const char *  fmt,
  ... 
)

Add entry to trace log.

Definition at line 101 of file rpmzlog.c.

References _RPMZLOG_MAXMSG, vsnprintf(), xmalloc, yarnPossess(), and yarnRelease().

rpmzLog rpmzLogDump ( rpmzLog  zlog,
FILE *  fp 
)

Show entries until no more, free log.

Definition at line 222 of file rpmzlog.c.

References rpmzLogFree(), and rpmzMsgShow().

rpmzLog rpmzLogFree ( rpmzLog  zlog)

Release a reference to the log data.

Definition at line 176 of file rpmzlog.c.

References _free(), _rpmzlog_debug, BY, yarnFreeLock(), yarnPeekLock(), yarnPossess(), and yarnTwist().

Referenced by rpmzLogDump().

rpmzLog rpmzLogLink ( rpmzLog  zlog)

Reference the log data.

Definition at line 67 of file rpmzlog.c.

References _rpmzlog_debug, BY, yarnPeekLock(), yarnPossess(), and yarnTwist().

Referenced by rpmzLogNew().

rpmzLog rpmzLogNew ( struct timeval *  tv)

Set up log (call from main thread before other threads launched).

Definition at line 81 of file rpmzlog.c.

References rpmzLogLink(), xcalloc(), and yarnNewLock().