]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
- bring back dataiterator_match for now (to be removed again)
authorMichael Schroeder <mls@suse.de>
Thu, 9 Oct 2008 15:17:47 +0000 (15:17 +0000)
committerMichael Schroeder <mls@suse.de>
Thu, 9 Oct 2008 15:17:47 +0000 (15:17 +0000)
src/repo.h
src/repodata.c

index 197e53cb12f57f75f4f5b1968c625c235519f97e..628abfd85b8d0dd65f2aea121768a680cd38f4be 100644 (file)
@@ -287,6 +287,9 @@ void dataiterator_skip_repo(Dataiterator *di);
 void dataiterator_jump_to_solvable(Dataiterator *di, Solvable *s);
 void dataiterator_jump_to_repo(Dataiterator *di, Repo *repo);
 
+/* to be removed ... */
+int dataiterator_match(Dataiterator *di, int flags, const void *match);
+
 void repo_set_id(Repo *repo, Id p, Id keyname, Id id);
 void repo_set_num(Repo *repo, Id p, Id keyname, Id num);
 void repo_set_str(Repo *repo, Id p, Id keyname, const char *str);
index da3cea168953ffd3e9ec462d249fef5383617e59..7b14a76cbae816d2162e750ff7cf8bca73a8d71c 100644 (file)
@@ -1256,6 +1256,15 @@ dataiterator_jump_to_repo(Dataiterator *di, Repo *repo)
   di->state = di_enterrepo;
 }
 
+int
+dataiterator_match(Dataiterator *di, int flags, const void *vmatch)
+{
+  Datamatcher matcher = di->matcher;
+  matcher.flags = flags;
+  matcher.match = (void *)vmatch;
+  return datamatcher_match(&matcher, di->data, di->key, &di->kv);
+}
+
 #else
 
 /************************************************************************