rpm  5.4.15
Macros | Typedefs | Functions | Variables
rpmsp.h File Reference
#include <rpmiotypes.h>
#include <rpmio.h>
Include dependency graph for rpmsp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define rpmspUnlink(_sp)   ((rpmsp)rpmioUnlinkPoolItem((rpmioItem)(_sp), __FUNCTION__, __FILE__, __LINE__))
 
#define rpmspLink(_sp)   ((rpmsp)rpmioLinkPoolItem((rpmioItem)(_sp), __FUNCTION__, __FILE__, __LINE__))
 
#define rpmspFree(_sp)   ((rpmsp)rpmioFreePoolItem((rpmioItem)(_sp), __FUNCTION__, __FILE__, __LINE__))
 

Typedefs

typedef struct rpmsp_s * rpmsp
 

Functions

rpmsp rpmspUnlink (rpmsp sp)
 Unreference a sepol wrapper instance. More...
 
rpmsp rpmspLink (rpmsp sp)
 Reference a sepol wrapper instance. More...
 
rpmsp rpmspFree (rpmsp sp)
 Destroy a sepol wrapper. More...
 
rpmsp rpmspNew (const char *fn, unsigned int flags)
 Create and load a sepol wrapper. More...
 

Variables

int _rpmsp_debug
 
rpmsp _rpmspI
 

Macro Definition Documentation

#define rpmspFree (   _sp)    ((rpmsp)rpmioFreePoolItem((rpmioItem)(_sp), __FUNCTION__, __FILE__, __LINE__))

Definition at line 73 of file rpmsp.h.

#define rpmspLink (   _sp)    ((rpmsp)rpmioLinkPoolItem((rpmioItem)(_sp), __FUNCTION__, __FILE__, __LINE__))

Definition at line 61 of file rpmsp.h.

#define rpmspUnlink (   _sp)    ((rpmsp)rpmioUnlinkPoolItem((rpmioItem)(_sp), __FUNCTION__, __FILE__, __LINE__))

Definition at line 50 of file rpmsp.h.

Typedef Documentation

typedef struct rpmsp_s* rpmsp

Definition at line 11 of file rpmsp.h.

Function Documentation

rpmsp rpmspFree ( rpmsp  sp)

Destroy a sepol wrapper.

Parameters
spsepol wrapper
Returns
NULL on last dereference

Referenced by rpmspNew().

rpmsp rpmspLink ( rpmsp  sp)

Reference a sepol wrapper instance.

Parameters
spsepol wrapper
Returns
new sepol wrapper reference

Referenced by rpmspNew().

rpmsp rpmspNew ( const char *  fn,
unsigned int  flags 
)

Create and load a sepol wrapper.

Parameters
fnsepol file (unused).
flagssepol flags
Returns
new sepol wrapper

Definition at line 74 of file rpmsp.c.

References _rpmsp_debug, errno, rpmspFree(), rpmspGetPool(), and rpmspLink().

rpmsp rpmspUnlink ( rpmsp  sp)

Unreference a sepol wrapper instance.

Parameters
spsepol wrapper
Returns
NULL on last dereference

Variable Documentation

int _rpmsp_debug

Definition at line 25 of file rpmsp.c.

Referenced by rpmspGetPool(), and rpmspNew().

rpmsp _rpmspI

Definition at line 28 of file rpmsp.c.