|
rpm
5.4.14
|
#include "system.h"#include <stdlib.h>#include <stdio.h>#include <string.h>#include <stdarg.h>#include <rpmhook.h>#include "debug.h"
Go to the source code of this file.
Data Structures | |
| struct | rpmhookItem_s |
| struct | rpmhookBucket_s |
| struct | rpmhookTable_s |
Macros | |
| #define | RPMHOOK_TABLE_INITSIZE 256 |
| #define | RPMHOOK_BUCKET_INITSIZE 5 |
Typedefs | |
| typedef struct rpmhookItem_s * | rpmhookItem |
| typedef struct rpmhookBucket_s * | rpmhookBucket |
| typedef struct rpmhookTable_s * | rpmhookTable |
Variables | |
| static rpmhookTable | globalTable = NULL |
| #define RPMHOOK_TABLE_INITSIZE 256 |
Definition at line 11 of file rpmhook.c.
Referenced by rpmhookRegister().
| typedef struct rpmhookBucket_s * rpmhookBucket |
| typedef struct rpmhookItem_s * rpmhookItem |
| typedef struct rpmhookTable_s * rpmhookTable |
| rpmhookArgs rpmhookArgsFree | ( | rpmhookArgs | args | ) |
| rpmhookArgs rpmhookArgsNew | ( | int | argc | ) |
Definition at line 34 of file rpmhook.c.
References rpmhookArgs_s::argc, args, rpmhookArgs_s::argv, and xcalloc().
Referenced by rpmhookArgsParse().
|
static |
Definition at line 190 of file rpmhook.c.
References rpmhookArgs_s::argc, args, rpmhookArgs_s::argt, rpmhookArgs_s::argv, rpmhookArgv::f, fprintf(), rpmhookArgv::i, i, rpmhookArgv::p, rpmhookArgsNew(), and rpmhookArgv::s.
Referenced by rpmhookCall().
| void rpmhookCall | ( | const char * | name, |
| const char * | argt, | ||
| ... | |||
| ) |
Definition at line 267 of file rpmhook.c.
References args, NULL, rpmhookArgsFree(), rpmhookArgsParse(), rpmhookTableCallArgs(), and void.
| void rpmhookCallArgs | ( | const char * | name, |
| rpmhookArgs | args | ||
| ) |
Definition at line 282 of file rpmhook.c.
References NULL, and rpmhookTableCallArgs().
| void rpmhookRegister | ( | const char * | name, |
| rpmhookFunc | func, | ||
| void * | data | ||
| ) |
Definition at line 240 of file rpmhook.c.
References NULL, RPMHOOK_TABLE_INITSIZE, rpmhookTableAddItem(), and rpmhookTableNew().
|
static |
Definition at line 138 of file rpmhook.c.
References rpmhookBucket_s::item, n, rpmhookBucket_s::name, rpmhookItem_s::next, rpmhookTableFindBucket(), and xcalloc().
Referenced by rpmhookRegister().
|
static |
Definition at line 224 of file rpmhook.c.
References rpmhookItem_s::data, rpmhookItem_s::func, n, rpmhookItem_s::next, and rpmhookTableFindBucket().
Referenced by rpmhookCall(), and rpmhookCallArgs().
|
static |
Definition at line 157 of file rpmhook.c.
References rpmhookItem_s::data, rpmhookItem_s::func, rpmhookBucket_s::item, n, rpmhookBucket_s::name, rpmhookItem_s::next, NULL, and rpmhookTableFindBucket().
Referenced by rpmhookUnregister(), rpmhookUnregisterAll(), and rpmhookUnregisterAny().
|
static |
Definition at line 84 of file rpmhook.c.
References be, rpmhookBucket_s::hash, rpmhookBucket_s::name, ret, rpmhookTableRehash(), and strcmp().
Referenced by rpmhookTableAddItem(), rpmhookTableCallArgs(), rpmhookTableDelItem(), and rpmhookTableRehash().
|
static |
Definition at line 50 of file rpmhook.c.
References rpmhookTable_s::bucket, rpmhookTable_s::size, size, and xcalloc().
Referenced by rpmhookRegister(), and rpmhookTableRehash().
|
static |
Definition at line 118 of file rpmhook.c.
References rpmhookTable_s::bucket, i, rpmhookBucket_s::item, n, rpmhookBucket_s::name, NULL, rpmhookTableFindBucket(), rpmhookTableNew(), and rpmhookTable_s::used.
Referenced by rpmhookTableFindBucket().
| void rpmhookUnregister | ( | const char * | name, |
| rpmhookFunc | func, | ||
| void * | data | ||
| ) |
Definition at line 249 of file rpmhook.c.
References NULL, and rpmhookTableDelItem().
| void rpmhookUnregisterAll | ( | const char * | name | ) |
Definition at line 261 of file rpmhook.c.
References NULL, and rpmhookTableDelItem().
| void rpmhookUnregisterAny | ( | const char * | name, |
| rpmhookFunc | func | ||
| ) |
Definition at line 255 of file rpmhook.c.
References NULL, and rpmhookTableDelItem().
|
static |
1.8.5