libyang
3.4.2
libyang is YANG data modelling language parser and toolkit written (and providing API) in C.
|
Enumerations | |
enum | LYPLG { LYPLG_TYPE, LYPLG_EXTENSION } |
Identifiers of the plugin type. More... | |
Functions | |
LIBYANG_API_DECL LY_ERR | lyplg_add (const char *pathname) |
Manually load a plugin file. More... | |
LIBYANG_API_DECL LY_ERR | lyplg_add_extension_plugin (struct ly_ctx *ctx, uint32_t version, const struct lyplg_ext_record *recs) |
Manually load extension plugins from memory. More... | |
LIBYANG_API_DECL LY_ERR | lyplg_add_type_plugin (struct ly_ctx *ctx, uint32_t version, const struct lyplg_type_record *recs) |
Manually load type plugins from memory. More... | |
enum LYPLG |
LIBYANG_API_DECL LY_ERR lyplg_add | ( | const char * | pathname | ) |
Manually load a plugin file.
Note, that a plugin can be loaded only if there is at least one context. The loaded plugins are connected with the existence of a context. When all the contexts are destroyed, all the plugins are unloaded.
[in] | pathname | Path to the plugin file. It can contain types or extensions plugins, both are accepted and correctly loaded. |
LIBYANG_API_DECL LY_ERR lyplg_add_extension_plugin | ( | struct ly_ctx * | ctx, |
uint32_t | version, | ||
const struct lyplg_ext_record * | recs | ||
) |
Manually load extension plugins from memory.
Note, that a plugin can be loaded only if there is at least one context. The loaded plugins are connected with the existence of a context. When all the contexts are destroyed, all the plugins are unloaded.
[in] | ctx | The context to which the plugin should be associated with. If NULL, the plugin is considered to be shared between all existing contexts. |
[in] | version | The version of plugin records. |
[in] | recs | An array of plugin records provided by the plugin implementation. The array must be terminated by a zeroed record. |
LIBYANG_API_DECL LY_ERR lyplg_add_type_plugin | ( | struct ly_ctx * | ctx, |
uint32_t | version, | ||
const struct lyplg_type_record * | recs | ||
) |
Manually load type plugins from memory.
Note, that a plugin can be loaded only if there is at least one context. The loaded plugins are connected with the existence of a context. When all the contexts are destroyed, all the plugins are unloaded.
[in] | ctx | The context to which the plugin should be associated with. If NULL, the plugin is considered to be shared between all existing contexts. |
[in] | version | The version of plugin records. |
[in] | recs | An array of plugin records provided by the plugin implementation. The array must be terminated by a zeroed record. |