Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/alpm.h
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-03-29 20:31:03 +0000
committerAurelien Foret <aurelien@archlinux.org>2005-03-29 20:31:03 +0000
commit95ea99e1973c03abe73b7c20ded9a24905420291 (patch)
tree32c7887786916842bf8e9f2dd93b8cd03c44f5d0 /lib/libalpm/alpm.h
parente5389ddc620bb4584a29c8e36ea1d2584f013f7f (diff)
Turned pmdepmissing_t into an opaque structure
Diffstat (limited to 'lib/libalpm/alpm.h')
-rw-r--r--lib/libalpm/alpm.h57
1 files changed, 27 insertions, 30 deletions
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h
index 41a36a0d..451196f7 100644
--- a/lib/libalpm/alpm.h
+++ b/lib/libalpm/alpm.h
@@ -38,9 +38,7 @@ typedef struct __pmpkg_t PM_PKG;
typedef struct __pmgrp_t PM_GRP;
typedef struct __pmsync_t PM_SYNC;
typedef struct __pmtrans_t PM_TRANS;
-/* ORE
-typedef struct __pmdepend_t PM_DEP;
-typedef struct __pmdepmissing_t PM_DEPMISS; */
+typedef struct __pmdepmissing_t PM_DEPMISS;
/*
* Library
@@ -226,33 +224,6 @@ enum {
PM_TRANS_TARGETS
};
-/* Dependencies */
-enum {
- PM_DEP_ANY = 1,
- PM_DEP_EQ,
- PM_DEP_GE,
- PM_DEP_LE
-};
-enum {
- PM_DEP_DEPEND = 1,
- PM_DEP_REQUIRED,
- PM_DEP_CONFLICT
-};
-
-/* ORE
-to be deprecated in favor of PM_DEP and PM_DEPMISS (opaque) */
-typedef struct __pmdepend_t {
- unsigned short mod;
- char name[256];
- char version[64];
-} pmdepend_t;
-
-typedef struct __pmdepmissing_t {
- unsigned char type;
- char target[256];
- pmdepend_t depend;
-} pmdepmissing_t;
-
void *alpm_trans_getinfo(unsigned char parm);
int alpm_trans_init(unsigned char type, unsigned char flags, alpm_trans_cb cb);
int alpm_trans_addtarget(char *target);
@@ -261,6 +232,32 @@ int alpm_trans_commit();
int alpm_trans_release();
/*
+ * Dependencies
+ */
+
+enum {
+ PM_DEP_MOD_ANY = 1,
+ PM_DEP_MOD_EQ,
+ PM_DEP_MOD_GE,
+ PM_DEP_MOD_LE
+};
+enum {
+ PM_DEP_TYPE_DEPEND = 1,
+ PM_DEP_TYPE_REQUIRED,
+ PM_DEP_TYPE_CONFLICT
+};
+/* Dependencies parameters */
+enum {
+ PM_DEP_TARGET = 1,
+ PM_DEP_TYPE,
+ PM_DEP_MOD,
+ PM_DEP_NAME,
+ PM_DEP_VERSION
+};
+
+void *alpm_dep_getinfo(PM_DEPMISS *miss, unsigned char parm);
+
+/*
* PM_LIST helpers
*/
PM_LIST *alpm_list_first(PM_LIST *list);