Data Structures | Defines | Typedefs | Enumerations | Functions

rpmobject.h File Reference

Go to the source code of this file.

Data Structures

struct  rpmObject_s
struct  rpmTypeObject_s

Defines

#define rpmObject_HEAD
#define rpmObject_HEAD_INIT(type)   1, type,
#define rpmObjLink(_type, _obj)   (_type)rpmObjRef((rpmObject *)(_obj))
#define rpmObjUnlink(_type, _obj)   (_type)rpmObjDel((rpmObject *)(_obj))
#define rpmObjUnref(obj)   rpmObjFree((obj))

Typedefs

typedef struct rpmTypeObject_s rpmTypeObject
typedef struct rpmObject_s rpmObject
typedef enum rpmObjTypeFlags_e rpmObjTypeFlags
typedef void(* rpmobj_initfunc )(rpmObject *)
typedef void(* rpmobj_destructor )(rpmObject *)

Enumerations

enum  rpmObjTypeFlags_e { RPMOBJ_NONE = 0, RPMOBJ_NOREFCNT = (1 << 0) }

Functions

void * rpmObjRef (rpmObject *obj)
void * rpmObjNew (rpmTypeObject *type)
void * rpmObjFree (rpmObject *obj)

Define Documentation

#define rpmObject_HEAD
Value:
size_t ob_refcnt;       \
        rpmTypeObject * ob_type;

Definition at line 17 of file rpmobject.h.

#define rpmObject_HEAD_INIT (   type  )     1, type,

Definition at line 21 of file rpmobject.h.

#define rpmObjLink (   _type,
  _obj 
)    (_type)rpmObjRef((rpmObject *)(_obj))

Definition at line 49 of file rpmobject.h.

#define rpmObjUnlink (   _type,
  _obj 
)    (_type)rpmObjDel((rpmObject *)(_obj))

Definition at line 50 of file rpmobject.h.

#define rpmObjUnref (   obj  )     rpmObjFree((obj))

Definition at line 53 of file rpmobject.h.


Typedef Documentation

typedef void(* rpmobj_destructor)(rpmObject *)

Definition at line 35 of file rpmobject.h.

typedef void(* rpmobj_initfunc)(rpmObject *)

Definition at line 34 of file rpmobject.h.

typedef struct rpmObject_s rpmObject

Definition at line 14 of file rpmobject.h.


Enumeration Type Documentation

Enumerator:
RPMOBJ_NONE 
RPMOBJ_NOREFCNT 

Definition at line 29 of file rpmobject.h.


Function Documentation

void* rpmObjFree ( rpmObject obj  ) 
void* rpmObjNew ( rpmTypeObject type  ) 
void* rpmObjRef ( rpmObject obj  )