libyang  3.1.0
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
libyang.h File Reference

The main libyang public header. More...

#include <stdint.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"
Include dependency graph for libyang.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#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_last_errmsg   ly_last_logmsg
#define ly_strerrcode   ly_strerr
 libyang v3 compatibility macros with v2. More...
#define ly_vecode(ctx)   (ly_err_last(ctx) ? ly_err_last(ctx)->vecode : 0)

Detailed Description

The main libyang public header.

Radek Krejci
Michal Vasko Copyright (c) 2015 - 2024 CESNET, z.s.p.o.

This source code is licensed under BSD 3-Clause License (the "License"). You may not use this file except in compliance with the License. You may obtain a copy of the License at

Definition in file libyang.h.

Macro Definition Documentation

#define ly_errcode (   ctx)    (ly_err_last(ctx) ? ly_err_last(ctx)->err : 0)

Definition at line 45 of file libyang.h.

#define ly_errmsg (   ctx)    (ly_err_last(ctx) ? ly_err_last(ctx)->msg : NULL)

Definition at line 46 of file libyang.h.

#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)

Definition at line 47 of file libyang.h.

#define ly_last_errmsg   ly_last_logmsg

Definition at line 44 of file libyang.h.

#define ly_strerrcode   ly_strerr

libyang v3 compatibility macros with v2.

Definition at line 43 of file libyang.h.

#define ly_vecode (   ctx)    (ly_err_last(ctx) ? ly_err_last(ctx)->vecode : 0)

Definition at line 48 of file libyang.h.