yumapro  24.10-2
YumaPro SDK
Loading...
Searching...
No Matches
yumaworks-yang-cbor.h
Go to the documentation of this file.
1#ifdef WITH_YANG_CBOR
2#ifndef _H_yumaworks_yang_cbor
3#define _H_yumaworks_yang_cbor
4/*
5 * Copyright (c) 2008 - 2012, Andy Bierman, All Rights Reserved.
6 * Copyright (c) 2012 - 2022, YumaWorks, Inc., All Rights Reserved.
7 *
8 * Unless required by applicable law or agreed to in writing,
9 * software distributed under the License is distributed on an
10 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
11 * KIND, either express or implied. See the License for the
12 * specific language governing permissions and limitations
13 * under the License.
14 *
15 */
16
47#include <xmlstring.h>
48
49#include "procdefs.h"
50#include "dlq.h"
51#include "ncxtypes.h"
52#include "op.h"
53#include "status.h"
54#include "val.h"
55
56#ifdef __cplusplus
57extern "C" {
58#endif
59
60
61#define y_ycbor_M_ycbor (const xmlChar *)"yumaworks-yang-cbor"
62
63#define y_ycbor_R_ycbor (const xmlChar *)"2022-05-21"
64
65#define y_ycbor_I_encode_yang_cbor (const xmlChar *)"encode-yang-cbor"
66
67#define y_ycbor_N_current_set_id (const xmlChar *)"current-set-id"
68#define y_ycbor_N_current_sid_count (const xmlChar *)"current-sid-count"
69#define y_ycbor_N_current_sid_max (const xmlChar *)"current-sid-max"
70#define y_ycbor_N_data (const xmlChar *)"data"
71#define y_ycbor_N_get_yang_sid_data (const xmlChar *)"get-yang-sid-data"
72#define y_ycbor_N_identifier (const xmlChar *)"identifier"
73#define y_ycbor_N_lower_bound (const xmlChar *)"lower-bound"
74#define y_ycbor_N_lsid_size (const xmlChar *)"lsid-size"
75#define y_ycbor_N_module_name (const xmlChar *)"module-name"
76#define y_ycbor_N_namespace (const xmlChar *)"namespace"
77#define y_ycbor_N_sid (const xmlChar *)"sid"
78#define y_ycbor_N_sid_item (const xmlChar *)"sid-item"
79#define y_ycbor_N_sid_set_id (const xmlChar *)"sid-set-id"
80#define y_ycbor_N_upper_bound (const xmlChar *)"upper-bound"
81#define y_ycbor_N_yang_sid_info (const xmlChar *)"yang-sid-info"
82#define y_ycbor_N_yang_sid_mode (const xmlChar *)"yang-sid-mode"
83
84
85/* container /yang-sid-info */
86typedef struct y_ycbor_T_yang_sid_info_ {
87 xmlChar *v_sid_set_id;
88 xmlChar *v_yang_sid_mode;
89 xmlChar *v_lsid_size;
90 uint64 v_current_sid_max;
91 uint64 v_current_sid_count;
93
94/* container /get-yang-sid-data/input */
95typedef struct y_ycbor_T_input_ {
96 uint64 v_lower_bound;
97 uint64 v_upper_bound;
99
100/* list /get-yang-sid-data/output/data/sid-item */
101typedef struct y_ycbor_T_sid_item_ {
102 dlq_hdr_t qhdr;
103 uint64 v_sid;
104 xmlChar *v_namespace;
105 xmlChar *v_module_name;
106 val_value_t *v_identifier;
108
109/* container /get-yang-sid-data/output/data */
110typedef struct y_ycbor_T_data_ {
111 dlq_hdr_t v_sid_item;
113
114/* container /get-yang-sid-data/output */
115typedef struct y_ycbor_T_output_ {
116 xmlChar *v_current_set_id;
117 y_ycbor_T_data v_data;
119
120/* rpc /get-yang-sid-data */
121typedef struct y_ycbor_T_get_yang_sid_data_ {
122 y_ycbor_T_input v_input;
123 y_ycbor_T_output v_output;
125
126
127
128
129
162 const xmlChar *modname,
163 const xmlChar *revision);
164
165
176
177
184extern void y_yumaworks_yang_cbor_cleanup (void);
185
186
189#ifdef __cplusplus
190} /* end extern 'C' */
191#endif
192
193#endif
194#endif // WITH_YANG_CBOR
dlq provides general double-linked list and queue support:
status_t
global error return code
Definition: status_enum.h:210
void y_yumaworks_yang_cbor_cleanup(void)
Cleanup the yumaworks-yang-cbor server instrumentation library.
Definition: yumaworks-yang-cbor.c:684
status_t y_yumaworks_yang_cbor_init(const xmlChar *modname, const xmlChar *revision)
Phase 1: Initialize the yumaworks-yang-cbor server instrumentation library.
Definition: yumaworks-yang-cbor.c:574
status_t y_yumaworks_yang_cbor_init2(void)
Phase 2: Initialize the yumaworks-yang-cbor server instrumentation library.
Definition: yumaworks-yang-cbor.c:662
YANG module data structures Many internal representations of YANG module constructs.
NETCONF protocol operations.
Global error messages for status code enumerations.
one value to match one type
Definition: val.h:912
Definition: yumaworks-yang-cbor.h:110
Definition: yumaworks-yang-cbor.h:121
Definition: yumaworks-yang-cbor.h:95
Definition: yumaworks-yang-cbor.h:115
Definition: yumaworks-yang-cbor.h:101
Definition: yumaworks-yang-cbor.h:86
Value Node Basic Support.