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

A datatype for storing a json_t on a LinkedList. More...

#include <json_util.h>

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

Public Member Functions

JsonNodeAllocateJsonNode (json_t *json_p)
 Allocate a JsonNode that points to the given json object. More...
 
void FreeJsonNode (ListItem *node_p)
 Free a JsonNode. More...
 

Data Fields

ListItem jn_node
 The base List node. More...
 
json_t * jn_json_p
 Pointer to the json object. 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 datatype for storing a json_t on a LinkedList.

See also
LinkedList

Member Function Documentation

◆ AllocateJsonNode()

JsonNode * AllocateJsonNode ( json_t *  json_p)

Allocate a JsonNode that points to the given json object.

Parameters
json_pThe json object for the JsonNode to point to.
Returns
A newly-allocated JsonNode or NULL upon error.
See also
FreeJsonNode

◆ FreeJsonNode()

void FreeJsonNode ( ListItem node_p)

Free a JsonNode.

Parameters
node_pThe JsonNode to free. The number of references to the associated json object will be decremented by 1.

Field Documentation

◆ jn_node

ListItem jn_node

The base List node.

◆ jn_json_p

json_t* jn_json_p

Pointer to the json object.


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