Prototype for Hash Destructor callback function.
More...
|
static void | group_hash_free (int type, void *obj, intptr_t data) |
| Free our hash table data - Implements hash_hdata_free_t -.
|
|
static void | cs_hashelem_free (int type, void *obj, intptr_t data) |
| Free our hash table data - Implements hash_hdata_free_t -.
|
|
static void | tags_deleter (int type, void *obj, intptr_t data) |
| Free our hash table data - Implements hash_hdata_free_t -.
|
|
static void | idxfmt_hashelem_free (int type, void *obj, intptr_t data) |
| Free our hash table data - Implements hash_hdata_free_t -.
|
|
static void | thread_hash_destructor (int type, void *obj, intptr_t data) |
| Free our hash table data - Implements hash_hdata_free_t -.
|
|
void | nntp_hashelem_free (int type, void *obj, intptr_t data) |
| Free our hash table data - Implements hash_hdata_free_t -.
|
|
Prototype for Hash Destructor callback function.
- Parameters
-
type | Hash Type |
obj | Object to free |
data | Data associated with the Hash |
- Precondition
- obj is not NULL
◆ group_hash_free()
static void group_hash_free |
( |
int |
type, |
|
|
void * |
obj, |
|
|
intptr_t |
data |
|
) |
| |
|
static |
Free our hash table data - Implements hash_hdata_free_t -.
Definition at line 84 of file group.c.
85{
86 struct Group *g = obj;
88}
static void group_free(struct Group **ptr)
Free an Address Group.
A set of email addresses.
◆ cs_hashelem_free()
static void cs_hashelem_free |
( |
int |
type, |
|
|
void * |
obj, |
|
|
intptr_t |
data |
|
) |
| |
|
static |
Free our hash table data - Implements hash_hdata_free_t -.
- Parameters
-
type | Object type, e.g. DT_STRING |
obj | Object to destroy |
data | ConfigSet associated with the object |
Definition at line 46 of file set.c.
47{
48 if (data == 0)
49 return;
50
52
54
56 {
58
61
62 if (!cdef)
63 return;
64
68
71 }
72 else
73 {
75
79
80
84 {
88 }
89 }
90}
const struct ConfigSetType * cs_get_type_def(const struct ConfigSet *cs, unsigned int type)
Get the definition for a type.
struct HashElem * cs_get_base(struct HashElem *he)
Find the root Config Item.
const char * name
User-visible name.
intptr_t var
Storage for the variable.
intptr_t initial
Initial value.
uint32_t type
Variable type, e.g. DT_STRING.
const char * docs
One-liner description.
int type
Data type, e.g. DT_STRING.
void(* destroy)(const struct ConfigSet *cs, void *var, const struct ConfigDef *cdef)
Container for lots of config items.
The item stored in a Hash Table.
int type
Type of data stored in Hash Table, e.g. DT_STRING.
void * data
User-supplied data.
An inherited config item.
struct HashElem * parent
HashElem of parent config item.
const char * name
Name of this config item.
intptr_t var
(Pointer to) value, of config item
#define D_INTERNAL_INHERITED
Config item is inherited.
#define D_INTERNAL_FREE_CONFIGDEF
Config item must have its ConfigDef freed.
#define D_INTERNAL_INITIAL_SET
Config item must have its initial value freed.
◆ tags_deleter()
static void tags_deleter |
( |
int |
type, |
|
|
void * |
obj, |
|
|
intptr_t |
data |
|
) |
| |
|
static |
◆ idxfmt_hashelem_free()
static void idxfmt_hashelem_free |
( |
int |
type, |
|
|
void * |
obj, |
|
|
intptr_t |
data |
|
) |
| |
|
static |
Free our hash table data - Implements hash_hdata_free_t -.
Definition at line 417 of file hook.c.
418{
419 struct HookList *hl = obj;
420 struct Hook *h = NULL;
421 struct Hook *tmp = NULL;
422
424 {
427 }
428
430}
static void hook_free(struct Hook **ptr)
Free a Hook.
#define TAILQ_FOREACH_SAFE(var, head, field, tvar)
#define TAILQ_REMOVE(head, elm, field)
◆ thread_hash_destructor()
static void thread_hash_destructor |
( |
int |
type, |
|
|
void * |
obj, |
|
|
intptr_t |
data |
|
) |
| |
|
static |
◆ nntp_hashelem_free()
void nntp_hashelem_free |
( |
int |
type, |
|
|
void * |
obj, |
|
|
intptr_t |
data |
|
) |
| |
Free our hash table data - Implements hash_hdata_free_t -.
Definition at line 117 of file nntp.c.
118{
120}
void nntp_mdata_free(void **ptr)
Free the private Mailbox data - Implements Mailbox::mdata_free() -.