Go to the source code of this file.
Data Structures | |
struct | node_s |
struct | hashtree_s |
Typedefs | |
typedef node_s | node_t |
typedef hashtree_s | hashtree |
Functions | |
hashtree * | hashtree_new (gpointer(*hash_func)(gpointer, gpointer)) |
Create a new hashtree. | |
void | hashtree_append_leaf_node (hashtree *parent, gpointer hash) |
Append leaf node to hash tree. | |
void | hashtree_finish (hashtree *parent) |
Finish the hashtree. | |
void | hashtree_destroy (hashtree *tree) |
Destroy the hashtree. |
|
|
|
|
|
Append leaf node to hash tree. Adds a new leaf node to the hashtree, if necesarry it will expand the hashtree to include the new leaf node.
|
|
Destroy the hashtree. Destroys the hash tree and all its included node. This will free all memory used by the hashtree, including all hashes assigned to a node which was added with hashtree_append_leaf_node which will be freed using g_free
|
|
Finish the hashtree. Calculates all internal hashes in the hashtree. Call this function when you are ready with adding leaf nodes to the hashtree.
|
|
Create a new hashtree. Initializes a new hashtree. Save the returned hashtree pointer which you need to pass to the other hashtree functions.
|