Deleted Added
full compact
lib.h (131274) lib.h (131275)
1/* $FreeBSD: head/usr.sbin/pkg_install/lib/lib.h 131274 2004-06-29 18:52:13Z eik $ */
1/* $FreeBSD: head/usr.sbin/pkg_install/lib/lib.h 131275 2004-06-29 18:54:47Z eik $ */
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:

--- 90 unchanged lines hidden (view full) ---

100 PLIST_CHOWN, PLIST_CHGRP, PLIST_COMMENT, PLIST_IGNORE,
101 PLIST_NAME, PLIST_UNEXEC, PLIST_SRC, PLIST_DISPLAY,
102 PLIST_PKGDEP, PLIST_CONFLICTS, PLIST_MTREE, PLIST_DIR_RM,
103 PLIST_IGNORE_INST, PLIST_OPTION, PLIST_ORIGIN, PLIST_DEPORIGIN
104};
105typedef enum _plist_t plist_t;
106
107enum _match_t {
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:

--- 90 unchanged lines hidden (view full) ---

100 PLIST_CHOWN, PLIST_CHGRP, PLIST_COMMENT, PLIST_IGNORE,
101 PLIST_NAME, PLIST_UNEXEC, PLIST_SRC, PLIST_DISPLAY,
102 PLIST_PKGDEP, PLIST_CONFLICTS, PLIST_MTREE, PLIST_DIR_RM,
103 PLIST_IGNORE_INST, PLIST_OPTION, PLIST_ORIGIN, PLIST_DEPORIGIN
104};
105typedef enum _plist_t plist_t;
106
107enum _match_t {
108 MATCH_ALL, MATCH_EXACT, MATCH_GLOB, MATCH_REGEX
108 MATCH_ALL, MATCH_EXACT, MATCH_GLOB, MATCH_NGLOB, MATCH_EREGEX, MATCH_REGEX
109};
110typedef enum _match_t match_t;
111
112/* Types */
113typedef unsigned int Boolean;
114
115struct _plist {
116 struct _plist *prev, *next;

--- 84 unchanged lines hidden (view full) ---

201/* For all */
202int pkg_perform(char **);
203int real_main(int, char **);
204
205/* Query installed packages */
206char **matchinstalled(match_t, char **, int *);
207char **matchbyorigin(const char *, int *);
208int isinstalledpkg(const char *name);
109};
110typedef enum _match_t match_t;
111
112/* Types */
113typedef unsigned int Boolean;
114
115struct _plist {
116 struct _plist *prev, *next;

--- 84 unchanged lines hidden (view full) ---

201/* For all */
202int pkg_perform(char **);
203int real_main(int, char **);
204
205/* Query installed packages */
206char **matchinstalled(match_t, char **, int *);
207char **matchbyorigin(const char *, int *);
208int isinstalledpkg(const char *name);
209int pattern_match(match_t MatchType, char *pattern, const char *pkgname);
209
210/* Dependencies */
211int sortdeps(char **);
212int chkifdepends(const char *, const char *);
213int requiredby(const char *, struct reqr_by_head **, Boolean, Boolean);
214
215/* Version */
216int verscmp(Package *, int, int);
217int version_cmp(const char *, const char *);
218
219/* Externs */
220extern Boolean Verbose;
221extern Boolean Fake;
222extern Boolean Force;
223extern int AutoAnswer;
224
225#endif /* _INST_LIB_LIB_H_ */
210
211/* Dependencies */
212int sortdeps(char **);
213int chkifdepends(const char *, const char *);
214int requiredby(const char *, struct reqr_by_head **, Boolean, Boolean);
215
216/* Version */
217int verscmp(Package *, int, int);
218int version_cmp(const char *, const char *);
219
220/* Externs */
221extern Boolean Verbose;
222extern Boolean Fake;
223extern Boolean Force;
224extern int AutoAnswer;
225
226#endif /* _INST_LIB_LIB_H_ */