diff options
Diffstat (limited to 'usr.sbin/pkg_install/lib/lib.h')
-rw-r--r-- | usr.sbin/pkg_install/lib/lib.h | 8 |
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; |