Constructor
GrlConfignew
since: 0.1.4
Declaration [src]
GrlConfig*
grl_config_new (
const gchar* plugin,
const gchar* source
)
Description [src]
Creates a new data config object that will be associated with a plugin
(if source
is NULL), or a specific source spawned from a plugin (if
source
is not NULL). The latter may be useful for plugins
spawning various sources, each one needing a different configuration.
Available since: 0.1.4
Parameters
plugin
-
Type:
const gchar*
Plugin id for this configuration.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. source
-
Type:
const gchar*
Source id for this configuration.
The argument can be NULL
.The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string.
Return value
Type: GrlConfig
A newly-allocated data config. The data config associated with the plugin should not be freed until the plugin has been unloaded.
The data is owned by the called function. |