![]() |
![]() |
![]() |
[Insert name here] Reference Manual | ![]() |
---|
gop-xml-source-registrygop-xml-source-registry — API for plugging in custom serialisers. |
void gop_xml_source_registry_init (GopXMLSource *default_source);void gop_xml_source_registry_register (gchar const *type_name,GopXMLSource *source); constGopXMLSource * gop_xml_source_registry_query (gchar const *type_name);void gop_xml_source_registry_shutdown (void);
Application specific serialisers not supported by the stock gopersist library can be registered using this API.
void gop_xml_source_registry_init (GopXMLSource *default_source);
Initialise xml serialiser subsystem. Called by
,
no need to call as gopersist consumer.gopersist_init()
default_source : |
Fallback serialiser for generic GObjects. |
void gop_xml_source_registry_register (gchar const *type_name,GopXMLSource *source);
Register a GObject/XML serialiser for a certain GType.
type_name : |
Name of handled type. |
source : |
Serialiser implementation. |
constGopXMLSource * gop_xml_source_registry_query (gchar const *type_name);
Get serialiser for a certain type. If no specific one is available the default one is returned.
type_name : |
Name of type to get sink for. |
Returns : | Serialiser instance, owned by the sink registry. |
void gop_xml_source_registry_shutdown (void);
Shutdown xml serialiser subsystem. Called by
,
no need to call as gopersist consumer.gopersist_shutdown()
<< gopersist | gop-transformers >> |