rpm  5.4.15
Macros | Functions | Variables
rpmsp.c File Reference
#include "system.h"
#include <rpmsp.h>
#include <rpmlog.h>
#include <rpmmacro.h>
#include "debug.h"
Include dependency graph for rpmsp.c:

Go to the source code of this file.

Macros

#define _RPMSP_INTERNAL
 

Functions

static void rpmspFini (void *_sp)
 
static rpmsp rpmspGetPool (rpmioPool pool)
 
rpmsp rpmspNew (const char *fn, unsigned int flags)
 Create and load a sepol wrapper. More...
 

Variables

int _rpmsp_debug = 0
 
rpmsp _rpmspI = NULL
 
rpmioPool _rpmspPool = NULL
 

Macro Definition Documentation

#define _RPMSP_INTERNAL

Definition at line 17 of file rpmsp.c.

Function Documentation

static void rpmspFini ( void *  _sp)
static

Definition at line 30 of file rpmsp.c.

References _free().

Referenced by rpmspGetPool().

static rpmsp rpmspGetPool ( rpmioPool  pool)
static

Definition at line 60 of file rpmsp.c.

References _rpmsp_debug, _rpmspPool, rpmioGetPool(), rpmioNewPool(), and rpmspFini().

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().

Variable Documentation

int _rpmsp_debug = 0

Definition at line 25 of file rpmsp.c.

Referenced by rpmspGetPool(), and rpmspNew().

rpmsp _rpmspI = NULL

Definition at line 28 of file rpmsp.c.

rpmioPool _rpmspPool = NULL

Definition at line 58 of file rpmsp.c.

Referenced by rpmioClean(), and rpmspGetPool().