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
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.
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]
23 * Copyright (c) 1994, by Sun Microsytems, Inc.
29 #pragma ident "%Z%%M% %I% %E% SMI"
37 #include <sys/types.h>
49 typedef enum spec_type
{
66 (*spec_attr_fun_t
) (spec_t
* spec
, char *attr
, char *value
, void *calldatap
);
68 (*spec_val_fun_t
) (spec_t
* spec
, char *value
, void *calldatap
);
80 spec_t
* spec(char *str_p
, spec_type_t type
);
81 void spec_destroy(spec_t
* list_p
);
82 void spec_print(FILE * stream
, spec_t
* list_p
);
83 spec_t
* spec_list(spec_t
* list_p
, spec_t
* item_p
);
84 void spec_attrtrav(spec_t
* spec_p
, char *attrs
,
85 spec_attr_fun_t fun
, void *calldata_p
);
86 void spec_valtrav(spec_t
* spec_p
, char *valstr
,
87 spec_val_fun_t fun
, void *calldata_p
);
88 spec_t
*spec_dup(spec_t
* spec_p
);