Paraslash Audio Streaming | |
About News Download Documentation Development |
Structure for creating new buffer tree nodes. More...
#include <buffer_tree.h>
Data Fields | |
const char * | name |
Name of the new node. More... | |
struct btr_node * | parent |
Parent of the new node. More... | |
struct btr_node * | child |
Child of the new node. More... | |
btr_command_handler | handler |
Used for inter node communication. More... | |
void * | context |
Points usually to the struct that contains the node pointer. More... | |
Structure for creating new buffer tree nodes.
btr_new_node() takes a pointer to such a structure.
There are four different combinations of parent and child:
NULL
. This creates a new buffer tree with a single isolated node.NULL
, child == NULL. This creates a new leaf node by adding the new node to the list of children of the given parent node.const char* name |
Name of the new node.
Referenced by btr_new_node().
struct btr_node* parent |
Parent of the new node.
Referenced by btr_new_node().
struct btr_node* child |
Child of the new node.
btr_command_handler handler |
void* context |
Points usually to the struct that contains the node pointer.
Referenced by btr_new_node().