summaryrefslogtreecommitdiff
path: root/src/solvable.h
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2012-03-28 16:16:11 +0200
committerMichael Schroeder <mls@suse.de>2012-03-28 16:16:11 +0200
commitc36ef29531924b0a2ec37cdac57211dac32837b1 (patch)
tree1695a370783842ddd32e08aa7e9b4a88086bcfea /src/solvable.h
parent7c177fd42e93f6290d910d0694b8179c45eb2fb0 (diff)
downloadlibsolv-c36ef29531924b0a2ec37cdac57211dac32837b1.tar.gz
libsolv-c36ef29531924b0a2ec37cdac57211dac32837b1.tar.bz2
libsolv-c36ef29531924b0a2ec37cdac57211dac32837b1.zip
- incompatible ABI change: switch num over to unsigned long long and store sizes in bytes, not kbytes
Diffstat (limited to 'src/solvable.h')
-rw-r--r--src/solvable.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/solvable.h b/src/solvable.h
index 7ecc6cf..5412712 100644
--- a/src/solvable.h
+++ b/src/solvable.h
@@ -45,7 +45,8 @@ typedef struct _Solvable {
/* lookup functions */
Id solvable_lookup_type(Solvable *s, Id keyname);
Id solvable_lookup_id(Solvable *s, Id keyname);
-unsigned int solvable_lookup_num(Solvable *s, Id keyname, unsigned int notfound);
+unsigned long long solvable_lookup_num(Solvable *s, Id keyname, unsigned long long notfound);
+unsigned int solvable_lookup_sizek(Solvable *s, Id keyname, unsigned int notfound);
const char *solvable_lookup_str(Solvable *s, Id keyname);
const char *solvable_lookup_str_poollang(Solvable *s, Id keyname);
const char *solvable_lookup_str_lang(Solvable *s, Id keyname, const char *lang, int usebase);
@@ -59,7 +60,7 @@ int solvable_lookup_deparray(Solvable *s, Id keyname, Queue *q, Id marker);
/* setter functions */
void solvable_set_id(Solvable *s, Id keyname, Id id);
-void solvable_set_num(Solvable *s, Id keyname, unsigned int num);
+void solvable_set_num(Solvable *s, Id keyname, unsigned long long num);
void solvable_set_str(Solvable *s, Id keyname, const char *str);
void solvable_set_poolstr(Solvable *s, Id keyname, const char *str);
void solvable_add_poolstr_array(Solvable *s, Id keyname, const char *str);