libyang  2.2.8
libyang is YANG data modelling language parser and toolkit written (and providing API) in C.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
plugins.h
Go to the documentation of this file.
1 
15 #ifndef LY_PLUGINS_H_
16 #define LY_PLUGINS_H_
17 
18 #include "log.h"
19 
20 struct lyplg_ext_record;
21 struct lyplg_type_record;
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
70 enum LYPLG {
73 };
74 
89 LIBYANG_API_DECL LY_ERR lyplg_add(const char *pathname);
90 
107 LIBYANG_API_DECL LY_ERR lyplg_add_extension_plugin(struct ly_ctx *ctx, uint32_t version, const struct lyplg_ext_record *recs);
108 
125 LIBYANG_API_DECL LY_ERR lyplg_add_type_plugin(struct ly_ctx *ctx, uint32_t version, const struct lyplg_type_record *recs);
128 #ifdef __cplusplus
129 }
130 #endif
131 
132 #endif /* LY_PLUGINS_H_ */
LIBYANG_API_DECL LY_ERR lyplg_add(const char *pathname)
Manually load a plugin file.
LYPLG
Identifiers of the plugin type.
Definition: plugins.h:70
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.
Logger manipulation routines and error definitions.
LY_ERR
libyang's error codes returned by the libyang functions.
Definition: log.h:240
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.
libyang context handler.