libyang
1.0.253
YANG data modeling language library
Main Page
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
user_types.h
Go to the documentation of this file.
1
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
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
78
#ifdef __cplusplus
79
}
80
#endif
81
82
#endif
/* LY_USER_TYPES_H_ */
lytype_plugin_list::module
const char * module
Definition:
user_types.h:63
lytype_plugin_list::store_clb
lytype_store_clb store_clb
Definition:
user_types.h:70
lytype_plugin_list::revision
const char * revision
Definition:
user_types.h:64
lyd_value_u
node's value representation
Definition:
tree_data.h:94
lytype_plugin_list::name
const char * name
Definition:
user_types.h:69
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
src
user_types.h
Generated on Thu Nov 21 2024 09:01:17 for libyang by
1.8.5