yumapro  24.10-3
YumaPro SDK
Loading...
Searching...
No Matches
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#ifndef _H_agt_yangpatch
12#define _H_agt_yangpatch
13/* FILE: agt_yangpatch.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---------------------------------------------------------------------
3404apr16 am begun
35
36
37*/
38
39#ifndef _H_status_enum
40#include "status_enum.h"
41#endif
42
43#ifndef _H_status
44#include "status.h"
45#endif
46
47#ifndef _H_ses
48#include "ses.h"
49#endif
50
51#ifndef _H_rpc
52#include "rpc.h"
53#endif
54
55#ifndef _H_yang_patch
56#include "yang_patch.h"
57#endif
58
59#ifndef _H_yangapi
60#include "yangapi.h"
61#endif
62
63#ifdef __cplusplus
64extern "C" {
65#endif
66
67
68/********************************************************************
69* *
70* C O N S T A N T S *
71* *
72*********************************************************************/
73
74/********************************************************************
75* *
76* T Y P E S *
77* *
78*********************************************************************/
79
80/********************************************************************
81* *
82* F U N C T I O N S *
83* *
84*********************************************************************/
85
141extern status_t
143 yangapi_cb_t *rcb,
144 rpc_msg_t *msg);
145
146
147#if defined(WITH_GNMI) && defined(WITH_RESTCONF) && defined(WITH_YCONTROL)
172extern status_t
174 yangapi_cb_t *rcb,
175 yang_patch_cb_t *pcb,
176 rpc_msg_t *msg);
177
178#endif // WITH_GNMI
179
180
184#ifdef __cplusplus
185} /* end extern 'C' */
186#endif
187
188#endif /* _H_agt_yangpatch */
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:1304
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:1531
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.
global error status code enumerations
NETCONF Server and Client RPC Request/Reply Message Header.
Definition: rpc.h:185
Session Control Block.
Definition: ses.h:573
One YANG Patch Request.
Definition: yang_patch.h:155
Restapi Control Block Used by RESTCONF to hold parse and request processing state.
Definition: yangapi.h:351
YANG Patch Media Type.
YANG-API definitions (pre-RESTCONF)