diff options
author | Michael Schroeder <mls@suse.de> | 2011-03-01 17:10:30 +0100 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2011-03-01 17:10:30 +0100 |
commit | dce83c6b343cc51626c1e3f726d73f807d8af4c3 (patch) | |
tree | 6da0e225abdbb2f5af6e0245f38c4b788340d66b /src/repodata.c | |
parent | 172201e5e2f1a3880a4cd8324da51d92c5547b30 (diff) | |
download | libsolv-dce83c6b343cc51626c1e3f726d73f807d8af4c3.tar.gz libsolv-dce83c6b343cc51626c1e3f726d73f807d8af4c3.tar.bz2 libsolv-dce83c6b343cc51626c1e3f726d73f807d8af4c3.zip |
- add repodata_empty() function
Diffstat (limited to 'src/repodata.c')
-rw-r--r-- | src/repodata.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/repodata.c b/src/repodata.c index e1cbb99..958152d 100644 --- a/src/repodata.c +++ b/src/repodata.c @@ -120,6 +120,17 @@ repodata_free(Repodata *data) repo->nrepodata--; } +void +repodata_empty(Repodata *data, int localpool) +{ + void (*loadcallback)(Repodata *) = data->loadcallback; + int state = data->state; + repodata_freedata(data); + repodata_initdata(data, data->repo, localpool); + data->state = state; + data->loadcallback = loadcallback; +} + /*************************************************************** * key pool management |