diff -r f8c27fe9fe63 -r 6e93e5485947 librazor/razor-internal.h --- a/librazor/razor-internal.h Fri Jun 12 16:59:11 2009 +0100 +++ b/librazor/razor-internal.h Fri Jul 03 18:02:33 2009 +0100 @@ -61,6 +61,7 @@ #define RAZOR_PROPERTIES "properties" #define RAZOR_PACKAGE_POOL "package_pool" #define RAZOR_PROPERTY_POOL "property_pool" +#define RAZOR_PREFIX_POOL "prefix_pool" #define RAZOR_DETAILS_STRING_POOL "details_string_pool" @@ -84,6 +85,7 @@ uint32_t license; struct list_head properties; struct list_head files; + struct list_head install_prefixes; struct razor_script preun; struct razor_script postun; }; @@ -113,6 +115,7 @@ struct array package_pool; struct array property_pool; struct array file_pool; + struct array prefix_pool; struct array file_string_pool; struct array details_string_pool; @@ -147,6 +150,7 @@ struct array properties; struct array files; struct array file_requires; + struct array install_prefixes; }; struct razor_package_iterator { @@ -220,4 +224,16 @@ razor_qsort_with_data(void *base, size_t nelem, size_t size, razor_compare_with_data_func_t compare, void *data); +struct environment { + int is_set; + struct array vars, string_pool; +}; + +void environment_init(struct environment *env); +void environment_add_variable(struct environment *env, + const char *variable, const char *value); +void environment_set(struct environment *env); +void environment_unset(struct environment *env); +void environment_release(struct environment *env); + #endif /* _RAZOR_INTERNAL_H_ */