rpmsw.h
Go to the documentation of this file.
#ifndef H_RPMSW
#define H_RPMSW
typedef unsigned long int rpmtime_t;
typedef struct rpmsw_s * rpmsw;
typedef struct rpmop_s * rpmop;
struct rpmsw_s {
union {
struct timeval tv;
unsigned long long int ticks;
unsigned long int tocks[2];
} u;
};
struct rpmop_s {
struct rpmsw_s begin;
int count;
unsigned long long bytes;
rpmtime_t usecs;
};
/*@unchecked@*/
extern int _rpmsw_stats;
typedef enum rpmswOpX_e {
RPMSW_OP_TOTAL = 0,
RPMSW_OP_CHECK = 1,
RPMSW_OP_ORDER = 2,
RPMSW_OP_FINGERPRINT = 3,
RPMSW_OP_REPACKAGE = 4,
RPMSW_OP_INSTALL = 5,
RPMSW_OP_ERASE = 6,
RPMSW_OP_SCRIPTLETS = 7,
RPMSW_OP_COMPRESS = 8,
RPMSW_OP_UNCOMPRESS = 9,
RPMSW_OP_DIGEST = 10,
RPMSW_OP_SIGNATURE = 11,
RPMSW_OP_DBADD = 12,
RPMSW_OP_DBREMOVE = 13,
RPMSW_OP_DBGET = 14,
RPMSW_OP_DBPUT = 15,
RPMSW_OP_DBDEL = 16,
RPMSW_OP_READHDR = 17,
RPMSW_OP_HDRLOAD = 18,
RPMSW_OP_HDRGET = 19,
RPMSW_OP_DEBUG = 20,
RPMSW_OP_MAX = 20
} rpmswOpX;
#ifdef __cplusplus
extern "C" {
#endif
/*@-exportlocal@*/
/*@null@*/
rpmsw rpmswNow(/*@returned@*/ rpmsw sw)
/*@globals internalState @*/
/*@modifies sw, internalState @*/;
/*@=exportlocal@*/
/*@-exportlocal@*/
rpmtime_t rpmswDiff(/*@null@*/ rpmsw end, /*@null@*/ rpmsw begin)
/*@*/;
/*@=exportlocal@*/
/*@-exportlocal@*/
rpmtime_t rpmswInit(void)
/*@globals internalState @*/
/*@modifies internalState @*/;
/*@=exportlocal@*/
int rpmswEnter(/*@null@*/ rpmop op, ssize_t rc)
/*@globals internalState @*/
/*@modifies *op, internalState @*/;
rpmtime_t rpmswExit(/*@null@*/ rpmop op, ssize_t rc)
/*@globals internalState @*/
/*@modifies op, internalState @*/;
rpmtime_t rpmswAdd(/*@null@*/ rpmop to, /*@null@*/ rpmop from)
/*@modifies to @*/;
rpmtime_t rpmswSub(rpmop to, rpmop from)
/*@modifies to @*/;
void rpmswPrint(const char * name, /*@null@*/ rpmop op)
/*@globals fileSystem @*/
/*@modifies fileSystem @*/;
#ifdef __cplusplus
}
#endif
#endif /* H_RPMSW */