yumapro  21.10T-9
YumaPro SDK
agt_yangpatch.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 #if defined(WITH_RESTCONF) || defined(WITH_YCONTROL) || defined(WITH_YANGAPI)
12 #ifndef _H_agt_yangpatch
13 #define _H_agt_yangpatch
14 /* FILE: agt_yangpatch.h
15 *********************************************************************
16 * *
17 * P U R P O S E *
18 * *
19 *********************************************************************/
20 
27 /*********************************************************************
28 * *
29 * C H A N G E H I S T O R Y *
30 * *
31 *********************************************************************
32 
33 date init comment
34 ---------------------------------------------------------------------
35 04apr16 am begun
36 
37 
38 */
39 
40 #ifndef _H_status_enum
41 #include "status_enum.h"
42 #endif
43 
44 #ifndef _H_status
45 #include "status.h"
46 #endif
47 
48 #ifndef _H_ses
49 #include "ses.h"
50 #endif
51 
52 #ifndef _H_rpc
53 #include "rpc.h"
54 #endif
55 
56 #ifndef _H_yang_patch
57 #include "yang_patch.h"
58 #endif
59 
60 #ifndef _H_yangapi
61 #include "yangapi.h"
62 #endif
63 
64 #ifdef __cplusplus
65 extern "C" {
66 #endif
67 
68 
69 /********************************************************************
70 * *
71 * C O N S T A N T S *
72 * *
73 *********************************************************************/
74 
75 /********************************************************************
76 * *
77 * T Y P E S *
78 * *
79 *********************************************************************/
80 
81 /********************************************************************
82 * *
83 * F U N C T I O N S *
84 * *
85 *********************************************************************/
86 
142 extern status_t
144  yangapi_cb_t *rcb,
145  rpc_msg_t *msg);
146 
147 
148 #if defined(WITH_GNMI) && defined(WITH_RESTCONF) && defined(WITH_YCONTROL)
149 
173 extern status_t
175  yangapi_cb_t *rcb,
176  yang_patch_cb_t *pcb,
177  rpc_msg_t *msg);
178 
179 #endif // WITH_GNMI
180 
181 
185 #ifdef __cplusplus
186 } /* end extern 'C' */
187 #endif
188 
189 #endif /* _H_agt_yangpatch */
190 #endif // defined(WITH_RESTCONF) || defined(WITH_YCONTROL) || defined(WITH_YANGAPI)
status_t agt_yangpatch_edit(ses_cb_t *scb, yangapi_cb_t *rcb, rpc_msg_t *msg)
Handle a YANG Patch edit.
Definition: agt_yangpatch.c:1312
Restapi Control Block Used by RESTCONF to hold parse and request processing state.
Definition: yangapi.h:224
NETCONF Server and Client RPC Request/Reply Message Header.
Definition: rpc.h:181
NETCONF Session Common definitions module.
status_t agt_yangpatch_gnmi_edit(ses_cb_t *scb, yangapi_cb_t *rcb, yang_patch_cb_t *pcb, rpc_msg_t *msg)
Handle a YP-GNMI edit.
Definition: agt_yangpatch.c:1539
YANG-API definitions (pre-RESTCONF)
One YANG Patch Request.
Definition: yang_patch.h:155
YANG Patch Media Type.
Session Control Block.
Definition: ses.h:542
status_t
global error return code
Definition: status_enum.h:186
NETCONF protocol remote procedure call common definitions.
Global error messages for status code enumerations.
global error status code enumerations