Struct PntosRegistryPlugin
Defined in File registry.h
Struct Documentation
-
struct PntosRegistryPlugin
A plugin for a global key-value registry. See the
pntOS Registrypage in theInternalssection for more information on the goal of this plugin.Public Members
-
PntosCommonPlugin common
-
PntosRegistry *(*new_registry)(struct PntosRegistryPlugin *self, char *initial_config)
Create a new registry based on the initial values stored in
initial_config. The format ofinitial_configis implementation specific, and plugins are free to support any or no format.Possible formats may include:
NULL, in which case the plugin is free to choose initial values. Choices may include hard-coded in the plugin or none at all.a
\0-terminatedchar*. Examples of possible values the parameter could hold:The entire config.
A local file path on systems which support them.
A string adhering to the URI scheme.
Note
The returned PntosRegistry should be capable of producing PntosKeyValueStore structs that are able to be used concurrently. Thus if the user uses the return value of this method to start two batches, one on group “foo” and the other on group “bar”, then concurrent access to both of the resulting PntosKeyValueStore structs for “foo” and “bar” should be supported (i.e. no shared mutable state between them that is not synchronized).
-
PntosCommonPlugin common