summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/alpm.h
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-12-12 20:34:48 +0100
committerDan McGee <dan@archlinux.org>2012-03-09 00:26:41 +0100
commit00f29cbc14ec24f1e432eadaf35742857285a01a (patch)
tree98048c0e7b53920c1edc6b47384253f96256e1d7 /lib/libalpm/alpm.h
parent6a636b2b6ec92046b010b7a4a593d3aabe253ef8 (diff)
downloadpacman-00f29cbc14ec24f1e432eadaf35742857285a01a.tar.gz
pacman-00f29cbc14ec24f1e432eadaf35742857285a01a.tar.xz
Allow alpm_depend_t to have a description
This is the first step in parsing and handling optdepends. There is no behavior change introduced in this commit; however, depends that contain a ": " string will now be parsed as having a description and it will be stored in the depend structure. Later patches will utilize this new field as appropriate. This is heavily based on the work of Benedikt, who did something similar but introduced a new type for this rather than only a new field to the existing type. Heavily-influenced-by: Benedikt Morbach <benedikt.morbach@googlemail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/alpm.h')
-rw-r--r--lib/libalpm/alpm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h
index 5f587d38..8a418dc0 100644
--- a/lib/libalpm/alpm.h
+++ b/lib/libalpm/alpm.h
@@ -136,6 +136,7 @@ typedef struct __alpm_trans_t alpm_trans_t;
typedef struct _alpm_depend_t {
char *name;
char *version;
+ char *desc;
unsigned long name_hash;
alpm_depmod_t mod;
} alpm_depend_t;