- 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 197e53c..628abfd 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 da3cea1..7b14a76 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
 
 /************************************************************************