Deleted Added
full compact
lib.h (84745) lib.h (84750)
1/* $FreeBSD: head/usr.sbin/pkg_install/lib/lib.h 84745 2001-10-10 06:58:42Z sobomax $ */
1/* $FreeBSD: head/usr.sbin/pkg_install/lib/lib.h 84750 2001-10-10 08:21:41Z sobomax $ */
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:

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

77#define DISPLAY_FNAME "+DISPLAY"
78#define MTREE_FNAME "+MTREE_DIRS"
79
80#define CMD_CHAR '@' /* prefix for extended PLIST cmd */
81
82/* The name of the "prefix" environment variable given to scripts */
83#define PKG_PREFIX_VNAME "PKG_PREFIX"
84
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:

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

77#define DISPLAY_FNAME "+DISPLAY"
78#define MTREE_FNAME "+MTREE_DIRS"
79
80#define CMD_CHAR '@' /* prefix for extended PLIST cmd */
81
82/* The name of the "prefix" environment variable given to scripts */
83#define PKG_PREFIX_VNAME "PKG_PREFIX"
84
85/* Version numbers to assist with changes in package file format */
86#define PLIST_FMT_VER_MAJOR 1
87#define PLIST_FMT_VER_MINOR 1
88
85enum _plist_t {
86 PLIST_FILE, PLIST_CWD, PLIST_CMD, PLIST_CHMOD,
87 PLIST_CHOWN, PLIST_CHGRP, PLIST_COMMENT, PLIST_IGNORE,
88 PLIST_NAME, PLIST_UNEXEC, PLIST_SRC, PLIST_DISPLAY,
89 PLIST_PKGDEP, PLIST_MTREE, PLIST_DIR_RM, PLIST_IGNORE_INST,
90 PLIST_OPTION
91};
92typedef enum _plist_t plist_t;

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

104 char *name;
105 Boolean marked;
106 plist_t type;
107};
108typedef struct _plist *PackingList;
109
110struct _pack {
111 struct _plist *head, *tail;
89enum _plist_t {
90 PLIST_FILE, PLIST_CWD, PLIST_CMD, PLIST_CHMOD,
91 PLIST_CHOWN, PLIST_CHGRP, PLIST_COMMENT, PLIST_IGNORE,
92 PLIST_NAME, PLIST_UNEXEC, PLIST_SRC, PLIST_DISPLAY,
93 PLIST_PKGDEP, PLIST_MTREE, PLIST_DIR_RM, PLIST_IGNORE_INST,
94 PLIST_OPTION
95};
96typedef enum _plist_t plist_t;

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

108 char *name;
109 Boolean marked;
110 plist_t type;
111};
112typedef struct _plist *PackingList;
113
114struct _pack {
115 struct _plist *head, *tail;
116 int fmtver_maj, fmtver_mnr;
112};
113typedef struct _pack Package;
114
115struct reqr_by_entry {
116 STAILQ_ENTRY(reqr_by_entry) link;
117 char pkgname[PATH_MAX];
118};
119STAILQ_HEAD(reqr_by_head, reqr_by_entry);

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

187/* Query installed packages */
188char **matchinstalled(match_t, char **, int *);
189
190/* Dependencies */
191int sortdeps(char **);
192int chkifdepends(const char *, const char *);
193int requiredby(const char *, struct reqr_by_head **, Boolean, Boolean);
194
117};
118typedef struct _pack Package;
119
120struct reqr_by_entry {
121 STAILQ_ENTRY(reqr_by_entry) link;
122 char pkgname[PATH_MAX];
123};
124STAILQ_HEAD(reqr_by_head, reqr_by_entry);

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

192/* Query installed packages */
193char **matchinstalled(match_t, char **, int *);
194
195/* Dependencies */
196int sortdeps(char **);
197int chkifdepends(const char *, const char *);
198int requiredby(const char *, struct reqr_by_head **, Boolean, Boolean);
199
200/* Version */
201int verscmp(Package *, int, int);
202
195/* Externs */
196extern Boolean Verbose;
197extern Boolean Fake;
198extern Boolean Force;
199extern int AutoAnswer;
200
201#endif /* _INST_LIB_LIB_H_ */
203/* Externs */
204extern Boolean Verbose;
205extern Boolean Fake;
206extern Boolean Force;
207extern int AutoAnswer;
208
209#endif /* _INST_LIB_LIB_H_ */