libyang  2.2.8
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
lyds_tree.c File Reference

Internal type plugin for sorting data nodes. More...

#include "plugins_types.h"
#include <assert.h>
#include <stddef.h>
#include <string.h>
#include "compat.h"
#include "libyang.h"
#include "ly_common.h"
#include "tree_data_sorted.h"
Include dependency graph for lyds_tree.c:

Go to the source code of this file.

Functions

 assert (!value->_canonical)
 
 LYD_VALUE_GET (value, val)
 
 lyds_free_tree (val->rbt)
 
 LYPLG_TYPE_VAL_INLINE_DESTROY (val)
 
 memset (value->fixed_mem, 0, LYD_VALUE_FIXED_MEM_SIZE)
 

Variables

return LY_SUCCESS
 
struct lyplg_type_record plugins_lyds_tree []
 Plugin information for lyds_tree type implementation. More...
 
dup realtype = original->realtype
 

Detailed Description

Internal type plugin for sorting data nodes.

Author
Adam Piecek piece.nosp@m.k@ce.nosp@m.snet..nosp@m.cz Copyright (c) 2019-2023 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 lyds_tree.c.

Function Documentation

assert ( !value->  _canonical)
LYD_VALUE_GET ( value  ,
val   
)
lyds_free_tree ( val->  rbt)
LYPLG_TYPE_VAL_INLINE_DESTROY ( val  )
memset ( value->  fixed_mem,
,
LYD_VALUE_FIXED_MEM_SIZE   
)

Variable Documentation

return LY_SUCCESS

Definition at line 91 of file lyds_tree.c.

struct lyplg_type_record plugins_lyds_tree[]
Initial value:
= {
{
.module = "yang",
.revision = NULL,
.name = "lyds_tree",
.plugin.id = "libyang 2 - lyds_tree, version 1",
.plugin.store = lyplg_type_store_lyds,
.plugin.validate = NULL,
.plugin.compare = lyplg_type_compare_lyds,
.plugin.sort = lyplg_type_sort_lyds,
.plugin.print = lyplg_type_print_lyds,
.plugin.duplicate = lyplg_type_dupl_lyds,
.plugin.free = lyplg_type_free_lyds,
.plugin.lyb_data_len = 0
},
{0}
}

Plugin information for lyds_tree type implementation.

Note that external plugins are supposed to use:

LYPLG_TYPES = {

Definition at line 129 of file lyds_tree.c.

dup realtype = original->realtype

Definition at line 89 of file lyds_tree.c.