4040 */
4141
4242static LY_ERR lyplg_type_validate_int (const struct ly_ctx * ctx , const struct lysc_type * type ,
43- const struct lyd_node * ctx_node , const struct lyd_node * tree , struct lyd_value * storage , struct ly_err_item * * err );
43+ const struct lyd_node * ctx_node , const struct lyd_node * tree , const struct lysc_ext_instance * top_ext ,
44+ struct lyd_value * storage , struct ly_err_item * * err );
4445static LY_ERR lyplg_type_validate_uint (const struct ly_ctx * ctx , const struct lysc_type * type ,
45- const struct lyd_node * ctx_node , const struct lyd_node * tree , struct lyd_value * storage , struct ly_err_item * * err );
46+ const struct lyd_node * ctx_node , const struct lyd_node * tree , const struct lysc_ext_instance * top_ext ,
47+ struct lyd_value * storage , struct ly_err_item * * err );
4648
4749static LY_ERR
4850lyplg_type_store_int (const struct ly_ctx * ctx , const struct lysc_type * type , const void * value , uint32_t value_size_bits ,
@@ -51,7 +53,6 @@ lyplg_type_store_int(const struct ly_ctx *ctx, const struct lysc_type *type, con
5153 struct lyd_value * storage , struct lys_glob_unres * UNUSED (unres ), struct ly_err_item * * err )
5254{
5355 LY_ERR ret = LY_SUCCESS ;
54- struct lysc_type_num * type_num = (struct lysc_type_num * )type ;
5556 uint32_t value_size ;
5657 int64_t num = 0 ;
5758 int base = 1 ;
@@ -155,7 +156,7 @@ lyplg_type_store_int(const struct ly_ctx *ctx, const struct lysc_type *type, con
155156
156157 if (!(options & LYPLG_TYPE_STORE_ONLY )) {
157158 /* validate value */
158- ret = lyplg_type_validate_int (ctx , type , NULL , NULL , storage , err );
159+ ret = lyplg_type_validate_int (ctx , type , NULL , NULL , NULL , storage , err );
159160 LY_CHECK_GOTO (ret , cleanup );
160161 }
161162
@@ -175,7 +176,8 @@ lyplg_type_store_int(const struct ly_ctx *ctx, const struct lysc_type *type, con
175176 */
176177static LY_ERR
177178lyplg_type_validate_int (const struct ly_ctx * UNUSED (ctx ), const struct lysc_type * type , const struct lyd_node * UNUSED (ctx_node ),
178- const struct lyd_node * UNUSED (tree ), struct lyd_value * storage , struct ly_err_item * * err )
179+ const struct lyd_node * UNUSED (tree ), const struct lysc_ext_instance * UNUSED (top_ext ), struct lyd_value * storage ,
180+ struct ly_err_item * * err )
179181{
180182 LY_ERR ret ;
181183 struct lysc_type_num * type_num = (struct lysc_type_num * )type ;
@@ -357,7 +359,6 @@ lyplg_type_store_uint(const struct ly_ctx *ctx, const struct lysc_type *type, co
357359 struct lyd_value * storage , struct lys_glob_unres * UNUSED (unres ), struct ly_err_item * * err )
358360{
359361 LY_ERR ret = LY_SUCCESS ;
360- struct lysc_type_num * type_num = (struct lysc_type_num * )type ;
361362 uint32_t value_size ;
362363 uint64_t num = 0 ;
363364 int base = 0 ;
@@ -441,7 +442,7 @@ lyplg_type_store_uint(const struct ly_ctx *ctx, const struct lysc_type *type, co
441442
442443 if (!(options & LYPLG_TYPE_STORE_ONLY )) {
443444 /* validate value */
444- ret = lyplg_type_validate_uint (ctx , type , NULL , NULL , storage , err );
445+ ret = lyplg_type_validate_uint (ctx , type , NULL , NULL , NULL , storage , err );
445446 LY_CHECK_GOTO (ret , cleanup );
446447 }
447448
@@ -461,7 +462,8 @@ lyplg_type_store_uint(const struct ly_ctx *ctx, const struct lysc_type *type, co
461462 */
462463static LY_ERR
463464lyplg_type_validate_uint (const struct ly_ctx * UNUSED (ctx ), const struct lysc_type * type , const struct lyd_node * UNUSED (ctx_node ),
464- const struct lyd_node * UNUSED (tree ), struct lyd_value * storage , struct ly_err_item * * err )
465+ const struct lyd_node * UNUSED (tree ), const struct lysc_ext_instance * UNUSED (top_ext ), struct lyd_value * storage ,
466+ struct ly_err_item * * err )
465467{
466468 LY_ERR ret ;
467469 struct lysc_type_num * type_num = (struct lysc_type_num * )type ;
0 commit comments