summaryrefslogtreecommitdiffstats
path: root/src/guestfs.h
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-04-20 16:52:13 +0100
committerRichard Jones <rjones@redhat.com>2009-04-20 16:52:13 +0100
commit6397feeb74af9c750b0430bc88f0855b1f7f1d28 (patch)
treefb0a42a85c175dff39c9ffce51972af746713fee /src/guestfs.h
parente44128bf547024509bc064e728fb269504486659 (diff)
downloadlibguestfs-6397feeb74af9c750b0430bc88f0855b1f7f1d28.tar.gz
libguestfs-6397feeb74af9c750b0430bc88f0855b1f7f1d28.tar.xz
libguestfs-6397feeb74af9c750b0430bc88f0855b1f7f1d28.zip
Include the __cplusplus header magic so API really callable from C++.
Diffstat (limited to 'src/guestfs.h')
-rw-r--r--src/guestfs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/guestfs.h b/src/guestfs.h
index 823fefe8..b5ed0f78 100644
--- a/src/guestfs.h
+++ b/src/guestfs.h
@@ -26,6 +26,10 @@
#include <rpc/xdr.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct guestfs_h guestfs_h;
typedef struct guestfs_main_loop guestfs_main_loop;
@@ -120,4 +124,8 @@ extern guestfs_main_loop *guestfs_get_default_main_loop (void);
extern guestfs_main_loop *guestfs_create_main_loop (void);
extern void guestfs_free_main_loop (guestfs_main_loop *);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* GUESTFS_H_ */