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) |
| Callback function for the Hash Table - Implements hash_hdata_free_t -.
|
|
static void | tags_deleter (int type, void *obj, intptr_t data) |
| Delete a tag - Implements hash_hdata_free_t -.
|
|
static void | idxfmt_hashelem_free (int type, void *obj, intptr_t data) |
| Delete an index-format-hook from the Hash Table - Implements hash_hdata_free_t -.
|
|
static void | thread_hash_destructor (int type, void *obj, intptr_t data) |
| Hash Destructor callback - 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 |
Callback function for the Hash Table - 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 43 of file set.c.
44{
45 if (data == 0)
46 return;
47
49
51
53 {
55
58
59 if (!cdef)
60 return;
61
65
68 }
69 else
70 {
72
76
77
81 {
85 }
86 }
87}
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 DT_INITIAL_SET
Config item must have its initial value freed.
#define DT_INHERITED
Config item is inherited.
#define DT_FREE_CONFIGDEF
Config item must have its ConfigDef 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 |
Delete an index-format-hook from the Hash Table - Implements hash_hdata_free_t -.
Definition at line 384 of file hook.c.
385{
386 struct HookList *hl = obj;
387 struct Hook *h = NULL;
388 struct Hook *tmp = NULL;
389
391 {
394 }
395
397}
static void delete_hook(struct Hook *h)
Delete 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()