gobj_service_factory()
#
Creates a service GObj using the specified configuration. This is typically used in the entry point to initialize and run services.
Prototype
PUBLIC hgobj gobj_service_factory(
const char *name,
json_t *jn_service_config // owned
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The name of the service GObj to be created. |
|
JSON configuration for the service, specifying attributes and initialization parameters. This parameter is owned by the function. |
Return Value
Returns the handle (
hgobj
) to the created service GObj.Returns
NULL
if the creation fails.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples