yumapro  23.10T-7
YumaPro SDK
Loading...
Searching...
No Matches
agt_conf.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_conf
13#define _H_agt_conf
14
15/* FILE: agt_conf.h
16*********************************************************************
17* *
18* P U R P O S E *
19* *
20*********************************************************************/
21
28/*********************************************************************
29* *
30* C H A N G E H I S T O R Y *
31* *
32*********************************************************************
33
34date init comment
35----------------------------------------------------------------------
3606-oct-17 abb Begun; split from agt_cli.h
37
38*/
39
40#include <stdio.h>
41#include <xmlstring.h>
42
43#ifndef _H_val
44#include "val.h"
45#endif
46
47#ifndef _H_status_enum
48#include "status_enum.h"
49#endif
50
51#ifdef __cplusplus
52extern "C" {
53#endif
54
55/* group defined in agt_cli.h */
56
57
70/********************************************************************
71* *
72* T Y P E S *
73* *
74*********************************************************************/
75
76
86typedef status_t (*agt_conf_write_fn_t)(FILE *conf_file, void *cookie);
87
88
89/********************************************************************
90* *
91* F U N C T I O N S *
92* *
93*********************************************************************/
94
95
113extern status_t
114 agt_conf_load_files (const xmlChar *conf_filespec,
115 val_value_t *valset,
116 const xmlChar *conf_dirspec,
117 boolean *skip_def_confdir);
118
119
129extern status_t
130 agt_conf_create_file (const xmlChar *confname,
131 const xmlChar *revision,
132 agt_conf_write_fn_t conf_write_fn,
133 void *cookie);
134
135
143extern status_t
144 agt_conf_delete_file (const xmlChar *confname,
145 const xmlChar *revision);
146
154extern status_t
155 agt_conf_test_write_file (const xmlChar *confname,
156 const xmlChar *revision);
157
158
162#ifdef __cplusplus
163} /* end extern 'C' */
164#endif
165
166#endif /* _H_agt_conf */
status_t agt_conf_test_write_file(const xmlChar *confname, const xmlChar *revision)
Test Append a conf dir.
Definition: agt_conf.c:431
status_t agt_conf_create_file(const xmlChar *confname, const xmlChar *revision, agt_conf_write_fn_t conf_write_fn, void *cookie)
Create a module or bundle config in the confdir.
Definition: agt_conf.c:301
status_t agt_conf_load_files(const xmlChar *conf_filespec, val_value_t *valset, const xmlChar *conf_dirspec, boolean *skip_def_confdir)
Default main loaded first: /etc/yumapro/netconfd-pro.conf.
Definition: agt_conf.c:203
status_t agt_conf_delete_file(const xmlChar *confname, const xmlChar *revision)
Delete a module or bundle config in the confdir.
Definition: agt_conf.c:378
status_t(* agt_conf_write_fn_t)(FILE *conf_file, void *cookie)
conf file writer function callback
Definition: agt_conf.h:86
status_t
global error return code
Definition: status_enum.h:210
global error status code enumerations
one value to match one type
Definition: val.h:911
Value Node Basic Support.