diff -r d0aa9e0a6d04 -r 6fa783097ca1 librazor/razor.h --- a/librazor/razor.h Thu Feb 09 20:42:08 2012 +0000 +++ b/librazor/razor.h Sat Feb 11 09:49:58 2012 +0000 @@ -1,7 +1,7 @@ /* * Copyright (C) 2008 Kristian Høgsberg * Copyright (C) 2008 Red Hat, Inc - * Copyright (C) 2009, 2011 J. Ali Harlow + * Copyright (C) 2009, 2011, 2012 J. Ali Harlow * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -349,7 +349,22 @@ enum razor_install_action *action, int *count); +/** + * razor_install_iterator_commit_set + * + * Immediately after razor_install_iterator_next() returns + * RAZOR_INSTALL_ACTION_COMMIT, this function will return the razor_set + * which should be committed. + * + * Returns: a new #razor_set object. + **/ +struct razor_set * +razor_install_iterator_commit_set(struct razor_install_iterator *ii); + void razor_install_iterator_rewind(struct razor_install_iterator *ii); +size_t razor_install_iterator_tell(struct razor_install_iterator *ii); +size_t razor_install_iterator_seek(struct razor_install_iterator *ii, + size_t pos); void razor_install_iterator_destroy(struct razor_install_iterator *ii); /**