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