yumapro  25.10-4
YumaPro SDK
Loading...
Searching...
No Matches
yumaworks-compare.h
Go to the documentation of this file.
1
2#ifndef _H_yumaworks_compare
3#define _H_yumaworks_compare
4/*
5 * Copyright (c) 2008 - 2012, Andy Bierman, All Rights Reserved.
6 * Copyright (c) 2012 - 2025, 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
48#include <xmlstring.h>
49
50#include "procdefs.h"
51#include "dlq.h"
52#include "ncxtypes.h"
53#include "op.h"
54#include "status.h"
55#include "val.h"
56
57#ifdef __cplusplus
58extern "C" {
59#endif
60
82#define y_ypcmp_M_ypcmp (const xmlChar *)"yumaworks-compare"
83
84#define y_ypcmp_R_ypcmp (const xmlChar *)"2025-12-12"
85
86#define y_ypcmp_N_comment (const xmlChar *)"comment"
87#define y_ypcmp_N_compare_config (const xmlChar *)"compare-config"
88#define y_ypcmp_N_compare_format (const xmlChar *)"compare-format"
89#define y_ypcmp_N_compare_response (const xmlChar *)"compare-response"
90#define y_ypcmp_N_compare_source (const xmlChar *)"compare-source"
91#define y_ypcmp_N_compare_target (const xmlChar *)"compare-target"
92#define y_ypcmp_N_config (const xmlChar *)"config"
93#define y_ypcmp_N_differences (const xmlChar *)"differences"
94#define y_ypcmp_N_edit (const xmlChar *)"edit"
95#define y_ypcmp_N_edit_config (const xmlChar *)"edit-config"
96#define y_ypcmp_N_edit_id (const xmlChar *)"edit-id"
97#define y_ypcmp_N_filter_spec (const xmlChar *)"filter-spec"
98#define y_ypcmp_N_no_matches (const xmlChar *)"no-matches"
99#define y_ypcmp_N_operation (const xmlChar *)"operation"
100#define y_ypcmp_N_patch_id (const xmlChar *)"patch-id"
101#define y_ypcmp_N_point (const xmlChar *)"point"
102#define y_ypcmp_N_source (const xmlChar *)"source"
103#define y_ypcmp_N_source_backup (const xmlChar *)"source-backup"
104#define y_ypcmp_N_source_url (const xmlChar *)"source-url"
105#define y_ypcmp_N_subtree_filter (const xmlChar *)"subtree-filter"
106#define y_ypcmp_N_target (const xmlChar *)"target"
107#define y_ypcmp_N_target_backup (const xmlChar *)"target-backup"
108#define y_ypcmp_N_target_url (const xmlChar *)"target-url"
109#define y_ypcmp_N_value (const xmlChar *)"value"
110#define y_ypcmp_N_where (const xmlChar *)"where"
111#define y_ypcmp_N_xpath_filter (const xmlChar *)"xpath-filter"
112#define y_ypcmp_N_yang_patch (const xmlChar *)"yang-patch"
113
114
115/* case /compare-config/input/compare-source/source */
116typedef struct y_ypcmp_T_source_ {
117 val_idref_t *v_source;
119
120/* case /compare-config/input/compare-source/source-backup */
121typedef struct y_ypcmp_T_source_backup_ {
122 xmlChar *v_source_backup;
124
125/* case /compare-config/input/compare-source/source-url */
126typedef struct y_ypcmp_T_source_url_ {
127 xmlChar *v_source_url;
129
130/* choice /compare-config/input/compare-source */
131typedef union y_ypcmp_T_compare_source_ {
132 y_ypcmp_T_source v_source;
133 y_ypcmp_T_source_backup v_source_backup;
134 y_ypcmp_T_source_url v_source_url;
136
137/* case /compare-config/input/compare-target/target */
138typedef struct y_ypcmp_T_target_ {
139 val_idref_t *v_target;
141
142/* case /compare-config/input/compare-target/target-backup */
143typedef struct y_ypcmp_T_target_backup_ {
144 xmlChar *v_target_backup;
146
147/* case /compare-config/input/compare-target/target-url */
148typedef struct y_ypcmp_T_target_url_ {
149 xmlChar *v_target_url;
151
152/* choice /compare-config/input/compare-target */
153typedef union y_ypcmp_T_compare_target_ {
154 y_ypcmp_T_target v_target;
155 y_ypcmp_T_target_backup v_target_backup;
156 y_ypcmp_T_target_url v_target_url;
158
159/* anydata /compare-config/input/filter-spec/subtree-filter/subtree-filter */
160typedef struct y_ypcmp_T_subtree_filter_1_ {
161 dlq_hdr_t qhdr;
163
164/* case /compare-config/input/filter-spec/subtree-filter */
165typedef struct y_ypcmp_T_subtree_filter_ {
166 y_ypcmp_T_subtree_filter_1 v_subtree_filter;
168
169/* case /compare-config/input/filter-spec/xpath-filter */
170typedef struct y_ypcmp_T_xpath_filter_ {
171 xmlChar *v_xpath_filter;
173
174/* choice /compare-config/input/filter-spec */
175typedef union y_ypcmp_T_filter_spec_ {
176 y_ypcmp_T_subtree_filter v_subtree_filter;
177 y_ypcmp_T_xpath_filter v_xpath_filter;
179
180/* container /compare-config/input */
181typedef struct y_ypcmp_T_input_ {
182 y_ypcmp_T_compare_source v_compare_source;
183 y_ypcmp_T_compare_target v_compare_target;
184 y_ypcmp_T_filter_spec v_filter_spec;
185 xmlChar *v_compare_format;
187
188/* case /compare-config/output/compare-response/no-matches */
189typedef struct y_ypcmp_T_no_matches_ {
190 boolean v_no_matches;
192
193/* anydata /compare-config/output/compare-response/differences/differences/compare-format/yang-patch/yang-patch/edit/value */
194typedef struct y_ypcmp_T_value_ {
195 dlq_hdr_t qhdr;
197
198/* list /compare-config/output/compare-response/differences/differences/compare-format/yang-patch/yang-patch/edit */
199typedef struct y_ypcmp_T_edit_ {
200 dlq_hdr_t qhdr;
201 xmlChar *v_edit_id;
202 xmlChar *v_operation;
203 xmlChar *v_target;
204 xmlChar *v_point;
205 xmlChar *v_where;
206 y_ypcmp_T_value v_value;
208
209/* container /compare-config/output/compare-response/differences/differences/compare-format/yang-patch/yang-patch */
210typedef struct y_ypcmp_T_yang_patch_1_ {
211 xmlChar *v_patch_id;
212 xmlChar *v_comment;
213 dlq_hdr_t v_edit;
215
216/* case /compare-config/output/compare-response/differences/differences/compare-format/yang-patch */
217typedef struct y_ypcmp_T_yang_patch_ {
218 y_ypcmp_T_yang_patch_1 v_yang_patch;
220
221/* anydata /compare-config/output/compare-response/differences/differences/compare-format/edit-config/config */
222typedef struct y_ypcmp_T_config_ {
223 dlq_hdr_t qhdr;
225
226/* case /compare-config/output/compare-response/differences/differences/compare-format/edit-config */
227typedef struct y_ypcmp_T_edit_config_ {
228 y_ypcmp_T_config v_config;
230
231/* choice /compare-config/output/compare-response/differences/differences/compare-format */
232typedef union y_ypcmp_T_compare_format_1_ {
233 y_ypcmp_T_yang_patch v_yang_patch;
234 y_ypcmp_T_edit_config v_edit_config;
236
237/* container /compare-config/output/compare-response/differences/differences */
238typedef struct y_ypcmp_T_differences_1_ {
239 y_ypcmp_T_compare_format_1 v_compare_format;
241
242/* case /compare-config/output/compare-response/differences */
243typedef struct y_ypcmp_T_differences_ {
244 y_ypcmp_T_differences_1 v_differences;
246
247/* choice /compare-config/output/compare-response */
248typedef union y_ypcmp_T_compare_response_ {
249 y_ypcmp_T_no_matches v_no_matches;
250 y_ypcmp_T_differences v_differences;
252
253/* container /compare-config/output */
254typedef struct y_ypcmp_T_output_ {
255 y_ypcmp_T_compare_response v_compare_response;
257
258/* rpc /compare-config */
259typedef struct y_ypcmp_T_compare_config_ {
260 y_ypcmp_T_input v_input;
261 y_ypcmp_T_output v_output;
263
264
276 const xmlChar *modname,
277 const xmlChar *revision);
278
279
290
291
298extern void y_yumaworks_compare_cleanup (void);
299
300
303#ifdef __cplusplus
304} /* end extern 'C' */
305#endif
306
307#endif
dlq provides general double-linked list and queue support:
status_t
global error return code
Definition: status_enum.h:219
void y_yumaworks_compare_cleanup(void)
Cleanup the yumaworks-compare server instrumentation library.
Definition: yumaworks-compare.c:1358
status_t y_yumaworks_compare_init(const xmlChar *modname, const xmlChar *revision)
Phase 1: Initialize the yumaworks-compare server instrumentation library.
Definition: yumaworks-compare.c:1280
status_t y_yumaworks_compare_init2(void)
Phase 2: Initialize the yumaworks-compare server instrumentation library.
YANG module data structures Many internal representations of YANG module constructs.
NETCONF protocol operations.
Global error messages for status code enumerations.
one QName for the NCX_BT_IDREF value
Definition: val.h:897
Definition: yumaworks-compare.h:259
Definition: yumaworks-compare.h:222
Definition: yumaworks-compare.h:238
Definition: yumaworks-compare.h:243
Definition: yumaworks-compare.h:227
Definition: yumaworks-compare.h:199
Definition: yumaworks-compare.h:181
Definition: yumaworks-compare.h:189
Definition: yumaworks-compare.h:254
Definition: yumaworks-compare.h:121
Definition: yumaworks-compare.h:126
Definition: yumaworks-compare.h:116
Definition: yumaworks-compare.h:160
Definition: yumaworks-compare.h:165
Definition: yumaworks-compare.h:143
Definition: yumaworks-compare.h:148
Definition: yumaworks-compare.h:138
Definition: yumaworks-compare.h:194
Definition: yumaworks-compare.h:170
Definition: yumaworks-compare.h:210
Definition: yumaworks-compare.h:217
Definition: yumaworks-compare.h:232
Definition: yumaworks-compare.h:248
Definition: yumaworks-compare.h:131
Definition: yumaworks-compare.h:153
Definition: yumaworks-compare.h:175
Value Node Basic Support.