libyang 3.4.2
libyang is YANG data modelling language parser and toolkit written (and providing API) in C.
Loading...
Searching...
No Matches
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.

Macros

#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.
 
#define ly_vecode(ctx)   (ly_err_last(ctx) ? ly_err_last(ctx)->vecode : 0)
 

Detailed Description

The main libyang public header.

Author
Radek Krejci rkrej.nosp@m.ci@c.nosp@m.esnet.nosp@m..cz
Michal Vasko mvask.nosp@m.o@ce.nosp@m.snet..nosp@m.cz

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

https://opensource.org/licenses/BSD-3-Clause

Definition in file libyang.h.

Macro Definition Documentation

◆ ly_errcode

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

Definition at line 45 of file libyang.h.

◆ ly_errmsg

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

Definition at line 46 of file libyang.h.

◆ ly_errpath

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

◆ ly_last_errmsg

#define ly_last_errmsg   ly_last_logmsg

Definition at line 44 of file libyang.h.

◆ ly_strerrcode

#define ly_strerrcode   ly_strerr

libyang v3 compatibility macros with v2.

Definition at line 43 of file libyang.h.

◆ ly_vecode

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

Definition at line 48 of file libyang.h.