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.
|
#include "typedefs.h"
#include "memory_allocations.h"
#include "grassroots_util_library.h"
#include "jansson.h"
Go to the source code of this file.
Data Structures | |
struct | StringIntPair |
A datatype for holding a key-value pair where the key is a c-style string and the value is an unsigned integer. More... | |
struct | StringIntPairArray |
A datatype for storing a set of StringIntPairs. More... | |
Functions | |
json_t * | GetStringIntPairsAsResourceJSON (const StringIntPairArray *pairs_p, const char *const protocol_s) |
Get the JSON fragment representing a StringIntPairArray. More... | |
json_t * | GetStringIntPairAsResourceJSON (const StringIntPair *pair_p, const char *const protocol_s) |
Get the JSON fragment representing a StringIntPair. More... | |
json_t* GetStringIntPairsAsResourceJSON | ( | const StringIntPairArray * | pairs_p, |
const char *const | protocol_s | ||
) |
Get the JSON fragment representing a StringIntPairArray.
This will call GetStringIntPairAsResourceJSON for each item in the array.
pairs_p | The StringIntPairArray to get the JSON fragment for. |
protocol_s | The Protocol for the Resource. |
NULL
upon error. json_t* GetStringIntPairAsResourceJSON | ( | const StringIntPair * | pair_p, |
const char *const | protocol_s | ||
) |
Get the JSON fragment representing a StringIntPair.
pair_p | The StringIntPairArray to get the JSON fragment for. |
protocol_s | The Protocol for the Resource. |
NULL
upon error.