yumapro  25.10-1
YumaPro SDK
Loading...
Searching...
No Matches
agt_yangapi_edit.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2012 - 2025, YumaWorks, Inc., All Rights Reserved.
3 *
4 * Unless required by applicable law or agreed to in writing,
5 * software distributed under the License is distributed on an
6 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
7 * KIND, either express or implied. See the License for the
8 * specific language governing permissions and limitations
9 * under the License.
10 */
11#ifndef _H_agt_yangapi_edit
12#define _H_agt_yangapi_edit
13/* FILE: agt_yangapi_edit.h
14*********************************************************************
15* *
16* P U R P O S E *
17* *
18*********************************************************************/
19
26/*********************************************************************
27* *
28* C H A N G E H I S T O R Y *
29* *
30*********************************************************************
31
32date init comment
33----------------------------------------------------------------------
3417-mar-13 abb Begun.; split from agt_yangapi.c
35*/
36
37#ifndef _H_ses
38#include "ses.h"
39#endif
40
41#ifndef _H_rpc
42#include "rpc.h"
43#endif
44
45#ifndef _H_status
46#include "status.h"
47#endif
48
49#ifndef _H_yangapi
50#include "yangapi.h"
51#endif
52
53#ifdef __cplusplus
54extern "C" {
55#endif
56
57
58/********************************************************************
59* *
60* C O N S T A N T S *
61* *
62*********************************************************************/
63
64
65/********************************************************************
66* *
67* T Y P E S *
68* *
69*********************************************************************/
70
71
72/********************************************************************
73* *
74* F U N C T I O N S *
75* *
76*********************************************************************/
77
78/* Group defined in agt_yangapi.h */
79
95extern status_t
97 yangapi_cb_t *rcb,
98 rpc_msg_t *msg);
99
100
101
120extern status_t
122 yangapi_cb_t *rcb,
123 rpc_msg_t *msg,
124 val_value_t *force_editval,
125 op_editop_t force_editop,
126 boolean skip_sil,
127 boolean skip_save,
128 const xmlChar *comment_str,
129 yang_patch_cb_t *pcb,
130 yang_patch_edit_t *edit);
131
132
133
134
156extern status_t
158 yangapi_cb_t *rcb,
159 rpc_msg_t *msg,
160 val_value_t *force_editval,
161 op_editop_t force_editop,
162 boolean skip_sil,
163 boolean skip_save,
164 boolean check_candidate,
165 boolean candidate_start_dirty,
166 const xmlChar *comment_str,
167 yang_patch_cb_t *pcb,
168 yang_patch_edit_t *edit);
169
170
174#ifdef __cplusplus
175} /* end extern 'C' */
176#endif
177
178#endif /* _H_agt_yangapi */
status_t agt_yangapi_edit_request_ex(ses_cb_t *scb, yangapi_cb_t *rcb, rpc_msg_t *msg, val_value_t *force_editval, op_editop_t force_editop, boolean skip_sil, boolean skip_save, const xmlChar *comment_str, yang_patch_cb_t *pcb, yang_patch_edit_t *edit)
Perform an internal <edit-config> and <commit> if needed.
Definition: agt_yangapi_edit.c:1603
status_t agt_yangapi_edit_request_ex2(ses_cb_t *scb, yangapi_cb_t *rcb, rpc_msg_t *msg, val_value_t *force_editval, op_editop_t force_editop, boolean skip_sil, boolean skip_save, boolean check_candidate, boolean candidate_start_dirty, const xmlChar *comment_str, yang_patch_cb_t *pcb, yang_patch_edit_t *edit)
Handle an edit request from DB-API (extra 2)
Definition: agt_yangapi_edit.c:1651
status_t agt_yangapi_edit_request(ses_cb_t *scb, yangapi_cb_t *rcb, rpc_msg_t *msg)
Perform an internal <edit-config> and <commit> if needed.
Definition: agt_yangapi_edit.c:1561
op_editop_t
NETCONF edit-config operation types.
Definition: op.h:122
status_t
global error return code
Definition: status_enum.h:219
NETCONF protocol remote procedure call common definitions.
NETCONF Session Common definitions module.
Global error messages for status code enumerations.
NETCONF Server and Client RPC Request/Reply Message Header.
Definition: rpc.h:185
Session Control Block.
Definition: ses.h:759
one value to match one type
Definition: val.h:939
One YANG Patch Request.
Definition: yang_patch.h:155
Represents one YANG Patch edit entry.
Definition: yang_patch.h:118
Restapi Control Block Used by RESTCONF to hold parse and request processing state.
Definition: yangapi.h:351
YANG-API definitions (pre-RESTCONF)