rpm  5.4.15
Macros | Typedefs | Functions | Variables
rpmasn.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define rpmasnUnlink(_asn)   ((rpmasn)rpmioUnlinkPoolItem((rpmioItem)(_asn), __FUNCTION__, __FILE__, __LINE__))
 
#define rpmasnLink(_asn)   ((rpmasn)rpmioLinkPoolItem((rpmioItem)(_asn), __FUNCTION__, __FILE__, __LINE__))
 
#define rpmasnFree(_asn)   ((rpmasn)rpmioFreePoolItem((rpmioItem)(_asn), __FUNCTION__, __FILE__, __LINE__))
 

Typedefs

typedef struct rpmasn_s * rpmasn
 

Functions

rpmasn rpmasnUnlink (rpmasn asn)
 Unreference a ASN.1 wrapper instance. More...
 
rpmasn rpmasnLink (rpmasn asn)
 Reference a ASN.1 wrapper instance. More...
 
rpmasn rpmasnFree (rpmasn asn)
 Destroy a ASN.1 wrapper. More...
 
rpmasn rpmasnNew (const char *fn, int flags)
 Create and load a ASN.1 wrapper. More...
 

Variables

int _rpmasn_debug
 

Macro Definition Documentation

#define rpmasnFree (   _asn)    ((rpmasn)rpmioFreePoolItem((rpmioItem)(_asn), __FUNCTION__, __FILE__, __LINE__))

Definition at line 81 of file rpmasn.h.

#define rpmasnLink (   _asn)    ((rpmasn)rpmioLinkPoolItem((rpmioItem)(_asn), __FUNCTION__, __FILE__, __LINE__))

Definition at line 69 of file rpmasn.h.

#define rpmasnUnlink (   _asn)    ((rpmasn)rpmioUnlinkPoolItem((rpmioItem)(_asn), __FUNCTION__, __FILE__, __LINE__))

Definition at line 58 of file rpmasn.h.

Typedef Documentation

typedef struct rpmasn_s* rpmasn

Definition at line 15 of file rpmasn.h.

Function Documentation

rpmasn rpmasnFree ( rpmasn  asn)

Destroy a ASN.1 wrapper.

Parameters
asnASN.1 wrapper
Returns
NULL on last dereference
rpmasn rpmasnLink ( rpmasn  asn)

Reference a ASN.1 wrapper instance.

Parameters
asnASN.1 wrapper
Returns
new ASN.1 wrapper reference

Referenced by rpmasnNew().

rpmasn rpmasnNew ( const char *  fn,
int  flags 
)

Create and load a ASN.1 wrapper.

Parameters
fnASN.1 file
flagsASN.1 flags
Returns
new ASN.1 wrapper

Definition at line 56 of file rpmasn.c.

References rpmasnGetPool(), rpmasnLink(), and xstrdup().

rpmasn rpmasnUnlink ( rpmasn  asn)

Unreference a ASN.1 wrapper instance.

Parameters
asnASN.1 wrapper
Returns
NULL on last dereference

Variable Documentation

int _rpmasn_debug

Definition at line 21 of file rpmasn.c.

Referenced by rpmasnGetPool().