diff -r 5ebed314390c -r 90b63682fdd7 librazor/razor.h --- a/librazor/razor.h Tue Jul 08 22:02:58 2008 -0400 +++ b/librazor/razor.h Sat Feb 14 11:35:32 2009 +0000 @@ -172,6 +172,14 @@ void razor_property_iterator_destroy(struct razor_property_iterator *pi); +struct razor_file_iterator; +struct razor_file_iterator * +razor_file_iterator_create(struct razor_set *set, + struct razor_package *package); +int razor_file_iterator_next(struct razor_file_iterator *fi, + const char **name); +void razor_file_iterator_destroy(struct razor_file_iterator *fi); + void razor_set_list_files(struct razor_set *set, const char *prefix); void razor_set_list_package_files(struct razor_set *set, struct razor_package *package); @@ -249,9 +257,21 @@ * installing or removing RPM files. **/ +struct razor_relocations; struct razor_rpm; +struct razor_relocations *razor_relocations_create(void); +void razor_relocations_add(struct razor_relocations *relocations, + const char *oldpath, const char *newpath); +void razor_relocations_set_rpm(struct razor_relocations *relocations, + struct razor_rpm *rpm); +const char *razor_relocations_apply(struct razor_relocations *relocations, + const char *path); +void razor_relocations_destroy(struct razor_relocations *relocations); + struct razor_rpm *razor_rpm_open(const char *filename); +void razor_rpm_set_relocations(struct razor_rpm *rpm, + struct razor_relocations *relocations); int razor_rpm_install(struct razor_rpm *rpm, const char *root); int razor_rpm_close(struct razor_rpm *rpm);