From 00f29cbc14ec24f1e432eadaf35742857285a01a Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 12 Dec 2011 13:34:48 -0600 Subject: 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 Signed-off-by: Dan McGee --- lib/libalpm/alpm.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libalpm/alpm.h') 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; -- cgit v1.2.3-24-g4f1b