yumapro  24.10-2
YumaPro SDK
Loading...
Searching...
No Matches
agt_state.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_state
13#define _H_agt_state
14/* FILE: agt_state.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----------------------------------------------------------------------
3524-feb-09 abb Begun.
36*/
37
38#include <xmlstring.h>
39
40#ifndef _H_agt_not
41#include "agt_not.h"
42#endif
43
44#ifndef _H_ncxtypes
45#include "ncxtypes.h"
46#endif
47
48#ifndef _H_ses
49#include "ses.h"
50#endif
51
52#ifndef _H_status
53#include "status.h"
54#endif
55
56#ifdef __cplusplus
57extern "C" {
58#endif
59
60
71/********************************************************************
72* *
73* C O N S T A N T S *
74* *
75*********************************************************************/
76
78#define AGT_STATE_MODULE (const xmlChar *)"ietf-netconf-monitoring"
79
80/********************************************************************
81* *
82* T Y P E S *
83* *
84*********************************************************************/
85
86
87/********************************************************************
88* *
89* F U N C T I O N S *
90* *
91*********************************************************************/
92
93
100extern status_t
101 agt_state_init (void);
102
103
111extern status_t
112 agt_state_init2 (void);
113
114
120extern void
121 agt_state_cleanup (void);
122
123
130extern status_t
132
133
139extern void
141
142
149extern status_t
151
152
158extern void
160
161
167extern status_t
169
170
183extern status_t
184 agt_state_add_backup_file (const xmlChar *filename,
185 boolean overwrite);
186
187
194extern void
195 agt_state_delete_backup_file (const xmlChar *filename);
196
197
203extern val_value_t *
205
206
212extern const val_value_t *
214
215
221extern val_value_t *
223
224
230extern val_value_t *
232
233
241extern status_t
243
244
248#ifdef __cplusplus
249} /* end extern 'C' */
250#endif
251
252
253#endif /* _H_agt_state */
NETCONF Notifications DM module support.
val_value_t * agt_state_get_capabilities(void)
Get a const back pointer to current /netconf-state/capabilities.
Definition: agt_state.c:2863
void agt_state_delete_backup_file(const xmlChar *filename)
Remove and delete a backup-file entry to the netconf-state DM for the specified file.
Definition: agt_state.c:2796
status_t agt_state_add_module_schema(ncx_module_t *mod)
Add a schema entry to the netconf-state DM.
Definition: agt_state.c:2584
status_t agt_state_refresh_backup_dir(ses_cb_t *scb)
Check the backup directory and re-generate the YANG operational data for the netconf-state/backups co...
Definition: agt_state.c:2899
const val_value_t * agt_state_get_statistics(void)
Get a const back pointer to current /netconf-state/statistics tree.
Definition: agt_state.c:2847
status_t agt_state_add_netconf_schema(void)
Add a schema entry to the netconf-state DM for ietf-netconf.
Definition: agt_state.c:2720
status_t agt_state_add_backup_file(const xmlChar *filename, boolean overwrite)
Add a backup-file entry to the netconf-state DM for the.
Definition: agt_state.c:2758
void agt_state_remove_module_schema(ncx_module_t *mod)
Remove a schema entry from the netconf-state DM.
Definition: agt_state.c:2669
status_t agt_state_add_session(ses_cb_t *scb)
Add a session entry to the netconf-state DM.
Definition: agt_state.c:2373
void agt_state_cleanup(void)
Cleanup the module data structures.
Definition: agt_state.c:2348
void agt_state_remove_session(ses_cb_t *scb)
Remove a session entry from the netconf-state DM.
Definition: agt_state.c:2473
val_value_t * agt_state_get_datastores(void)
Get a const back pointer to current /netconf-state/datastores.
Definition: agt_state.c:2879
val_value_t * agt_state_get_sessions(void)
Get a const back pointer to current /etconf-state/sessions tree.
Definition: agt_state.c:2831
status_t agt_state_init2(void)
INIT 2: Initialize the monitoring data structures This must be done after the <running> config is loa...
Definition: agt_state.c:2100
status_t agt_state_init(void)
INIT 1: Initialize the server state monitor module data structures.
Definition: agt_state.c:2032
status_t
global error return code
Definition: status_enum.h:210
YANG module data structures Many internal representations of YANG module constructs.
NETCONF Session Common definitions module.
Global error messages for status code enumerations.
representation of one module or submodule during and after parsing
Definition: ncxtypes.h:1138
Session Control Block.
Definition: ses.h:573
one value to match one type
Definition: val.h:912