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.
DataListNode Struct Reference

A ListNode for LinkedLists that also stores arbitrary blocks of data. More...

#include <data_linked_list.h>

Inheritance diagram for DataListNode:
[legend]
Collaboration diagram for DataListNode:
[legend]

Public Member Functions

DataListNodeAllocateDataListNode (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
ListItemln_prev_p
 A pointer to the previous ListItem. More...
 
ListItemln_next_p
 A pointer to the next ListItem. More...
 

Detailed Description

A ListNode for LinkedLists that also stores arbitrary blocks of data.

Member Function Documentation

◆ AllocateDataListNode()

DataListNode * AllocateDataListNode ( const char *  data_p,
const size_t  data_size 
)

Create a new DataListNode.

Parameters
data_pThe data to store in the newly-created DataListNode.
data_sizeThe size in bytes of the data.
Returns
The new DataListNode or NULL upon error.

◆ FreeDataListNode()

void FreeDataListNode ( ListItem *const  node_p)

Free a DataListNode.

Parameters
node_pThe DataListNode to free.

Field Documentation

◆ dln_node

ListItem dln_node

The ListNode.

◆ dln_data_p

char* dln_data_p

The data to store.

◆ dln_data_size

size_t dln_data_size

The size in bytes of the stored data.


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