librazor/razor.h
changeset 356 d842feb64ecb
parent 316 5ebed314390c
child 359 c9c90315ea24
     1.1 --- a/librazor/razor.h	Tue Jul 08 22:02:58 2008 -0400
     1.2 +++ b/librazor/razor.h	Thu Mar 12 20:52:12 2009 +0000
     1.3 @@ -172,6 +172,14 @@
     1.4  void
     1.5  razor_property_iterator_destroy(struct razor_property_iterator *pi);
     1.6  
     1.7 +struct razor_file_iterator;
     1.8 +struct razor_file_iterator *
     1.9 +razor_file_iterator_create(struct razor_set *set,
    1.10 +			   struct razor_package *package);
    1.11 +int razor_file_iterator_next(struct razor_file_iterator *fi,
    1.12 +			     const char **name);
    1.13 +void razor_file_iterator_destroy(struct razor_file_iterator *fi);
    1.14 +
    1.15  void razor_set_list_files(struct razor_set *set, const char *prefix);
    1.16  void razor_set_list_package_files(struct razor_set *set,
    1.17  				  struct razor_package *package);
    1.18 @@ -249,9 +257,21 @@
    1.19   * installing or removing RPM files.
    1.20   **/
    1.21  
    1.22 +struct razor_relocations;
    1.23  struct razor_rpm;
    1.24  
    1.25 +struct razor_relocations *razor_relocations_create(void);
    1.26 +void razor_relocations_add(struct razor_relocations *relocations,
    1.27 +			   const char *oldpath, const char *newpath);
    1.28 +void razor_relocations_set_rpm(struct razor_relocations *relocations,
    1.29 +			       struct razor_rpm *rpm);
    1.30 +const char *razor_relocations_apply(struct razor_relocations *relocations,
    1.31 +				    const char *path);
    1.32 +void razor_relocations_destroy(struct razor_relocations *relocations);
    1.33 +
    1.34  struct razor_rpm *razor_rpm_open(const char *filename);
    1.35 +void razor_rpm_set_relocations(struct razor_rpm *rpm,
    1.36 +			       struct razor_relocations *relocations);
    1.37  int razor_rpm_install(struct razor_rpm *rpm, const char *root);
    1.38  int razor_rpm_close(struct razor_rpm *rpm);
    1.39