yumapro  21.10T-9
YumaPro SDK
op.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008 - 2012, Andy Bierman, All Rights Reserved.
3  * Copyright (c) 2012 - 2021, YumaWorks, Inc., All Rights Reserved.
4  *
5  * Unless required by applicable law or agreed to in writing,
6  * software distributed under the License is distributed on an
7  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8  * KIND, either express or implied. See the License for the
9  * specific language governing permissions and limitations
10  * under the License.
11  */
12 #ifndef _H_op
13 #define _H_op
14 /* FILE: op.h
15 *********************************************************************
16 * *
17 * P U R P O S E *
18 * *
19 *********************************************************************/
20 
26 /*********************************************************************
27 * *
28 * C H A N G E H I S T O R Y *
29 * *
30 *********************************************************************
31 
32 date init comment
33 ----------------------------------------------------------------------
34 06-apr-05 abb Begun.
35 */
36 
37 #include <xmlstring.h>
38 
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 
43 /********************************************************************
44 * *
45 * C O N S T A N T S *
46 * *
47 *********************************************************************/
48 
49 
50 
51 /********************************************************************
52 * *
53 * T Y P E S *
54 * *
55 *********************************************************************/
56 
68 typedef enum op_method_t_ {
83 } YPACK op_method_t;
84 
85 
87 typedef enum op_srctyp_t_ {
92 } YPACK op_srctyp_t;
93 
94 
96 typedef enum op_targtyp_t_ {
100 } YPACK op_targtyp_t;
101 
102 
104 typedef enum op_defop_t_ {
110 } YPACK op_defop_t;
111 
112 
114 typedef enum op_filtertyp_t_ {
118 } YPACK op_filtertyp_t;
119 
120 
122 typedef enum op_editop_t_ {
133 } YPACK op_editop_t;
134 
135 
137 typedef enum op_insertop_t_ {
143 } YPACK op_insertop_t;
144 
145 
147 typedef enum op_t_ {
156 } YPACK op_t;
157 
158 
160 typedef enum op_testop_t_ {
165 } YPACK op_testop_t;
166 
167 
173 typedef enum op_errop_t_ {
178 } YPACK op_errop_t;
179 
180 
182 typedef struct op_filter_t_ {
183  op_filtertyp_t op_filtyp;
184  struct val_value_t_ *op_filter;
185 } YPACK op_filter_t;
186 
187 
188 /********************************************************************
189 * *
190 * F U N C T I O N S *
191 * *
192 *********************************************************************/
193 
194 
201 extern const xmlChar *
202  op_method_name (op_method_t op_id);
203 
204 
211 extern const xmlChar *
212  op_editop_name (op_editop_t ed_id);
213 
214 
221 extern op_editop_t
222  op_editop_id (const xmlChar *opstr);
223 
224 
231 extern const xmlChar *
232  op_insertop_name (op_insertop_t ins_id);
233 
234 
241 extern op_insertop_t
242  op_insertop_id (const xmlChar *opstr);
243 
244 
251 extern op_filtertyp_t
252  op_filtertyp_id (const xmlChar *filstr);
253 
254 
261 extern const xmlChar *
262  op_defop_name (op_defop_t def_id);
263 
264 
271 extern op_editop_t
272  op_defop_id (const xmlChar *defstr);
273 
274 
281 extern const xmlChar *
282  op_testop_name (op_testop_t test_id);
283 
284 
291 extern op_testop_t
292  op_testop_enum (const xmlChar *teststr);
293 
294 
301 extern const xmlChar *
302  op_errop_name (op_errop_t err_id);
303 
304 
311 extern op_errop_t
312  op_errop_id (const xmlChar *errstr);
313 
314 
322 extern op_defop_t
323  op_defop_id2 (const xmlChar *defstr);
324 
325 
338 extern boolean
339  op_editop_is_delete (op_editop_t ed_id);
340 
341 
344 #ifdef __cplusplus
345 } /* end extern 'C' */
346 #endif
347 
348 #endif /* _H_op */
insert after foo
Definition: op.h:142
NETCONF protocol operation filter spec.
Definition: op.h:182
edit-config
Definition: op.h:71
copy-config
Definition: op.h:72
not set
Definition: op.h:123
op_srctyp_t
NETCONF protocol operation PDU source types.
Definition: op.h:87
defaul op is merge
Definition: op.h:107
edit op is delete
Definition: op.h:127
not set
Definition: op.h:88
defaul op is none
Definition: op.h:106
op_filtertyp_t
NETCONF protocol operation PDU filter types.
Definition: op.h:114
remove-all, yumapro only
Definition: op.h:132
get
Definition: op.h:76
not set
Definition: op.h:97
const xmlChar * op_editop_name(op_editop_t ed_id)
Get the keyword for the specified op_editop_t enumeration.
Definition: op.c:106
delete-config
Definition: op.h:73
remove, base:1.1 only
Definition: op.h:130
const xmlChar * op_testop_name(op_testop_t test_id)
Get the keyword for the specified op_testop_t enumeration.
Definition: op.c:367
set
Definition: op.h:163
not set
Definition: op.h:148
test-then-set (default)
Definition: op.h:162
insert last (default)
Definition: op.h:140
const xmlChar * op_insertop_name(op_insertop_t ins_id)
Get the keyword for the specified op_insertop_t enumeration.
Definition: op.c:204
not set
Definition: op.h:105
edit op is merge
Definition: op.h:124
op_defop_t op_defop_id2(const xmlChar *defstr)
Get the ID for the default-operation from its keyword Return the op_defop_t, not the op_editop_t conv...
Definition: op.c:484
unlock
Definition: op.h:75
op_errop_t
NETCONF edit-config error-option types.
Definition: op.h:173
kill-session
Definition: op.h:78
op_filtertyp_t op_filtyp
filter type
Definition: op.h:183
op_testop_t op_testop_enum(const xmlChar *teststr)
Get the enum for the specified op_testop_t string.
Definition: op.c:396
merge
Definition: op.h:149
op_editop_t op_defop_id(const xmlChar *defstr)
Get the ID for the default-operation from its keyword.
Definition: op.c:333
replace
Definition: op.h:150
op_t
NETCONF full operation list for access control.
Definition: op.h:147
op_defop_t
NETCONF protocol default edit-config operation types.
Definition: op.h:104
XPath filter.
Definition: op.h:117
commit, #candidate capability
Definition: op.h:79
cancel-commit, base:1.1 + conf-commit
Definition: op.h:82
op_errop_t op_errop_id(const xmlChar *errstr)
Get the ID for the error-option from its keyword.
Definition: op.c:449
edit op is create
Definition: op.h:126
op_editop_t
NETCONF edit-config operation types.
Definition: op.h:122
stop-on-error
Definition: op.h:175
rollback-on-error
Definition: op.h:177
boolean op_editop_is_delete(op_editop_t ed_id)
Check if the editop is some sort of delete.
Definition: op.c:522
const xmlChar * op_defop_name(op_defop_t def_id)
Get the keyword for the specified op_defop_t enumeration.
Definition: op.c:303
op_insertop_t op_insertop_id(const xmlChar *opstr)
Get the ID for the insert operation from its keyword.
Definition: op.c:234
op_targtyp_t
NETCONF protocol operation PDU target types.
Definition: op.h:96
not set
Definition: op.h:69
op_testop_t
NETCONF edit-config test-option types.
Definition: op.h:160
source is inline config
Definition: op.h:90
create
Definition: op.h:151
target is a URL
Definition: op.h:99
get-config
Definition: op.h:70
commit, internal enum
Definition: op.h:129
lock
Definition: op.h:74
subtree filter
Definition: op.h:116
delete-all, yumapro only
Definition: op.h:131
insert first
Definition: op.h:139
load, internal enum
Definition: op.h:128
target is a datastore
Definition: op.h:98
not set
Definition: op.h:161
not set
Definition: op.h:115
op_method_t
NETCONF protocol operation enumeration is actually an RPC method in the NECONF namespace This is not ...
Definition: op.h:68
close-session
Definition: op.h:77
op_editop_t op_editop_id(const xmlChar *opstr)
Get the ID for the editop from its keyword.
Definition: op.c:146
const xmlChar * op_method_name(op_method_t op_id)
Get the keyword for the specified STD RPC method.
Definition: op.c:58
not set
Definition: op.h:138
notify
Definition: op.h:154
test-only
Definition: op.h:164
defaul op not used
Definition: op.h:109
op_insertop_t
YANG insert operation types.
Definition: op.h:137
defaul op is replace
Definition: op.h:108
continue-on-error
Definition: op.h:176
load
Definition: op.h:153
source is a datastore
Definition: op.h:89
validate, #validate capability
Definition: op.h:81
read
Definition: op.h:155
struct val_value_t_ * op_filter
back-ptr to the filter value
Definition: op.h:184
edit op is replace
Definition: op.h:125
discard-changes, #candidate capability
Definition: op.h:80
op_filtertyp_t op_filtertyp_id(const xmlChar *filstr)
Get the ID for the filter type from its keyword.
Definition: op.c:271
source is URL
Definition: op.h:91
const xmlChar * op_errop_name(op_errop_t err_id)
Get the keyword for the specified op_errop_t enumeration.
Definition: op.c:421
insert before foo
Definition: op.h:141
delete
Definition: op.h:152
not set
Definition: op.h:174