yumapro  23.10T-8
YumaPro SDK
Loading...
Searching...
No Matches
agt_yangapi_edit.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2012 - 2021, 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
119extern status_t
121 yangapi_cb_t *rcb,
122 rpc_msg_t *msg,
123 val_value_t *force_editval,
124 op_editop_t force_editop,
125 boolean skip_sil,
126 boolean skip_save,
127 const xmlChar *comment_str,
128 yang_patch_edit_t *edit);
129
130
131
132
153extern status_t
155 yangapi_cb_t *rcb,
156 rpc_msg_t *msg,
157 val_value_t *force_editval,
158 op_editop_t force_editop,
159 boolean skip_sil,
160 boolean skip_save,
161 boolean check_candidate,
162 boolean candidate_start_dirty,
163 const xmlChar *comment_str,
164 yang_patch_edit_t *edit);
165
166
170#ifdef __cplusplus
171} /* end extern 'C' */
172#endif
173
174#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_edit_t *edit)
Perform an internal <edit-config> and <commit> if needed.
Definition: agt_yangapi_edit.c:1470
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:1433
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_edit_t *edit)
Handle an edit request from DB-API (extra 2)
Definition: agt_yangapi_edit.c:1511
op_editop_t
NETCONF edit-config operation types.
Definition: op.h:122
status_t
global error return code
Definition: status_enum.h:210
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:181
Session Control Block.
Definition: ses.h:573
one value to match one type
Definition: val.h:911
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:226
YANG-API definitions (pre-RESTCONF)