xref: /titanic_52/usr/src/head/pkginfo.h (revision f985abb4a2473d3c04b086f7c9fab177e368ffef)
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 /*
23  * Copyright 2014 Garrett D'Amore <garrett@damore.org>
24  */
25 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
26 /*	  All Rights Reserved  	*/
27 
28 #ifndef	_PKGINFO_H
29 #define	_PKGINFO_H
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 extern char	*pkgparam(char *, char *);
55 extern int	pkginfo(struct pkginfo *, char *, ...),
56 		pkgnmchk(char *, char *, int);
57 
58 #ifdef	__cplusplus
59 }
60 #endif
61 
62 #endif	/* _PKGINFO_H */
63