Asterisk - The Open Source Telephony Project GIT-master-f36a736
Data Fields
ao2_container_hash Struct Reference
Collaboration diagram for ao2_container_hash:
Collaboration graph
[legend]

Data Fields

struct hash_bucket buckets [0]
 
struct ao2_container common
 Items common to all containers. More...
 
ao2_hash_fnhash_fn
 
int n_buckets
 

Detailed Description

A hash container in addition to values common to all container types, stores the hash callback function, the number of hash buckets, and the hash bucket heads.

Definition at line 65 of file astobj2_hash.c.

Field Documentation

◆ buckets

struct hash_bucket buckets[0]

Hash bucket array of n_buckets. Variable size.

Definition at line 75 of file astobj2_hash.c.

Referenced by hash_ao2_destroy(), hash_ao2_find_first(), hash_ao2_find_next(), hash_ao2_insert_node(), hash_ao2_iterator_next(), and hash_ao2_node_destructor().

◆ common

struct ao2_container common

Items common to all containers.

Note
Must be first in the specific container struct.

Definition at line 70 of file astobj2_hash.c.

Referenced by hash_ao2_alloc_empty_clone(), hash_ao2_container_init(), hash_ao2_find_first(), hash_ao2_insert_node(), and hash_ao2_node_destructor().

◆ hash_fn

ao2_hash_fn* hash_fn

◆ n_buckets

int n_buckets

The documentation for this struct was generated from the following file: