Mailinglist Archive: zypp-commit (606 mails)

< Previous Next >
[zypp-commit] r9445 - in /trunk/sat-solver/src: repodata.c repodata.h
  • From: kkaempf@xxxxxxxxxxxxxxxx
  • Date: Tue, 08 Apr 2008 10:01:37 -0000
  • Message-id: <20080408100137.CC9E026F4A@xxxxxxxxxxxxxxxx>
Author: kkaempf
Date: Tue Apr 8 12:01:37 2008
New Revision: 9445

URL: http://svn.opensuse.org/viewcvs/zypp?rev=9445&view=rev
Log:
- fix prototype for repodata_set_num()
- add comments to repodata.h

Modified:
trunk/sat-solver/src/repodata.c
trunk/sat-solver/src/repodata.h

Modified: trunk/sat-solver/src/repodata.c
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/src/repodata.c?rev=9445&r1=9444&r2=9445&view=diff
==============================================================================
--- trunk/sat-solver/src/repodata.c (original)
+++ trunk/sat-solver/src/repodata.c Tue Apr 8 12:01:37 2008
@@ -1163,14 +1163,14 @@
}

void
-repodata_set_num(Repodata *data, Id entry, Id keyname, Id num)
+repodata_set_num(Repodata *data, Id entry, Id keyname, unsigned int num)
{
Repokey key;
key.name = keyname;
key.type = REPOKEY_TYPE_NUM;
key.size = 0;
key.storage = KEY_STORAGE_INCORE;
- repodata_set(data, entry, &key, num);
+ repodata_set(data, entry, &key, (Id)num);
}

void

Modified: trunk/sat-solver/src/repodata.h
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/src/repodata.h?rev=9445&r1=9444&r2=9445&view=diff
==============================================================================
--- trunk/sat-solver/src/repodata.h (original)
+++ trunk/sat-solver/src/repodata.h Tue Apr 8 12:01:37 2008
@@ -112,13 +112,24 @@
Id *addedfileprovides;
} Repodata;

-/* management functions */
+
+/*-----
+ * management functions
+ */
void repodata_init(Repodata *data, struct _Repo *repo, int localpool);
void repodata_extend(Repodata *data, Id p);
void repodata_extend_extra(Repodata *data, int nextra);
void repodata_extend_block(Repodata *data, Id p, int num);
void repodata_free(Repodata *data);

+/* internalize repodata into .solv, required before writing out a .solv file */
+void repodata_internalize(Repodata *data);
+
+
+/*----
+ * access functions
+ */
+
/* Search key <keyname> (all keys, if keyname == 0) for Id <entry>
* <entry> is _relative_ Id for <data>
* Call <callback> for each match
@@ -128,30 +139,52 @@
/* lookup functions */
Id repodata_lookup_id(Repodata *data, Id entry, Id keyid);
const char *repodata_lookup_str(Repodata *data, Id entry, Id keyid);
-int repodata_lookup_num(Repodata *data, Id entry, Id keyid, unsigned *value);
+int repodata_lookup_num(Repodata *data, Id entry, Id keyid, unsigned int
*value);
int repodata_lookup_void(Repodata *data, Id entry, Id keyid);
const unsigned char *repodata_lookup_bin_checksum(Repodata *data, Id entry, Id
keyid, Id *typep);

-/* data assignment */
+
+/*-----
+ * data assignment functions
+ */
+
+/* basic types: void, num, string, Id */
+
+void repodata_set_void(Repodata *data, Id entry, Id keyname);
+void repodata_set_num(Repodata *data, Id entry, Id keyname, unsigned int num);
+void repodata_set_str(Repodata *data, Id entry, Id keyname, const char *str);
void repodata_set_id(Repodata *data, Id entry, Id keyname, Id id);
-void repodata_set_num(Repodata *data, Id entry, Id keyname, Id num);
+
+/* */
+
void repodata_set_poolstr(Repodata *data, Id entry, Id keyname, const char
*str);
void repodata_set_constant(Repodata *data, Id entry, Id keyname, Id constant);
void repodata_set_constantid(Repodata *data, Id entry, Id keyname, Id id);
-void repodata_set_void(Repodata *data, Id entry, Id keyname);
-void repodata_set_str(Repodata *data, Id entry, Id keyname, const char *str);
+
+/* checksum */
void repodata_set_bin_checksum(Repodata *data, Id entry, Id keyname, Id type,
const unsigned char *buf);
void repodata_set_checksum(Repodata *data, Id entry, Id keyname, Id type,
const char *str);
+
+/* directory (for package file list) */
void repodata_add_dirnumnum(Repodata *data, Id entry, Id keyname, Id dir, Id
num, Id num2);
void repodata_add_dirstr(Repodata *data, Id entry, Id keyname, Id dir, const
char *str);
+
+
+/* Arrays */
void repodata_add_idarray(Repodata *data, Id entry, Id keyname, Id id);
void repodata_add_poolstr_array(Repodata *data, Id entry, Id keyname,
const char *str);
+
+/*-----
+ * data management
+ */
+
+/* merge attributes */
void repodata_merge_attrs (Repodata *data, Id dest, Id src);

-void repodata_internalize(Repodata *data);
+/* */
void repodata_disable_paging(Repodata *data);

/* helper functions */

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages