![]() |
libyang 6.4.13
libyang is YANG data modelling language parser and toolkit written (and providing API) in C.
|
Built-in union type plugin. More...
#include "plugins_types.h"#include <assert.h>#include <inttypes.h>#include <stdlib.h>#include <string.h>#include "compat.h"#include "dict.h"#include "ly_array.h"#include "ly_common.h"#include "lyb.h"#include "plugins_internal.h"Go to the source code of this file.
Macros | |
| #define | _GNU_SOURCE /* strdup */ |
| #define | LYPLG_UNION_TYPE_IDX_SIZE 1 |
| Size in bytes of the used type index in the LYB Binary Format. | |
Functions | |
| LIBYANG_API_DEF LY_ERR | lyplg_type_store_union_idx (const struct ly_ctx *ctx, const struct lysc_type *type, uint32_t type_idx, const void *value, uint64_t value_size_bits, uint32_t options, LY_VALUE_FORMAT format, void *prefix_data, uint32_t hints, const struct lysc_node *ctx_node, struct lyd_value *storage, struct ly_err_item **err) |
| Store a union value with a specific member type index, keeping that member resolved (pinned), so it is not re-resolved to the first matching member during later validation. | |
Variables | |
| const struct lyplg_type_record | plugins_union [] |
| Plugin information for union type implementation. | |
Built-in union type plugin.
Copyright (c) 2019 - 2026 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 union.c.
| #define LYPLG_UNION_TYPE_IDX_SIZE 1 |
| const struct lyplg_type_record plugins_union[] |
Plugin information for union type implementation.
Note that external plugins are supposed to use:
LYPLG_TYPES = {