# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1249937577 25200
# Node ID aa8fb78cb7fc77496f962e80b2ff2468f91a6625
# Parent 2de7d9bdb9af3414ddc01f28d7a007d6c3d19bbc
Add structure to hold info about new resources to be added to resource pools
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r 2de7d9bdb9af -r aa8fb78cb7fc libxkutil/pool_parsing.h
--- a/libxkutil/pool_parsing.h Fri Aug 07 15:53:57 2009 -0700
+++ b/libxkutil/pool_parsing.h Mon Aug 10 13:52:57 2009 -0700
@@ -64,6 +64,24 @@
char *id;
};
+struct storage_vol {
+ enum {VOL_FORMAT_UNKNOWN,
+ VOL_FORMAT_RAW} format_type;
+ char *vol_name;
+ char *path;
+ uint16_t alloc;
+ uint16_t cap;
+ char *cap_units;
+};
+
+struct virt_pool_res {
+ uint16_t type;
+ union {
+ struct storage_vol storage_vol;
+ } res;
+ char *pool_id;
+};
+
void cleanup_virt_pool(struct virt_pool **pool);
int get_pool_from_xml(const char *xml, struct virt_pool *pool, int type);