1config_admin(3CFGCAoDnMf)iguration Administration Library Functcioonnfsig_admin(3CFGADM)
2
3
4
6 config_admin, config_change_state, config_private_func, config_test,
7 config_stat, config_list, config_list_ext, config_ap_id_cmp, con‐
8 fig_unload_libs, config_strerror - configuration administration inter‐
9 face
10
12 cc [ flag... ] file... -lcfgadm [ library... ]
13 #include <config_admin.h>
14 #include <sys/param.h>
15
16 cfga_err_t config_change_state(cfga_cmd_t state_change_cmd,
17 int num_ap_ids, char * const *ap_ids, const char *options,
18 struct cfga_confirm *confp, struct cfga_msg *msgp,
19 char **errstring, cfga_flags_t flags);
20
21
22 cfga_err_t config_private_func(const char *function, int num_ap_ids,
23 char * const *ap_ids, const char *options,
24 struct cfga_confirm *confp, msgp, char **errstring,
25 cfga_flags_t flags);
26
27
28 cfga_err_t config_test(int num_ap_ids, char * const *ap_ids,
29 const char *options, struct cfga_msg *msgp,
30 char **errstring, cfga_flags_t flags);
31
32
33 cfga_err_t config_list_ext(int num_ap_ids, char * const *ap_ids,
34 struct cfga_list_data **ap_id_list, int *nlist,
35 const char *options, const char *listops,
36 char **errstring, cfga_flags_t flags);
37
38
39 int config_ap_id_cmp(const cfga_ap_id_t ap_id1,
40 const cfga_ap_id_t ap_id2);
41
42
43 void config_unload_libs(void);
44
45
46 const char *config_strerror(cfga_err_t cfgerrnum);
47
48
49 Deprecated Interfaces
50 The following interfaces have been deprecated and their use is strongly
51 discouraged:
52
53 cfga_err_t config_stat(int num_ap_ids, char * const *ap_ids,
54 struct cfga_stat_data *buf, const char *options, char **errstring);
55
56
57 cfga_err_t config_list(struct cfga_stat_data **ap_id_list,
58 int *nlist, const char *options, char **errstring);
59
60
62 The config_admin library is a generic interface that is used for
63 dynamic configuration, (DR). Each piece of hardware that supports DR
64 must supply a hardware-specific plugin library that contains the entry
65 points listed in this subsection. The generic library will locate and
66 link to the appropriate library to effect DR operations. The interfaces
67 specified in this subsection are really "hidden" from users of the
68 generic libraries. It is, however, necessary that writers of the hard‐
69 ware-specific plug in libraries know what these interfaces are.
70
71 cfga_err_t cfga_change_state(cfga_cmd_t state_change_cmd,
72 const char *ap_id, const char *options, struct cfga_confirm *confp,
73 struct cfga_msg *msgp, char **errstring, cfga_flags_t flags);
74
75
76 cfga_err_t cfga_private_func(const char *function,
77 const char *ap_id, const char *options, struct cfga_confirm *confp,
78 struct cfga_msg *msgp, char **errstring, cfga_flags_t flags);
79
80
81 cfga_err_t cfga_test(const char *ap_id, const char *options,
82 struct cfga_msg *msgp, char **errstring, cfga_flags_t flags);
83
84
85 cfga_err_t cfga_list_ext(const char *ap_id,
86 struct cfga_list_data **ap_id_list, nlist, const char *options,
87 const char *listopts, char **errstring, cfga_flags_t flags);
88
89
90 cfga_err_t cfga_help(struct cfga_msg *msgp, const char *options,
91 cfga_flags_t flags);
92
93
94 int cfga_ap_id_cmp(const cfga_ap_id_t ap_id1, const cfga_ap_id_t ap_id2);
95
96
97 Deprecated Interfaces
98 The following interfaces have been deprecated and their use is strongly