summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-05-21 13:30:24 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-05-30 09:39:36 +0200
commit73f5884a591f1e2efef948d108927327a054d97c (patch)
tree81c30d73dbfbc4930644523484493e37e338b224
parent2c7ecdc6ec8f9d9a27aa7e4e82fa2d84fa55fe9b (diff)
libstore: provide function declaration until available upstream
Until the Hurd specific header is available, provide a local declaration of ped_device_new_from_store. * libstore/part.c (ped_device_new_from_store): New declaration.
-rw-r--r--libstore/part.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libstore/part.c b/libstore/part.c
index 56e904eb..60ef6c21 100644
--- a/libstore/part.c
+++ b/libstore/part.c
@@ -26,6 +26,17 @@
#include <parted/parted.h>
/*#include <parted/device_gnu.h>*/
+
+/* XXX Until the Hurd specific header is available, provide the
+ declaration of ped_device_new_from_store here. */
+#warning "Using local declaration of ped_device_new_from_store."
+
+/* Initialize a PedDevice using SOURCE. The SOURCE will NOT be destroyed;
+ the caller created it, it is the caller's responsilbility to free it
+ after it calls ped_device_destory. SOURCE is not registered in Parted's
+ list of devices. */
+PedDevice* ped_device_new_from_store (struct store *source);
+
#include <string.h>
#include <error.h>