git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e44128b
)
Include the __cplusplus header magic so API really callable from C++.
author
Richard Jones
<rjones@redhat.com>
Mon, 20 Apr 2009 15:52:13 +0000
(16:52 +0100)
committer
Richard Jones
<rjones@redhat.com>
Mon, 20 Apr 2009 15:52:13 +0000
(16:52 +0100)
src/guestfs.h
patch
|
blob
|
history
diff --git
a/src/guestfs.h
b/src/guestfs.h
index
823fefe
..
b5ed0f7
100644
(file)
--- 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_ */