xref: /illumos-gate/usr/src/head/pkginfo.h (revision 24da5b34f49324ed742a340010ed5bd3d4e06625)
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 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
23 /*	  All Rights Reserved  	*/
24 
25 
26 #ifndef	_PKGINFO_H
27 #define	_PKGINFO_H
28 
29 #pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.5.1.2 */
30 
31 #ifdef	__cplusplus
32 extern "C" {
33 #endif
34 
35 #define	PI_INSTALLED 	0
36 #define	PI_PARTIAL	1
37 #define	PI_PRESVR4	2
38 #define	PI_UNKNOWN	3
39 #define	PI_SPOOLED	4
40 
41 struct pkginfo {
42 	char	*pkginst;
43 	char	*name;
44 	char	*arch;
45 	char	*version;
46 	char	*vendor;
47 	char	*basedir;
48 	char	*catg;
49 	char	status;
50 };
51 
52 extern char	*pkgdir;
53 
54 #ifdef __STDC__
55 extern char	*pkgparam(char *, char *);
56 extern int	pkginfo(struct pkginfo *, char *, ...),
57 		pkgnmchk(char *, char *, int);
58 #else
59 extern char	*pkgparam();
60 extern int	pkginfo(),
61 		pkgnmchk();
62 #endif	/* __STDC__ */
63 
64 #ifdef	__cplusplus
65 }
66 #endif
67 
68 #endif	/* _PKGINFO_H */
69