summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/lib/lib.h
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2001-02-27 09:00:18 +0000
committersobomax <sobomax@FreeBSD.org>2001-02-27 09:00:18 +0000
commit9ef21beb7a0f2e40841eaec959a3353bb1a0fab1 (patch)
treee3f9b793ac5867f8c854408a2545d3e05f9e0df5 /usr.sbin/pkg_install/lib/lib.h
parent3dba1d1543776a0f641cde330672fdb902764a4b (diff)
downloadFreeBSD-src-9ef21beb7a0f2e40841eaec959a3353bb1a0fab1.zip
FreeBSD-src-9ef21beb7a0f2e40841eaec959a3353bb1a0fab1.tar.gz
- Merge recently added into pkg_info(1) regex/glob matching functionality into
pkg_delete(1) as well; - add a new `-a' option for pkg_delete(1) to delete all installed packages; - add a new `-i' option for pkg_delete(1) to request simple rm(1)-like interactive confirmation before attempting to delete each package. Silently approved by: jkh, -ports
Diffstat (limited to 'usr.sbin/pkg_install/lib/lib.h')
-rw-r--r--usr.sbin/pkg_install/lib/lib.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/usr.sbin/pkg_install/lib/lib.h b/usr.sbin/pkg_install/lib/lib.h
index 2584655..fae802d 100644
--- a/usr.sbin/pkg_install/lib/lib.h
+++ b/usr.sbin/pkg_install/lib/lib.h
@@ -88,6 +88,11 @@ enum _plist_t {
};
typedef enum _plist_t plist_t;
+enum _match_t {
+ MATCH_ALL, MATCH_EXACT, MATCH_GLOB, MATCH_REGEX
+};
+typedef enum _match_t match_t;
+
/* Types */
typedef unsigned int Boolean;
@@ -169,6 +174,9 @@ Boolean make_preserve_name(char *, int, char *, char *);
/* For all */
int pkg_perform(char **);
+/* Query installed packages */
+char **matchinstalled(match_t, char **, int *);
+
/* Externs */
extern Boolean Verbose;
extern Boolean Fake;
OpenPOWER on IntegriCloud