xref: /titanic_41/usr/src/lib/libcfgadm/common/llib-lcfgadm (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1*7c478bd9Sstevel@tonic-gate/*
2*7c478bd9Sstevel@tonic-gate * CDDL HEADER START
3*7c478bd9Sstevel@tonic-gate *
4*7c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the
5*7c478bd9Sstevel@tonic-gate * Common Development and Distribution License, Version 1.0 only
6*7c478bd9Sstevel@tonic-gate * (the "License").  You may not use this file except in compliance
7*7c478bd9Sstevel@tonic-gate * with the License.
8*7c478bd9Sstevel@tonic-gate *
9*7c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*7c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing.
11*7c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions
12*7c478bd9Sstevel@tonic-gate * and limitations under the License.
13*7c478bd9Sstevel@tonic-gate *
14*7c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each
15*7c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*7c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the
17*7c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying
18*7c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner]
19*7c478bd9Sstevel@tonic-gate *
20*7c478bd9Sstevel@tonic-gate * CDDL HEADER END
21*7c478bd9Sstevel@tonic-gate */
22*7c478bd9Sstevel@tonic-gate/*LINTLIBRARY*/
23*7c478bd9Sstevel@tonic-gate/*PROTOLIB1*/
24*7c478bd9Sstevel@tonic-gate
25*7c478bd9Sstevel@tonic-gate/*
26*7c478bd9Sstevel@tonic-gate * Copyright 1998-1999, 2002 Sun Microsystems, Inc.  All rights reserved.
27*7c478bd9Sstevel@tonic-gate * Use is subject to license terms.
28*7c478bd9Sstevel@tonic-gate */
29*7c478bd9Sstevel@tonic-gate
30*7c478bd9Sstevel@tonic-gate#pragma ident	"%Z%%M%	%I%	%E% SMI"
31*7c478bd9Sstevel@tonic-gate
32*7c478bd9Sstevel@tonic-gate#include <sys/param.h>
33*7c478bd9Sstevel@tonic-gate#include <config_admin.h>
34*7c478bd9Sstevel@tonic-gate
35*7c478bd9Sstevel@tonic-gatecfga_err_t
36*7c478bd9Sstevel@tonic-gateconfig_change_state(
37*7c478bd9Sstevel@tonic-gate	cfga_cmd_t state_change_cmd,
38*7c478bd9Sstevel@tonic-gate	int num_ap_ids,
39*7c478bd9Sstevel@tonic-gate	char * const *ap_ids,
40*7c478bd9Sstevel@tonic-gate	const char *options,
41*7c478bd9Sstevel@tonic-gate	struct cfga_confirm *confp,
42*7c478bd9Sstevel@tonic-gate	struct cfga_msg *msgp,
43*7c478bd9Sstevel@tonic-gate	char **errstring,
44*7c478bd9Sstevel@tonic-gate	cfga_flags_t flags);
45*7c478bd9Sstevel@tonic-gate
46*7c478bd9Sstevel@tonic-gatecfga_err_t
47*7c478bd9Sstevel@tonic-gateconfig_private_func(
48*7c478bd9Sstevel@tonic-gate	const char *function,
49*7c478bd9Sstevel@tonic-gate	int num_ap_ids,
50*7c478bd9Sstevel@tonic-gate	char * const *ap_ids,
51*7c478bd9Sstevel@tonic-gate	const char *options,
52*7c478bd9Sstevel@tonic-gate	struct cfga_confirm *confp,
53*7c478bd9Sstevel@tonic-gate	struct cfga_msg *msgp,
54*7c478bd9Sstevel@tonic-gate	char **errstring,
55*7c478bd9Sstevel@tonic-gate	cfga_flags_t flags);
56*7c478bd9Sstevel@tonic-gate
57*7c478bd9Sstevel@tonic-gatecfga_err_t
58*7c478bd9Sstevel@tonic-gateconfig_test(
59*7c478bd9Sstevel@tonic-gate	int num_ap_ids,
60*7c478bd9Sstevel@tonic-gate	char * const *ap_ids,
61*7c478bd9Sstevel@tonic-gate	const char *options,
62*7c478bd9Sstevel@tonic-gate	struct cfga_msg *msgp,
63*7c478bd9Sstevel@tonic-gate	char **errstring,
64*7c478bd9Sstevel@tonic-gate	cfga_flags_t flags);
65*7c478bd9Sstevel@tonic-gate
66*7c478bd9Sstevel@tonic-gatecfga_err_t
67*7c478bd9Sstevel@tonic-gateconfig_stat(
68*7c478bd9Sstevel@tonic-gate	int num_ap_ids,
69*7c478bd9Sstevel@tonic-gate	char * const *ap_ids,
70*7c478bd9Sstevel@tonic-gate	struct cfga_stat_data *buf,
71*7c478bd9Sstevel@tonic-gate	const char *options,
72*7c478bd9Sstevel@tonic-gate	char **errstring);
73*7c478bd9Sstevel@tonic-gate
74*7c478bd9Sstevel@tonic-gatecfga_err_t
75*7c478bd9Sstevel@tonic-gateconfig_list(
76*7c478bd9Sstevel@tonic-gate	struct cfga_stat_data **ap_di_list,
77*7c478bd9Sstevel@tonic-gate	int *nlist,
78*7c478bd9Sstevel@tonic-gate	const char *options,
79*7c478bd9Sstevel@tonic-gate	char **errstring);
80*7c478bd9Sstevel@tonic-gate
81*7c478bd9Sstevel@tonic-gatecfga_err_t
82*7c478bd9Sstevel@tonic-gateconfig_list_ext(
83*7c478bd9Sstevel@tonic-gate	int num_ap_ids,
84*7c478bd9Sstevel@tonic-gate	char *const *ap_ids,
85*7c478bd9Sstevel@tonic-gate	struct cfga_list_data **ap_id_list,
86*7c478bd9Sstevel@tonic-gate	int *nlist,
87*7c478bd9Sstevel@tonic-gate	const char* options,
88*7c478bd9Sstevel@tonic-gate	const char *listopts,
89*7c478bd9Sstevel@tonic-gate	char **errstring,
90*7c478bd9Sstevel@tonic-gate	cfga_flags_t flags);
91*7c478bd9Sstevel@tonic-gate
92*7c478bd9Sstevel@tonic-gatecfga_err_t
93*7c478bd9Sstevel@tonic-gateconfig_help(
94*7c478bd9Sstevel@tonic-gate	int num_ap_ids,
95*7c478bd9Sstevel@tonic-gate	char * const *ap_ids,
96*7c478bd9Sstevel@tonic-gate	struct cfga_msg *msgp,
97*7c478bd9Sstevel@tonic-gate	const char *options,
98*7c478bd9Sstevel@tonic-gate	cfga_flags_t flags);
99*7c478bd9Sstevel@tonic-gate
100*7c478bd9Sstevel@tonic-gateconst char *
101*7c478bd9Sstevel@tonic-gateconfig_strerror(
102*7c478bd9Sstevel@tonic-gate	cfga_err_t cfgerrnum);
103*7c478bd9Sstevel@tonic-gate
104*7c478bd9Sstevel@tonic-gateint
105*7c478bd9Sstevel@tonic-gateconfig_ap_id_cmp(
106*7c478bd9Sstevel@tonic-gate	const cfga_ap_log_id_t ap_id1,
107*7c478bd9Sstevel@tonic-gate	const cfga_ap_log_id_t ap_id2);
108*7c478bd9Sstevel@tonic-gate
109*7c478bd9Sstevel@tonic-gatevoid
110*7c478bd9Sstevel@tonic-gateconfig_unload_libs();
111*7c478bd9Sstevel@tonic-gate
112*7c478bd9Sstevel@tonic-gate#ifdef CFGA_PLUGIN_LIB
113*7c478bd9Sstevel@tonic-gate
114*7c478bd9Sstevel@tonic-gatecfga_err_t
115*7c478bd9Sstevel@tonic-gatecfga_change_state(
116*7c478bd9Sstevel@tonic-gate	cfga_cmd_t,
117*7c478bd9Sstevel@tonic-gate	const char *,
118*7c478bd9Sstevel@tonic-gate	const char *,
119*7c478bd9Sstevel@tonic-gate	struct cfga_confirm *,
120*7c478bd9Sstevel@tonic-gate	struct cfga_msg *,
121*7c478bd9Sstevel@tonic-gate	char **,
122*7c478bd9Sstevel@tonic-gate	cfga_flags_t);
123*7c478bd9Sstevel@tonic-gate
124*7c478bd9Sstevel@tonic-gatecfga_err_t
125*7c478bd9Sstevel@tonic-gatecfga_private_func(
126*7c478bd9Sstevel@tonic-gate	const char *,
127*7c478bd9Sstevel@tonic-gate	const char *,
128*7c478bd9Sstevel@tonic-gate	const char *,
129*7c478bd9Sstevel@tonic-gate	struct cfga_confirm *,
130*7c478bd9Sstevel@tonic-gate	struct cfga_msg *,
131*7c478bd9Sstevel@tonic-gate	char **,
132*7c478bd9Sstevel@tonic-gate	cfga_flags_t);
133*7c478bd9Sstevel@tonic-gate
134*7c478bd9Sstevel@tonic-gatecfga_err_t
135*7c478bd9Sstevel@tonic-gatecfga_test(
136*7c478bd9Sstevel@tonic-gate	const char *,
137*7c478bd9Sstevel@tonic-gate	const char *,
138*7c478bd9Sstevel@tonic-gate	struct cfga_msg *,
139*7c478bd9Sstevel@tonic-gate	char **,
140*7c478bd9Sstevel@tonic-gate	cfga_flags_t);
141*7c478bd9Sstevel@tonic-gate
142*7c478bd9Sstevel@tonic-gatecfga_err_t
143*7c478bd9Sstevel@tonic-gatecfga_stat(
144*7c478bd9Sstevel@tonic-gate	const char *,
145*7c478bd9Sstevel@tonic-gate	struct cfga_stat_data *,
146*7c478bd9Sstevel@tonic-gate	const char *,
147*7c478bd9Sstevel@tonic-gate	char **);
148*7c478bd9Sstevel@tonic-gate
149*7c478bd9Sstevel@tonic-gatecfga_err_t
150*7c478bd9Sstevel@tonic-gatecfga_list(
151*7c478bd9Sstevel@tonic-gate	const char *,
152*7c478bd9Sstevel@tonic-gate	struct cfga_stat_data **,
153*7c478bd9Sstevel@tonic-gate	int *,
154*7c478bd9Sstevel@tonic-gate	const char *,
155*7c478bd9Sstevel@tonic-gate	char **);
156*7c478bd9Sstevel@tonic-gate
157*7c478bd9Sstevel@tonic-gatecfga_err_t
158*7c478bd9Sstevel@tonic-gatecfga_list_ext(
159*7c478bd9Sstevel@tonic-gate	const char *,
160*7c478bd9Sstevel@tonic-gate	struct cfga_list_data **,
161*7c478bd9Sstevel@tonic-gate	int *,
162*7c478bd9Sstevel@tonic-gate	const char *,
163*7c478bd9Sstevel@tonic-gate	const char *,
164*7c478bd9Sstevel@tonic-gate	char **,
165*7c478bd9Sstevel@tonic-gate	cfga_flags_t);
166*7c478bd9Sstevel@tonic-gate
167*7c478bd9Sstevel@tonic-gatecfga_err_t
168*7c478bd9Sstevel@tonic-gatecfga_help(
169*7c478bd9Sstevel@tonic-gate	struct cfga_msg *,
170*7c478bd9Sstevel@tonic-gate	const char *,
171*7c478bd9Sstevel@tonic-gate	cfga_flags_t);
172*7c478bd9Sstevel@tonic-gate
173*7c478bd9Sstevel@tonic-gateint
174*7c478bd9Sstevel@tonic-gatecfga_ap_id_cmp(
175*7c478bd9Sstevel@tonic-gate	const cfga_ap_log_id_t,
176*7c478bd9Sstevel@tonic-gate	const cfga_ap_log_id_t);
177*7c478bd9Sstevel@tonic-gate
178*7c478bd9Sstevel@tonic-gate#endif
179