Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
|
A ListNode for LinkedLists that also stores arbitrary blocks of data. More...
#include <data_linked_list.h>
Public Member Functions | |
DataListNode * | AllocateDataListNode (const char *data_p, const size_t data_size) |
Create a new DataListNode. More... | |
void | FreeDataListNode (ListItem *const node_p) |
Free a DataListNode. More... | |
Data Fields | |
ListItem | dln_node |
The ListNode. More... | |
char * | dln_data_p |
The data to store. More... | |
size_t | dln_data_size |
The size in bytes of the stored data. More... | |
Data Fields inherited from ListItem | |
ListItem * | ln_prev_p |
A pointer to the previous ListItem. More... | |
ListItem * | ln_next_p |
A pointer to the next ListItem. More... | |
A ListNode for LinkedLists that also stores arbitrary blocks of data.
DataListNode * AllocateDataListNode | ( | const char * | data_p, |
const size_t | data_size | ||
) |
Create a new DataListNode.
data_p | The data to store in the newly-created DataListNode. |
data_size | The size in bytes of the data. |
NULL
upon error. void FreeDataListNode | ( | ListItem *const | node_p | ) |
Free a DataListNode.
node_p | The DataListNode to free. |
ListItem dln_node |
The ListNode.
char* dln_data_p |
The data to store.
size_t dln_data_size |
The size in bytes of the stored data.