1.1 --- a/librazor/razor-internal.h Fri Jun 12 16:59:11 2009 +0100
1.2 +++ b/librazor/razor-internal.h Fri Jul 03 18:02:33 2009 +0100
1.3 @@ -61,6 +61,7 @@
1.4 #define RAZOR_PROPERTIES "properties"
1.5 #define RAZOR_PACKAGE_POOL "package_pool"
1.6 #define RAZOR_PROPERTY_POOL "property_pool"
1.7 +#define RAZOR_PREFIX_POOL "prefix_pool"
1.8
1.9 #define RAZOR_DETAILS_STRING_POOL "details_string_pool"
1.10
1.11 @@ -84,6 +85,7 @@
1.12 uint32_t license;
1.13 struct list_head properties;
1.14 struct list_head files;
1.15 + struct list_head install_prefixes;
1.16 struct razor_script preun;
1.17 struct razor_script postun;
1.18 };
1.19 @@ -113,6 +115,7 @@
1.20 struct array package_pool;
1.21 struct array property_pool;
1.22 struct array file_pool;
1.23 + struct array prefix_pool;
1.24 struct array file_string_pool;
1.25 struct array details_string_pool;
1.26
1.27 @@ -147,6 +150,7 @@
1.28 struct array properties;
1.29 struct array files;
1.30 struct array file_requires;
1.31 + struct array install_prefixes;
1.32 };
1.33
1.34 struct razor_package_iterator {
1.35 @@ -220,4 +224,16 @@
1.36 razor_qsort_with_data(void *base, size_t nelem, size_t size,
1.37 razor_compare_with_data_func_t compare, void *data);
1.38
1.39 +struct environment {
1.40 + int is_set;
1.41 + struct array vars, string_pool;
1.42 +};
1.43 +
1.44 +void environment_init(struct environment *env);
1.45 +void environment_add_variable(struct environment *env,
1.46 + const char *variable, const char *value);
1.47 +void environment_set(struct environment *env);
1.48 +void environment_unset(struct environment *env);
1.49 +void environment_release(struct environment *env);
1.50 +
1.51 #endif /* _RAZOR_INTERNAL_H_ */