libyang
1.0.184
YANG data modeling language library
Loading...
Searching...
No Matches
user_types.h
Go to the documentation of this file.
1
14
15
#ifndef LY_USER_TYPES_H_
16
#define LY_USER_TYPES_H_
17
18
#include "
libyang.h
"
19
20
#ifdef __cplusplus
21
extern
"C"
{
22
#endif
23
29
33
#define LYTYPE_API_VERSION 1
34
39
#ifdef STATIC
40
#define LYTYPE_VERSION_CHECK
41
#else
42
#define LYTYPE_VERSION_CHECK int lytype_api_version = LYTYPE_API_VERSION;
43
#endif
44
45
59
typedef
int (*
lytype_store_clb
)(
struct
ly_ctx
*ctx,
const
char
*type_name,
const
char
**value_str,
lyd_val
*value,
60
char
**err_msg);
61
62
struct
lytype_plugin_list
{
63
const
char
*
module
;
64
const
char
*
revision
;
69
const
char
*
name
;
70
lytype_store_clb
store_clb
;
71
void (*
free_clb
)(
void
*ptr);
72
};
73
77
78
#ifdef __cplusplus
79
}
80
#endif
81
82
#endif
/* LY_USER_TYPES_H_ */
ly_ctx
libyang context handler.
lyd_val
union lyd_value_u lyd_val
node's value representation
lytype_plugin_list::revision
const char * revision
Definition
user_types.h:64
lytype_plugin_list::module
const char * module
Definition
user_types.h:63
lytype_plugin_list::name
const char * name
Definition
user_types.h:69
lytype_plugin_list::store_clb
lytype_store_clb store_clb
Definition
user_types.h:70
lytype_plugin_list::free_clb
void(* free_clb)(void *ptr)
Definition
user_types.h:71
lytype_store_clb
int(* lytype_store_clb)(struct ly_ctx *ctx, const char *type_name, const char **value_str, lyd_val *value, char **err_msg)
Callback for storing user type values.
Definition
user_types.h:59
lytype_plugin_list
Definition
user_types.h:62
libyang.h
The main libyang public header.
src
user_types.h
Generated on
for libyang by
1.15.0