From 76981b8c46e5741f0722bf959265d9109956af62 Mon Sep 17 00:00:00 2001 From: Klaus Kaempf Date: Thu, 14 Feb 2008 14:00:31 +0000 Subject: [PATCH] more comments --- src/repodata.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/repodata.h b/src/repodata.h index c9de915..c3e73d8 100644 --- a/src/repodata.h +++ b/src/repodata.h @@ -102,9 +102,20 @@ typedef struct _Repodata { } Repodata; - +/* Search key (all keys, if keyname == 0) for Id + * is _relative_ Id for + * Call for each match + */ void repodata_search(Repodata *data, Id entry, Id keyname, int (*callback)(void *cbdata, Solvable *s, Repodata *data, struct _Repokey *key, struct _KeyValue *kv), void *cbdata); + +/* + * lookup string type attribute + */ const char *repodata_lookup_str(Repodata *data, Id entry, Id keyid); + +/* + * lookup integer type attribute + */ int repodata_lookup_num(Repodata *data, Id entry, Id keyid, unsigned *value); void repodata_extend(Repodata *data, Id p); -- 2.7.4