Loading...
Searching...
No Matches
plugins.h
Go to the documentation of this file.
#ifndef LY_PLUGINS_H_
#define LY_PLUGINS_H_
#include "log.h"
struct lyplg_ext_record;
struct lyplg_type_record;
#ifdef __cplusplus
extern "C" {
#endif
enum LYPLG {
LYPLG_TYPE,
LYPLG_EXTENSION
};
LIBYANG_API_DECL LY_ERR lyplg_add(const char *pathname);
LIBYANG_API_DECL LY_ERR lyplg_add_extension_plugin(struct ly_ctx *ctx, uint32_t version, const struct lyplg_ext_record *recs);
LIBYANG_API_DECL LY_ERR lyplg_add_type_plugin(struct ly_ctx *ctx, uint32_t version, const struct lyplg_type_record *recs);
#ifdef __cplusplus
}
#endif
#endif /* LY_PLUGINS_H_ */
ly_ctx
libyang context handler.
LY_ERR
LY_ERR
libyang's error codes returned by the libyang functions.
Definition log.h:237
lyplg_ext_record
Definition plugins_exts.h:953
lyplg_add_extension_plugin
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.
LYPLG
LYPLG
Identifiers of the plugin type.
Definition plugins.h:73
lyplg_add_type_plugin
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.
lyplg_add
LIBYANG_API_DECL LY_ERR lyplg_add(const char *pathname)
Manually load a plugin file.
LYPLG_EXTENSION
@ LYPLG_EXTENSION
Definition plugins.h:75
LYPLG_TYPE
@ LYPLG_TYPE
Definition plugins.h:74
lyplg_type_record
Definition plugins_types.h:635
log.h
Logger manipulation routines and error definitions.