Skip to content

Commit d7b5fb4

Browse files
committed
cffi: replace of plugin with plugin_ref
This patch replaces direct reference of plugin with plugin_ref to be compliant with libyang v4 Signed-off-by: Stefan Gula <steweg@gmail.com>
1 parent b454186 commit d7b5fb4

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

cffi/cdefs.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ struct lysp_node_augment {
783783
struct lysc_type {
784784
const char *name;
785785
struct lysc_ext_instance *exts;
786-
struct lyplg_type *plugin;
786+
uintptr_t plugin_ref;
787787
LY_DATA_TYPE basetype;
788788
uint32_t refcount;
789789
};
@@ -859,7 +859,7 @@ struct lysc_ext {
859859
const char *name;
860860
const char *argname;
861861
struct lysc_ext_instance *exts;
862-
struct lyplg_ext *plugin;
862+
uintptr_t plugin_ref;
863863
struct lys_module *module;
864864
uint16_t flags;
865865
};
@@ -1016,7 +1016,7 @@ struct lysc_ident {
10161016
struct lysc_type_num {
10171017
const char *name;
10181018
struct lysc_ext_instance *exts;
1019-
struct lyplg_type *plugin;
1019+
uintptr_t plugin_ref;
10201020
LY_DATA_TYPE basetype;
10211021
uint32_t refcount;
10221022
struct lysc_range *range;
@@ -1025,7 +1025,7 @@ struct lysc_type_num {
10251025
struct lysc_type_dec {
10261026
const char *name;
10271027
struct lysc_ext_instance *exts;
1028-
struct lyplg_type *plugin;
1028+
uintptr_t plugin_ref;
10291029
LY_DATA_TYPE basetype;
10301030
uint32_t refcount;
10311031
uint8_t fraction_digits;
@@ -1035,7 +1035,7 @@ struct lysc_type_dec {
10351035
struct lysc_type_str {
10361036
const char *name;
10371037
struct lysc_ext_instance *exts;
1038-
struct lyplg_type *plugin;
1038+
uintptr_t plugin_ref;
10391039
LY_DATA_TYPE basetype;
10401040
uint32_t refcount;
10411041
struct lysc_range *length;
@@ -1057,7 +1057,7 @@ struct lysc_type_bitenum_item {
10571057
struct lysc_type_enum {
10581058
const char *name;
10591059
struct lysc_ext_instance *exts;
1060-
struct lyplg_type *plugin;
1060+
uintptr_t plugin_ref;
10611061
LY_DATA_TYPE basetype;
10621062
uint32_t refcount;
10631063
struct lysc_type_bitenum_item *enums;
@@ -1066,7 +1066,7 @@ struct lysc_type_enum {
10661066
struct lysc_type_bits {
10671067
const char *name;
10681068
struct lysc_ext_instance *exts;
1069-
struct lyplg_type *plugin;
1069+
uintptr_t plugin_ref;
10701070
LY_DATA_TYPE basetype;
10711071
uint32_t refcount;
10721072
struct lysc_type_bitenum_item *bits;
@@ -1075,7 +1075,7 @@ struct lysc_type_bits {
10751075
struct lysc_type_leafref {
10761076
const char *name;
10771077
struct lysc_ext_instance *exts;
1078-
struct lyplg_type *plugin;
1078+
uintptr_t plugin_ref;
10791079
LY_DATA_TYPE basetype;
10801080
uint32_t refcount;
10811081
struct lyxp_expr *path;
@@ -1087,7 +1087,7 @@ struct lysc_type_leafref {
10871087
struct lysc_type_identityref {
10881088
const char *name;
10891089
struct lysc_ext_instance *exts;
1090-
struct lyplg_type *plugin;
1090+
uintptr_t plugin_ref;
10911091
LY_DATA_TYPE basetype;
10921092
uint32_t refcount;
10931093
struct lysc_ident **bases;
@@ -1096,7 +1096,7 @@ struct lysc_type_identityref {
10961096
struct lysc_type_instanceid {
10971097
const char *name;
10981098
struct lysc_ext_instance *exts;
1099-
struct lyplg_type *plugin;
1099+
uintptr_t plugin_ref;
11001100
LY_DATA_TYPE basetype;
11011101
uint32_t refcount;
11021102
uint8_t require_instance;
@@ -1105,7 +1105,7 @@ struct lysc_type_instanceid {
11051105
struct lysc_type_union {
11061106
const char *name;
11071107
struct lysc_ext_instance *exts;
1108-
struct lyplg_type *plugin;
1108+
uintptr_t plugin_ref;
11091109
LY_DATA_TYPE basetype;
11101110
uint32_t refcount;
11111111
struct lysc_type **types;
@@ -1114,7 +1114,7 @@ struct lysc_type_union {
11141114
struct lysc_type_bin {
11151115
const char *name;
11161116
struct lysc_ext_instance *exts;
1117-
struct lyplg_type *plugin;
1117+
uintptr_t plugin_ref;
11181118
LY_DATA_TYPE basetype;
11191119
uint32_t refcount;
11201120
struct lysc_range *length;

0 commit comments

Comments
 (0)