yumapro  24.10-3
YumaPro SDK
Loading...
Searching...
No Matches
agt_sys.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2008 - 2012, Andy Bierman, All Rights Reserved.
3 * Copyright (c) 2012 - 2021, YumaWorks, Inc., All Rights Reserved.
4 *
5 * Unless required by applicable law or agreed to in writing,
6 * software distributed under the License is distributed on an
7 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8 * KIND, either express or implied. See the License for the
9 * specific language governing permissions and limitations
10 * under the License.
11 */
12#ifndef _H_agt_sys
13#define _H_agt_sys
14/* FILE: agt_sys.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
33date init comment
34----------------------------------------------------------------------
3504-jun-09 abb Begun.
36*/
37
38#include <xmlstring.h>
39
40#ifndef _H_dlq
41#include "dlq.h"
42#endif
43
44#ifndef _H_ncxtypes
45#include "ncxtypes.h"
46#endif
47
48#ifndef _H_obj
49#include "obj.h"
50#endif
51
52#ifndef _H_ses
53#include "ses.h"
54#endif
55
56#ifndef _H_status
57#include "status.h"
58#endif
59
60#ifndef _H_tstamp
61#include "tstamp.h"
62#endif
63
64#ifdef __cplusplus
65extern "C" {
66#endif
67
89/********************************************************************
90* *
91* C O N S T A N T S *
92* *
93*********************************************************************/
94
96#define AGT_SYS_MODULE (const xmlChar *)"yuma-system"
97
99#define AGT_YWSYS_MODULE (const xmlChar *)"yumaworks-system"
100
101
102/********************************************************************
103* *
104* T Y P E S *
105* *
106*********************************************************************/
107
108
109/********************************************************************
110* *
111* F U N C T I O N S *
112* *
113*********************************************************************/
114
115
122extern status_t
123 agt_sys_init (void);
124
125
133extern status_t
134 agt_sys_init2 (void);
135
136
142extern void
143 agt_sys_cleanup (void);
144
145
155extern void
157
158
171extern void
173 ses_term_reason_t termreason,
174 ses_id_t killedby);
175
176
188extern void
190 dlq_hdr_t *auditrecQ);
191
192
210extern void
212 boolean is_add,
213 const xmlChar *capstr);
214
215
228extern void
231 uint32 timeout);
232
233
239extern uint32
241
242
250extern val_value_t *
252
253
278extern status_t
279 agt_sys_fill_ha_status (val_value_t *ha_status_val);
280
281
285#ifdef __cplusplus
286} /* end extern 'C' */
287#endif
288
289
290#endif /* _H_agt_sys */
dlq provides general double-linked list and queue support:
void agt_sys_send_sysSessionEnd(const ses_cb_t *scb, ses_term_reason_t termreason, ses_id_t killedby)
Queue the Session End notification.
Definition: agt_sys.c:1350
uint32 agt_sys_get_capability_changes(void)
Get the capability-changes counter.
Definition: agt_sys.c:1816
void agt_sys_send_sysConfirmedCommit(const ses_cb_t *scb, ncx_confirm_event_t event, uint32 timeout)
Queue the Confirmed Commit notification.
Definition: agt_sys.c:1743
void agt_sys_send_sysSessionStart(const ses_cb_t *scb)
Queue the Session Start notification.
Definition: agt_sys.c:1282
status_t agt_sys_init2(void)
INIT 2: Initialize the monitoring data structures This must be done after the <running> config is loa...
Definition: agt_sys.c:937
void agt_sys_send_sysCapabilityChange(ses_cb_t *changed_by, boolean is_add, const xmlChar *capstr)
Send a Capability Change notification.
Definition: agt_sys.c:1570
status_t agt_sys_fill_ha_status(val_value_t *ha_status_val)
Fill the HA status container.
Definition: agt_sys.c:1889
status_t agt_sys_init(void)
INIT 1: Initialize the server notification module data structures.
Definition: agt_sys.c:804
void agt_sys_cleanup(void)
Cleanup the module data structures.
Definition: agt_sys.c:1246
val_value_t * agt_sys_get_system_node(void)
Get the /yuma-system:system container.
Definition: agt_sys.c:1832
void agt_sys_send_sysConfigChange(const ses_cb_t *scb, dlq_hdr_t *auditrecQ)
Queue the Config Change notification.
Definition: agt_sys.c:1447
status_t
global error return code
Definition: status_enum.h:210
ses_term_reason_t
Session Termination reason.
Definition: ses.h:417
uint32 ses_id_t
Session ID.
Definition: ses.h:335
ncx_confirm_event_t
type of confirmEvent in the sysConfirmedCommit notification Used in confirmed-commit standard as well
Definition: ncxtypes.h:1515
YANG module data structures Many internal representations of YANG module constructs.
Data Object Support.
NETCONF Session Common definitions module.
Global error messages for status code enumerations.
Session Control Block.
Definition: ses.h:573
one value to match one type
Definition: val.h:912
Timestamp utilities.