PairedServiceNode Struct Reference

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

#include <paired_service.h>

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

Public Member Functions

PairedServiceNodeAllocatePairedServiceNode (PairedService *paired_service_p)
 Allocate a PairedServiceNode. More...
 
PairedServiceNodeAllocatePairedServiceNodeByParts (const uuid_t id, const char *name_s, const char *server_uri_s, const char *server_name_s, const json_t *op_p, const json_t *provider_p)
 Allocate a PairedService and attach it to a PairedServiceNode. More...
 
void FreePairedServiceNode (ListItem *node_p)
 Free a PairedServiceNode. More...
 

Data Fields

ListItem psn_node
 The base list node. More...
 
PairedServicepsn_paired_service_p
 The PairedService. 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 PairedServices on a LinkedList.

Member Function Documentation

◆ AllocatePairedServiceNode()

PairedServiceNode * AllocatePairedServiceNode ( PairedService paired_service_p)

Allocate a PairedServiceNode.

Parameters
paired_service_pThe PairedService to store in the new PairedServiceNode.
Returns
The new PairedServiceNode or NULL upon error.

◆ AllocatePairedServiceNodeByParts()

PairedServiceNode * AllocatePairedServiceNodeByParts ( const uuid_t  id,
const char *  name_s,
const char *  server_uri_s,
const char *  server_name_s,
const json_t *  op_p,
const json_t *  provider_p 
)

Allocate a PairedService and attach it to a PairedServiceNode.

Parameters
idThe UUID of the ExternalServer that has the PairedService.
name_sThe name of the PairedService.
server_uri_sThe URI for the ExternalServer's Grassroots access.
server_name_sThe name of the ExternalServer.
op_pThe JSON fragment for the Service.
provider_pThe JSON fragment representing the Provider.
Returns
The new PairedServiceNode or NULL upon error.
See also
AllocatePairedService

◆ FreePairedServiceNode()

void FreePairedServiceNode ( ListItem node_p)

Free a PairedServiceNode.

Parameters
node_pThe PairedServiceNode to free.

Field Documentation

◆ psn_node

ListItem psn_node

The base list node.

◆ psn_paired_service_p

PairedService* psn_paired_service_p

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