|
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 used to find any Services that match given criteria. More...
#include <service_matcher.h>
Data Fields | |
| RunServiceMatcherCallback | sm_match_fn |
| Callback function to run against a given Service to see if is a match. More... | |
| DestroyServiceMatcherCallback | sm_destroy_fn |
| Callback to call when destroying a custom ServiceMatcher. More... | |
A datatype used to find any Services that match given criteria.
| ServiceMatcher * AllocateServiceMatcher | ( | void | ) |
Allocate an empty ServiceMatcher.
NULL upon error. | ServiceMatcher * AllocateResourceServiceMatcher | ( | DataResource * | resource_p, |
| Handler * | handler_p | ||
| ) |
Allocate a ResourceServiceMatcher.
| resource_p | The Resource to find matching Services for. |
| handler_p | An optional Handler to open the Resource with. This can be NULL. |
NULL upon error. | ServiceMatcher * AllocateOperationNameServiceMatcher | ( | const char * | name_s, |
| const char * | alias_s | ||
| ) |
Allocate a NameServiceMatcher.
| name_s | The name of the Service to match. |
NULL upon error. | ServiceMatcher * AllocatePluginNameServiceMatcher | ( | const char * | plugin_name_s | ) |
Allocate a PluginNameServiceMatcher.
NULL upon error. | ServiceMatcher * AllocatePluginOperationNameServiceMatcher | ( | const char * | plugin_name_s, |
| const char * | service_name_s | ||
| ) |
Allocate a PluginOperationNameServiceMatcher.
| plugin_name_s | The name of the Plugin for a Service to match. |
| service_name_s | The name of the Service to match. |
NULL upon error. | ServiceMatcher * AllocateKeywordServiceMatcher | ( | void | ) |
Allocate a KeywordServiceMatcher.
NULL upon error. | GRASSROOTS_SERVICE_MANAGER_LOCAL void InitServiceMatcher | ( | ServiceMatcher * | matcher_p, |
| RunServiceMatcherCallback | match_fn | ||
| ) |
Initialise a ServiceMatcher.
| matcher_p | The ServiceMatcher to initialise. |
| match_fn | The callback function to use for determining matching Services. |
| bool RunServiceMatcher | ( | ServiceMatcher * | matcher_p, |
| Service * | service_p | ||
| ) |
Run a ServiceMatcher on a given Service.
| matcher_p | The ServiceMatcher to run |
| service_p | The Service to check. |
true if the Service was a match, false otherwise. | void FreeServiceMatcher | ( | ServiceMatcher * | matcher_p | ) |
Free a ServiceMatcher.
| matcher_p | The ServiceMatcher to free |
| RunServiceMatcherCallback sm_match_fn |
Callback function to run against a given Service to see if is a match.
| DestroyServiceMatcherCallback sm_destroy_fn |
Callback to call when destroying a custom ServiceMatcher.
| matcher_p | The ServiceMatcher to destroy. |