|
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 having a set of Services. More...
#include <service.h>
Public Member Functions | |
| void | FreeServicesArray (ServicesArray *services_p) |
| Free a ServicesArray and each of its Services. More... | |
| ServicesArray * | AllocateServicesArray (const uint32 num_services) |
| Allocate an empty ServicesArray. More... | |
| ServicesArray * | GetReferenceServicesFromJSON (json_t *config_p, const char *plugin_name_s, Service *(*get_service_fn)(json_t *config_p, size_t i, GrassrootsServer *grassroots_p), GrassrootsServer *grassroots_p) |
| Get the ServicesArray generated from a Services reference file. More... | |
Data Fields | |
| Service ** | sa_services_pp |
| An array of pointers to Services. More... | |
| uint32 | sa_num_services |
| The number of Services in the array. More... | |
A datatype for having a set of Services.
| void FreeServicesArray | ( | ServicesArray * | services_p | ) |
Free a ServicesArray and each of its Services.
| services_p | The ServicesArray to free. |
| ServicesArray * AllocateServicesArray | ( | const uint32 | num_services | ) |
Allocate an empty ServicesArray.
| num_services | The number of potential Services that the ServicesArray will hold. |
NULL upon error. | ServicesArray * GetReferenceServicesFromJSON | ( | json_t * | config_p, |
| const char * | plugin_name_s, | ||
| Service *(*)(json_t *config_p, size_t i, GrassrootsServer *grassroots_p) | get_service_fn, | ||
| GrassrootsServer * | grassroots_p | ||
| ) |
Get the ServicesArray generated from a Services reference file.
| config_p | The JSON fragment loaded from a referemce file. |
| plugin_name_s | The name of the Plugin to use. |
| get_service_fn | The function used to generate each Service that will be placed in the resultant ServicesArray. |
NULL upon error. | Service** sa_services_pp |
An array of pointers to Services.
| uint32 sa_num_services |
The number of Services in the array.