![]() |
![]() |
![]() |
[Insert name here] Reference Manual | ![]() |
---|
gop-xml-sink-registrygop-xml-sink-registry — API for plugging in custom deserialisers. |
void gop_xml_sink_registry_init (GopXMLSink *default_sink);void gop_xml_sink_registry_register (gchar const *type_name,GopXMLSink *sink); constGopXMLSink * gop_xml_sink_registry_query (gchar const *type_name);void gop_xml_sink_registry_shutdown (void);
Application specific deserialisers not supported by the stock gopersist library can be registered using this API.
void gop_xml_sink_registry_init (GopXMLSink *default_sink);
Initialise xml deserialiser subsystem. Called by
,
no need to call as gopersist consumer.gopersist_init()
default_sink : |
Fallback deserialiser for generic GObjects. |
void gop_xml_sink_registry_register (gchar const *type_name,GopXMLSink *sink);
Register a GObject/XML deserialiser for a certain GType.
type_name : |
Name of handled type. |
sink : |
Deserialiser implementation. |
constGopXMLSink * gop_xml_sink_registry_query (gchar const *type_name);
Get deserialiser 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 : | Deserialiser instance, owned by the sink registry. |
void gop_xml_sink_registry_shutdown (void);
Shutdown xml deserialiser subsystem. Called by
,
no need to call as gopersist consumer.gopersist_shutdown()
<< GopXMLSourceGtkListStore | GopXMLSink (internal) >> |