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

A ServiceMatcher that matches a Service by its Plugin name. More...

#include <service_matcher.h>

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

Public Member Functions

void SetPluginNameForServiceMatcher (PluginNameServiceMatcher *matcher_p, const char *plugin_name_s)
 Set the Plugin name to match for a PluginNameServiceMatcher. More...
 
- Public Member Functions inherited from ServiceMatcher
ServiceMatcherAllocateServiceMatcher (void)
 Allocate an empty ServiceMatcher. More...
 
ServiceMatcherAllocateResourceServiceMatcher (DataResource *resource_p, Handler *handler_p)
 Allocate a ResourceServiceMatcher. More...
 
ServiceMatcherAllocateOperationNameServiceMatcher (const char *name_s, const char *alias_s)
 Allocate a NameServiceMatcher. More...
 
ServiceMatcherAllocatePluginNameServiceMatcher (const char *plugin_name_s)
 Allocate a PluginNameServiceMatcher. More...
 
ServiceMatcherAllocatePluginOperationNameServiceMatcher (const char *plugin_name_s, const char *service_name_s)
 Allocate a PluginOperationNameServiceMatcher. More...
 
ServiceMatcherAllocateKeywordServiceMatcher (void)
 Allocate a KeywordServiceMatcher. More...
 
GRASSROOTS_SERVICE_MANAGER_LOCAL void InitServiceMatcher (ServiceMatcher *matcher_p, RunServiceMatcherCallback match_fn)
 Initialise a ServiceMatcher. More...
 
bool RunServiceMatcher (ServiceMatcher *matcher_p, Service *service_p)
 Run a ServiceMatcher on a given Service. More...
 
void FreeServiceMatcher (ServiceMatcher *matcher_p)
 Free a ServiceMatcher. More...
 

Data Fields

ServiceMatcher pnsm_base_matcher
 The base matcher. More...
 
const char * pnsm_plugin_name_s
 The name of the Service's Plugin to match. More...
 
- Data Fields inherited from ServiceMatcher
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...
 

Detailed Description

A ServiceMatcher that matches a Service by its Plugin name.

Find a Service by matching the name of the Plugin that it was loaded from. This is used when working with a ReferredService.

Member Function Documentation

◆ SetPluginNameForServiceMatcher()

void SetPluginNameForServiceMatcher ( PluginNameServiceMatcher matcher_p,
const char *  plugin_name_s 
)

Set the Plugin name to match for a PluginNameServiceMatcher.

Parameters
matcher_pThe PluginNameServiceMatcher to update.
plugin_name_sThe Plugin name to search for.

Field Documentation

◆ pnsm_base_matcher

ServiceMatcher pnsm_base_matcher

The base matcher.

◆ pnsm_plugin_name_s

const char* pnsm_plugin_name_s

The name of the Service's Plugin to match.


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