Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids. Most
[dragonfly.git] / usr.sbin / pkg_install / info / info.h
1 /* $FreeBSD: src/usr.sbin/pkg_install/info/info.h,v 1.11.2.10 2002/08/02 11:09:05 sobomax Exp $ */
2 /* $DragonFly: src/usr.sbin/pkg_install/info/Attic/info.h,v 1.2 2003/06/17 04:29:59 dillon Exp $ */
3
4 /*
5  * FreeBSD install - a package for the installation and maintainance
6  * of non-core utilities.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions
10  * are met:
11  * 1. Redistributions of source code must retain the above copyright
12  *    notice, this list of conditions and the following disclaimer.
13  * 2. Redistributions in binary form must reproduce the above copyright
14  *    notice, this list of conditions and the following disclaimer in the
15  *    documentation and/or other materials provided with the distribution.
16  *
17  * Jordan K. Hubbard
18  * 23 August 1993
19  *
20  * Include and define various things wanted by the info command.
21  *
22  */
23
24 #ifndef _INST_INFO_H_INCLUDE
25 #define _INST_INFO_H_INCLUDE
26
27 #include <sys/queue.h>
28
29 #ifndef MAXINDEXSIZE
30 #define MAXINDEXSIZE 59
31 #endif
32
33 #ifndef MAXNAMESIZE
34 #define MAXNAMESIZE  20
35 #endif
36
37 #define SHOW_COMMENT    0x0001
38 #define SHOW_DESC       0x0002
39 #define SHOW_PLIST      0x0004
40 #define SHOW_INSTALL    0x0008
41 #define SHOW_DEINSTALL  0x0010
42 #define SHOW_REQUIRE    0x0020
43 #define SHOW_PREFIX     0x0040
44 #define SHOW_INDEX      0x0080
45 #define SHOW_FILES      0x0100
46 #define SHOW_DISPLAY    0x0200
47 #define SHOW_REQBY      0x0400
48 #define SHOW_MTREE      0x0800
49 #define SHOW_SIZE       0x1000
50 #define SHOW_ORIGIN     0x2000
51 #define SHOW_CKSUM      0x4000
52 #define SHOW_FMTREV     0x8000
53
54 struct which_entry {
55     TAILQ_ENTRY(which_entry) next;
56     char file[PATH_MAX];
57     char package[PATH_MAX];
58     Boolean skip;
59 };
60 TAILQ_HEAD(which_head, which_entry);
61
62 extern int Flags;
63 extern Boolean Quiet;
64 extern char *InfoPrefix;
65 extern char PlayPen[];
66 extern char *CheckPkg;
67 extern char *LookUpOrigin;
68 extern match_t MatchType;
69 extern struct which_head *whead;
70
71 extern void     show_file(const char *, const char *);
72 extern void     show_plist(const char *, Package *, plist_t, Boolean);
73 extern void     show_files(const char *, Package *);
74 extern void     show_index(const char *, const char *);
75 extern void     show_size(const char *, Package *);
76 extern void     show_cksum(const char *, Package *);
77 extern void     show_origin(const char *, Package *);
78 extern void     show_fmtrev(const char *, Package *);
79
80 #endif  /* _INST_INFO_H_INCLUDE */