yumapro  21.10T-8
YumaPro SDK
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 
33 date init comment
34 ----------------------------------------------------------------------
35 24-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
57 extern "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 
100 extern status_t
101  agt_state_init (void);
102 
103 
111 extern status_t
112  agt_state_init2 (void);
113 
114 
120 extern void
121  agt_state_cleanup (void);
122 
123 
130 extern status_t
132 
133 
139 extern void
141 
142 
149 extern status_t
151 
152 
158 extern void
160 
161 
167 extern status_t
169 
170 
183 extern status_t
184  agt_state_add_backup_file (const xmlChar *filename,
185  boolean overwrite);
186 
187 
194 extern void
195  agt_state_delete_backup_file (const xmlChar *filename);
196 
197 
203 extern val_value_t *
204  agt_state_get_sessions (void);
205 
206 
212 extern const val_value_t *
214 
215 
221 extern val_value_t *
223 
224 
230 extern val_value_t *
232 
233 
241 extern status_t
243 
244 
248 #ifdef __cplusplus
249 } /* end extern 'C' */
250 #endif
251 
252 
253 #endif /* _H_agt_state */
status_t agt_state_init(void)
INIT 1: Initialize the server state monitor module data structures.
Definition: agt_state.c:2002
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:2714
NETCONF Session Common definitions module.
representation of one module or submodule during and after parsing
Definition: ncxtypes.h:1052
void agt_state_remove_module_schema(ncx_module_t *mod)
Remove a schema entry from the netconf-state DM.
Definition: agt_state.c:2628
YANG module data structures Many internal representations of YANG module constructs.
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:2752
void agt_state_cleanup(void)
Cleanup the module data structures.
Definition: agt_state.c:2318
val_value_t * agt_state_get_capabilities(void)
Get a const back pointer to current /netconf-state/capabilities.
Definition: agt_state.c:2819
one value to match one type
Definition: val.h:870
const val_value_t * agt_state_get_statistics(void)
Get a const back pointer to current /netconf-state/statistics tree.
Definition: agt_state.c:2803
NETCONF Notifications DM module support.
status_t agt_state_add_session(ses_cb_t *scb)
Add a session entry to the netconf-state DM.
Definition: agt_state.c:2343
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:2855
val_value_t * agt_state_get_sessions(void)
Get a const back pointer to current /etconf-state/sessions tree.
Definition: agt_state.c:2787
Session Control Block.
Definition: ses.h:542
status_t
global error return code
Definition: status_enum.h:186
Global error messages for status code enumerations.
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:2070
void agt_state_remove_session(ses_cb_t *scb)
Remove a session entry from the netconf-state DM.
Definition: agt_state.c:2442
val_value_t * agt_state_get_datastores(void)
Get a const back pointer to current /netconf-state/datastores.
Definition: agt_state.c:2835
status_t agt_state_add_module_schema(ncx_module_t *mod)
Add a schema entry to the netconf-state DM.
Definition: agt_state.c:2551
status_t agt_state_add_netconf_schema(void)
Add a schema entry to the netconf-state DM for ietf-netconf.
Definition: agt_state.c:2676