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

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

#include <service.h>

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

Public Member Functions

ServiceNodeAllocateServiceNode (Service *service_p)
 Allocate a ServiceNode pointing to the given Service. More...
 
void FreeServiceNode (ListItem *node_p)
 Free a ServiceNode. More...
 

Data Fields

ListItem sn_node
 The List Node. More...
 
Servicesn_service_p
 The Service. 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 Services on a LinkedList.

Member Function Documentation

◆ AllocateServiceNode()

ServiceNode * AllocateServiceNode ( Service service_p)

Allocate a ServiceNode pointing to the given Service.

Parameters
service_pThe Service to store on the ServiceNode.
Returns
A newly-allocated ServiceNode or NULL upon error.

◆ FreeServiceNode()

void FreeServiceNode ( ListItem node_p)

Free a ServiceNode.

Parameters
node_pThe ServiceNode to free.

Field Documentation

◆ sn_node

ListItem sn_node

The List Node.

◆ sn_service_p

Service* sn_service_p

The Service.


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