diff options
author | sobomax <sobomax@FreeBSD.org> | 2001-03-23 18:45:24 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2001-03-23 18:45:24 +0000 |
commit | af0ef4a0618c8bc04852f5517a94e7bb9cf23a79 (patch) | |
tree | 7199089cfce7e2607cf0b53bfce882718f758082 /usr.sbin/pkg_install/info/info.h | |
parent | e22250630ad78bc0b2b6b8f7b7eef84c54dcc10a (diff) | |
download | FreeBSD-src-af0ef4a0618c8bc04852f5517a94e7bb9cf23a79.zip FreeBSD-src-af0ef4a0618c8bc04852f5517a94e7bb9cf23a79.tar.gz |
- Add which(1)-like functionality into pkg_info;
- fix a harmless bug in match_installed() function introduced in my last
commit;
- uniformely reorder includes across files.
Submitted by: Garrett Rooney <rooneg@electricjellyfish.net>
Not objected by: jkh, -ports
Diffstat (limited to 'usr.sbin/pkg_install/info/info.h')
-rw-r--r-- | usr.sbin/pkg_install/info/info.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/usr.sbin/pkg_install/info/info.h b/usr.sbin/pkg_install/info/info.h index 2356a7e..8db99ed 100644 --- a/usr.sbin/pkg_install/info/info.h +++ b/usr.sbin/pkg_install/info/info.h @@ -23,6 +23,8 @@ #ifndef _INST_INFO_H_INCLUDE #define _INST_INFO_H_INCLUDE +#include <sys/queue.h> + #ifndef MAXINDEXSIZE #define MAXINDEXSIZE 59 #endif @@ -47,12 +49,21 @@ #define SHOW_ORIGIN 0x2000 #define SHOW_CKSUM 0x4000 +struct which_entry { + TAILQ_ENTRY(which_entry) next; + char file[PATH_MAX]; + char package[PATH_MAX]; + Boolean skip; +}; +TAILQ_HEAD(which_head, which_entry); + extern int Flags; extern Boolean Quiet; extern char *InfoPrefix; extern char PlayPen[]; extern char *CheckPkg; extern match_t MatchType; +extern struct which_head *whead; extern void show_file(char *, char *); extern void show_plist(char *, Package *, plist_t); |