info.h revision 71965
1/* $FreeBSD: head/usr.sbin/pkg_install/info/info.h 71965 2001-02-03 20:56:32Z jkh $ */ 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#ifndef MAXINDEXSIZE 27#define MAXINDEXSIZE 59 28#endif 29 30#ifndef MAXNAMESIZE 31#define MAXNAMESIZE 20 32#endif 33 34#define SHOW_COMMENT 0x0001 35#define SHOW_DESC 0x0002 36#define SHOW_PLIST 0x0004 37#define SHOW_INSTALL 0x0008 38#define SHOW_DEINSTALL 0x0010 39#define SHOW_REQUIRE 0x0020 40#define SHOW_PREFIX 0x0040 41#define SHOW_INDEX 0x0080 42#define SHOW_FILES 0x0100 43#define SHOW_DISPLAY 0x0200 44#define SHOW_REQBY 0x0400 45#define SHOW_MTREE 0x0800 46#define SHOW_SIZE 0x1000 47#define SHOW_ORIGIN 0x2000 48#define SHOW_CKSUM 0x4000 49 50extern int Flags; 51extern Boolean AllInstalled; 52extern Boolean Quiet; 53extern char *InfoPrefix; 54extern char PlayPen[]; 55extern char *CheckPkg; 56 57extern void show_file(char *, char *); 58extern void show_plist(char *, Package *, plist_t); 59extern void show_files(char *, Package *); 60extern void show_index(char *, char *); 61extern void show_size(char *, Package *); 62extern void show_origin(char *, Package *); 63 64#endif /* _INST_INFO_H_INCLUDE */ 65