libyang  4.0.2
libyang is YANG data modelling language parser and toolkit written (and providing API) in C.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
leafref.c File Reference

Built-in leafref type plugin. More...

#include "plugins_types.h"
#include <assert.h>
#include <stdint.h>
#include <stdlib.h>
#include "libyang.h"
#include "compat.h"
#include "ly_common.h"
#include "plugins_internal.h"
#include "tree_data_internal.h"
Include dependency graph for leafref.c:

Go to the source code of this file.

Macros

#define _GNU_SOURCE   /* strdup */
 

Variables

struct lyplg_type_record plugins_leafref []
 Plugin information for leafref type implementation. More...
 

Detailed Description

Built-in leafref type plugin.

Author
Radek Krejci rkrej.nosp@m.ci@c.nosp@m.esnet.nosp@m..cz
Michal Vasko mvask.nosp@m.o@ce.nosp@m.snet..nosp@m.cz Copyright (c) 2019 - 2025 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 leafref.c.

Macro Definition Documentation

#define _GNU_SOURCE   /* strdup */

Definition at line 15 of file leafref.c.

Variable Documentation

struct lyplg_type_record plugins_leafref[]
Initial value:
= {
{
.module = "",
.revision = NULL,
.name = LY_TYPE_LEAFREF_STR,
.plugin.id = "ly2 leafref",
.plugin.lyb_size = lyplg_type_lyb_size_leafref,
.plugin.store = lyplg_type_store_leafref,
.plugin.validate_value = NULL,
.plugin.validate_tree = lyplg_type_validate_tree_leafref,
.plugin.compare = lyplg_type_compare_leafref,
.plugin.sort = lyplg_type_sort_leafref,
.plugin.print = lyplg_type_print_leafref,
.plugin.duplicate = lyplg_type_dup_leafref,
.plugin.free = lyplg_type_free_leafref,
},
{0}
}

Plugin information for leafref type implementation.

Note that external plugins are supposed to use:

LYPLG_TYPES = {

Definition at line 153 of file leafref.c.