Loading...
Searching...
No Matches
libyang.h
Go to the documentation of this file.
#ifndef LY_LIBYANG_H_
#define LY_LIBYANG_H_
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
#include "ly_config.h"
#include "context.h"
#include "dict.h"
#include "in.h"
#include "log.h"
#include "metadata.h"
#include "out.h"
#include "parser_data.h"
#include "parser_schema.h"
#include "printer_data.h"
#include "printer_schema.h"
#include "set.h"
#include "tree.h"
#include "tree_data.h"
#include "tree_schema.h"
#define ly_strerrcode ly_strerr
#define ly_last_errmsg ly_last_logmsg
#define ly_errcode(ctx) (ly_err_last(ctx) ? ly_err_last(ctx)->err : 0)
#define ly_errmsg(ctx) (ly_err_last(ctx) ? ly_err_last(ctx)->msg : NULL)
#define ly_errpath(ctx) (ly_err_last(ctx) ? (ly_err_last(ctx)->data_path ? ly_err_last(ctx)->data_path : ly_err_last(ctx)->schema_path) : NULL)
#define ly_vecode(ctx) (ly_err_last(ctx) ? ly_err_last(ctx)->vecode : 0)
/*
* The following headers are supposed to be included explicitly:
* - hash_table.h
* - metadata.h
* - plugins_types.h
* - plugins_exts.h
*/
#ifdef __cplusplus
}
#endif
#endif /* LY_LIBYANG_H_ */
context.h
internal context structures and functions
dict.h
libyang dictionary
in.h
libyang input structures and functions
log.h
Logger manipulation routines and error definitions.
metadata.h
ietf-yang-metadata API
out.h
libyang output structures and functions
parser_data.h
Data parsers for libyang.
parser_schema.h
Schema parsers for libyang.
printer_data.h
Data printers for libyang.
printer_schema.h
Schema printers for libyang.
set.h
Generic set structure and manipulation routines.
tree.h
libyang generic macros and functions to work with YANG schema or data trees.
tree_data.h
libyang representation of YANG data trees.
tree_schema.h
libyang representation of YANG schema trees.