yumapro  20.10-14
YumaPro SDK
agt_ietf_notif.h
Go to the documentation of this file.
1 
2 #ifndef _H_agt_ietf_notif
3 #define _H_agt_ietf_notif
4 /*
5  * Copyright (c) 2008 - 2012, Andy Bierman, All Rights Reserved.
6  * Copyright (c) 2012 - 2021, YumaWorks, Inc., All Rights Reserved.
7  *
8  * Unless required by applicable law or agreed to in writing,
9  * software distributed under the License is distributed on an
10  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
11  * KIND, either express or implied. See the License for the
12  * specific language governing permissions and limitations
13  * under the License.
14  *
15 
16 *** Generated by yangdump-pro 12.09.29bd99a-M
17 
18  Combined SIL header
19  module ietf-netconf-notifications
20  revision 2012-02-06
21  namespace urn:ietf:params:xml:ns:yang:ietf-netconf-notifications
22  organization IETF NETCONF (Network Configuration Protocol) Working Group
23 
24  */
25 
32 #include <xmlstring.h>
33 
34 #include "cap.h"
35 #include "dlq.h"
36 #include "ncxtypes.h"
37 #include "op.h"
38 #include "status.h"
39 #include "val.h"
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
45 #define y_ietf_netconf_notifications_M_ietf_netconf_notifications \
46  (const xmlChar *)"ietf-netconf-notifications"
47 #define y_ietf_netconf_notifications_R_ietf_netconf_notifications \
48  (const xmlChar *)"2012-02-06"
49 
50 #define y_ietf_netconf_notifications_N_added_capability \
51  (const xmlChar *)"added-capability"
52 
53 #define y_ietf_netconf_notifications_N_by_user (const xmlChar *)"by-user"
54 #define y_ietf_netconf_notifications_N_changed_by (const xmlChar *)"changed-by"
55 
56 #define y_ietf_netconf_notifications_N_confirm_event \
57  (const xmlChar *)"confirm-event"
58 #define y_ietf_netconf_notifications_N_datastore (const xmlChar *)"datastore"
59 #define y_ietf_netconf_notifications_N_deleted_capability \
60  (const xmlChar *)"deleted-capability"
61 #define y_ietf_netconf_notifications_N_edit (const xmlChar *)"edit"
62 #define y_ietf_netconf_notifications_N_killed_by (const xmlChar *)"killed-by"
63 #define y_ietf_netconf_notifications_N_modified_capability \
64  (const xmlChar *)"modified-capability"
65 #define y_ietf_netconf_notifications_N_netconf_capability_change \
66  (const xmlChar *)"netconf-capability-change"
67 #define y_ietf_netconf_notifications_N_netconf_config_change \
68  (const xmlChar *)"netconf-config-change"
69 #define y_ietf_netconf_notifications_N_netconf_confirmed_commit \
70  (const xmlChar *)"netconf-confirmed-commit"
71 #define y_ietf_netconf_notifications_N_netconf_session_end \
72  (const xmlChar *)"netconf-session-end"
73 #define y_ietf_netconf_notifications_N_netconf_session_start \
74  (const xmlChar *)"netconf-session-start"
75 #define y_ietf_netconf_notifications_N_operation (const xmlChar *)"operation"
76 #define y_ietf_netconf_notifications_N_server (const xmlChar *)"server"
77 #define y_ietf_netconf_notifications_N_server_or_user \
78  (const xmlChar *)"server-or-user"
79 #define y_ietf_netconf_notifications_N_session_id (const xmlChar *)"session-id"
80 #define y_ietf_netconf_notifications_N_source_host \
81  (const xmlChar *)"source-host"
82 #define y_ietf_netconf_notifications_N_target (const xmlChar *)"target"
83 #define y_ietf_netconf_notifications_N_termination_reason \
84  (const xmlChar *)"termination-reason"
85 #define y_ietf_netconf_notifications_N_timeout (const xmlChar *)"timeout"
86 #define y_ietf_netconf_notifications_N_username (const xmlChar *)"username"
87 
88 
111  (const xmlChar *username,
112  uint32 session_id,
113  const xmlChar *source_host,
114  const xmlChar *datastore,
115  dlq_hdr_t *auditrecQ);
116 
117 
131  (const xmlChar *username,
132  uint32 session_id,
133  const xmlChar *source_host,
134  cap_change_t cap_change,
135  const xmlChar *capstr);
136 
137 
148  const xmlChar *username,
149  uint32 session_id,
150  const xmlChar *source_host);
151 
152 
165  const xmlChar *username,
166  uint32 session_id,
167  const xmlChar *source_host,
168  uint32 killed_by,
169  const xmlChar *termination_reason);
170 
171 
186  const xmlChar *username,
187  uint32 session_id,
188  const xmlChar *source_host,
189  const xmlChar *confirm_event,
190  ncx_confirm_event_t event,
191  uint32 timeout);
192 
193 
201 
202 
211 
212 
218 extern void y_ietf_netconf_notifications_cleanup (void);
219 
220 
224 #ifdef __cplusplus
225 } /* end extern 'C' */
226 #endif
227 
228 #endif
void y_ietf_netconf_notifications_cleanup(void)
cleanup the server instrumentation library
Definition: agt_ietf_notif.c:851
dlq provides general double-linked list and queue support:
status_t y_ietf_netconf_notifications_init(void)
initialize the ietf-netconf-notifications server instrumentation library
Definition: agt_ietf_notif.c:766
Value Node Basic Support.
YANG module data structures Many internal representations of YANG module constructs.
cap_change_t
Capability Change Type.
Definition: cap.h:219
void y_ietf_netconf_notifications_netconf_config_change_send(const xmlChar *username, uint32 session_id, const xmlChar *source_host, const xmlChar *datastore, dlq_hdr_t *auditrecQ)
Send a y_ietf_netconf_notifications_netconf_config_change notification Called by your code when notif...
Definition: agt_ietf_notif.c:369
void y_ietf_netconf_notifications_netconf_confirmed_commit_send(const xmlChar *username, uint32 session_id, const xmlChar *source_host, const xmlChar *confirm_event, ncx_confirm_event_t event, uint32 timeout)
Send a y_ietf_netconf_notifications_netconf_confirmed_commit notification.
Definition: agt_ietf_notif.c:693
void y_ietf_netconf_notifications_netconf_session_start_send(const xmlChar *username, uint32 session_id, const xmlChar *source_host)
Send a y_ietf_netconf_notifications_netconf_session_start notification.
Definition: agt_ietf_notif.c:580
status_t
global error return code
Definition: status_enum.h:186
ncx_confirm_event_t
type of confirmEvent in the sysConfirmedCommit notification Used in confirmed-commit standard as well...
Definition: ncxtypes.h:1223
Global error messages for status code enumerations.
void y_ietf_netconf_notifications_netconf_capability_change_send(const xmlChar *username, uint32 session_id, const xmlChar *source_host, cap_change_t cap_change, const xmlChar *capstr)
Send a y_ietf_netconf_notifications_netconf_capability_change notification.
Definition: agt_ietf_notif.c:498
NETCONF protocol operations.
void y_ietf_netconf_notifications_netconf_session_end_send(const xmlChar *username, uint32 session_id, const xmlChar *source_host, uint32 killed_by, const xmlChar *termination_reason)
Send a y_ietf_netconf_notifications_netconf_session_end notification.
Definition: agt_ietf_notif.c:617
NETCONF protocol capabilities.
status_t y_ietf_netconf_notifications_init2(void)
SIL init phase 2: non-config data structures.
Definition: agt_ietf_notif.c:837