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