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 datatype for storing SchemaTerms in a LinkedList. More...
#include <schema_term.h>
Public Member Functions | |
SchemaTermNode * | AllocateSchemaTermNodeByParts (const char *url_s, const char *name_s, const char *description_s) |
Allocate a SchemaTermNode. More... | |
SchemaTermNode * | AllocateSchemaTermNode (SchemaTerm *term_p) |
Allocate a SchemaTermNode to store the given SchemaTerm. More... | |
void | FreeSchemaTermNode (ListItem *node_p) |
Free a SchemaTermNode. More... | |
Data Fields | |
ListItem | stn_node |
The base list node. More... | |
SchemaTerm * | stn_term_p |
The SchemaTerm to store on the node. More... | |
A datatype for storing SchemaTerms in a LinkedList.
SchemaTermNode * AllocateSchemaTermNodeByParts | ( | const char * | url_s, |
const char * | name_s, | ||
const char * | description_s | ||
) |
Allocate a SchemaTermNode.
This will create a new SchemaTerm and store it on the newly-created SchemaTermNode.
url_s | The url for the SchemaTerm. |
name_s | The name to give to the SchemaTerm. |
description_s | The description to give to the SchemaTerm. |
NULL
upon error. SchemaTermNode * AllocateSchemaTermNode | ( | SchemaTerm * | term_p | ) |
Allocate a SchemaTermNode to store the given SchemaTerm.
term_p | The SchemaTerm. |
NULL
upon error. void FreeSchemaTermNode | ( | ListItem * | node_p | ) |
Free a SchemaTermNode.
The associated SchemaTerm stored on the given SchemaTermNode will also be freed.
node_p | The SchemaTermNode to free. |
ListItem stn_node |
The base list node.
SchemaTerm* stn_term_p |
The SchemaTerm to store on the node.