rpm  5.4.10
Data Structures | Typedefs | Functions
rpmhook.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  rpmhookArgv
 
struct  rpmhookArgs_s
 

Typedefs

typedef struct rpmhookArgs_srpmhookArgs
 
typedef int(* rpmhookFunc) (rpmhookArgs args, void *data)
 

Functions

rpmhookArgs rpmhookArgsNew (int argc)
 
rpmhookArgs rpmhookArgsFree (rpmhookArgs args)
 
void rpmhookRegister (const char *name, rpmhookFunc func, void *data)
 
void rpmhookUnregister (const char *name, rpmhookFunc func, void *data)
 
void rpmhookUnregisterAny (const char *name, rpmhookFunc func)
 
void rpmhookUnregisterAll (const char *name)
 
void rpmhookCall (const char *name, const char *argt,...)
 
void rpmhookCallArgs (const char *name, rpmhookArgs args)
 

Typedef Documentation

§ rpmhookArgs

typedef struct rpmhookArgs_s * rpmhookArgs

§ rpmhookFunc

typedef int(* rpmhookFunc) (rpmhookArgs args, void *data)

Definition at line 19 of file rpmhook.h.

Function Documentation

§ rpmhookArgsFree()

rpmhookArgs rpmhookArgsFree ( rpmhookArgs  args)

Definition at line 42 of file rpmhook.c.

Referenced by rpmhookCall().

§ rpmhookArgsNew()

rpmhookArgs rpmhookArgsNew ( int  argc)

Definition at line 34 of file rpmhook.c.

References rpmhookArgs_s::argc, rpmhookArgs_s::argv, and xcalloc().

Referenced by rpmhookArgsParse().

§ rpmhookCall()

void rpmhookCall ( const char *  name,
const char *  argt,
  ... 
)

Definition at line 267 of file rpmhook.c.

References rpmhookArgsFree(), rpmhookArgsParse(), and rpmhookTableCallArgs().

§ rpmhookCallArgs()

void rpmhookCallArgs ( const char *  name,
rpmhookArgs  args 
)

Definition at line 282 of file rpmhook.c.

References rpmhookTableCallArgs().

§ rpmhookRegister()

void rpmhookRegister ( const char *  name,
rpmhookFunc  func,
void *  data 
)

Definition at line 240 of file rpmhook.c.

References RPMHOOK_TABLE_INITSIZE, rpmhookTableAddItem(), and rpmhookTableNew().

§ rpmhookUnregister()

void rpmhookUnregister ( const char *  name,
rpmhookFunc  func,
void *  data 
)

Definition at line 249 of file rpmhook.c.

References rpmhookTableDelItem().

§ rpmhookUnregisterAll()

void rpmhookUnregisterAll ( const char *  name)

Definition at line 261 of file rpmhook.c.

References rpmhookTableDelItem().

§ rpmhookUnregisterAny()

void rpmhookUnregisterAny ( const char *  name,
rpmhookFunc  func 
)

Definition at line 255 of file rpmhook.c.

References rpmhookTableDelItem().