rpm  5.4.15
Macros | Typedefs | Functions | Variables
rpmtpm.h File Reference
#include <stdlib.h>
#include <stdint.h>
#include <rpmio.h>
#include <rpmiotypes.h>
#include <rpmlog.h>
#include <rpmcb.h>
#include <argv.h>
#include <poptIO.h>
Include dependency graph for rpmtpm.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define rpmtpmUnlink(_tpm)   ((rpmtpm)rpmioUnlinkPoolItem((rpmioItem)(_tpm), __FUNCTION__, __FILE__, __LINE__))
 
#define rpmtpmLink(_tpm)   ((rpmtpm)rpmioLinkPoolItem((rpmioItem)(_tpm), __FUNCTION__, __FILE__, __LINE__))
 
#define rpmtpmFree(_tpm)   ((rpmtpm)rpmioFreePoolItem((rpmioItem)(_tpm), __FUNCTION__, __FILE__, __LINE__))
 

Typedefs

typedef struct rpmtpm_s * rpmtpm
 

Functions

rpmtpm rpmtpmUnlink (rpmtpm tpm)
 Unreference a TPM wrapper instance. More...
 
rpmtpm rpmtpmLink (rpmtpm tpm)
 Reference a TPM wrapper instance. More...
 
rpmtpm rpmtpmFree (rpmtpm tpm)
 Destroy a TPM wrapper. More...
 
rpmtpm rpmtpmNew (int ac, char **av, struct poptOption *tbl, uint32_t flags)
 Create and load a TPM wrapper. More...
 
int rpmtpmErr (rpmtpm tpm, const char *msg, uint32_t mask, uint32_t rc)
 
void rpmtpmDump (rpmtpm tpm, const char *msg, unsigned char *b, size_t nb)
 

Variables

int _rpmtpm_debug
 

Macro Definition Documentation

#define rpmtpmFree (   _tpm)    ((rpmtpm)rpmioFreePoolItem((rpmioItem)(_tpm), __FUNCTION__, __FILE__, __LINE__))

Definition at line 211 of file rpmtpm.h.

#define rpmtpmLink (   _tpm)    ((rpmtpm)rpmioLinkPoolItem((rpmioItem)(_tpm), __FUNCTION__, __FILE__, __LINE__))

Definition at line 199 of file rpmtpm.h.

#define rpmtpmUnlink (   _tpm)    ((rpmtpm)rpmioUnlinkPoolItem((rpmioItem)(_tpm), __FUNCTION__, __FILE__, __LINE__))

Definition at line 188 of file rpmtpm.h.

Typedef Documentation

typedef struct rpmtpm_s* rpmtpm

Definition at line 24 of file rpmtpm.h.

Function Documentation

void rpmtpmDump ( rpmtpm  tpm,
const char *  msg,
unsigned char *  b,
size_t  nb 
)

Definition at line 57 of file rpmtpm.c.

References i.

int rpmtpmErr ( rpmtpm  tpm,
const char *  msg,
uint32_t  mask,
uint32_t  rc 
)

Definition at line 37 of file rpmtpm.c.

References _rpmtpm_debug, and err.

Referenced by rpmtpmGetPhysicalCMDEnable().

rpmtpm rpmtpmFree ( rpmtpm  tpm)

Destroy a TPM wrapper.

Parameters
tpmTPM wrapper
Returns
NULL on last dereference
rpmtpm rpmtpmLink ( rpmtpm  tpm)

Reference a TPM wrapper instance.

Parameters
tpmTPM wrapper
Returns
new TPM wrapper reference

Referenced by rpmtpmNew().

rpmtpm rpmtpmNew ( int  ac,
char **  av,
struct poptOption *  tbl,
uint32_t  flags 
)

Create and load a TPM wrapper.

Parameters
acTPM arg count
avTPM args
tblTPM option table
flagsTPM flags
Returns
new TPM wrapper

Definition at line 270 of file rpmtpm.c.

References rpmIsVerbose, rpmtpmGetPool(), and rpmtpmLink().

rpmtpm rpmtpmUnlink ( rpmtpm  tpm)

Unreference a TPM wrapper instance.

Parameters
tpmTPM wrapper
Returns
NULL on last dereference

Variable Documentation

int _rpmtpm_debug

Definition at line 30 of file rpmtpm.c.

Referenced by rpmtpmErr(), and rpmtpmGetPool().