[prev in list] [next in list] [prev in thread] [next in thread]
List: libverto-commits
Subject: [libverto] add extern "C" to headers
From: npmccallum () fedoraproject ! org (Nathaniel McCallum)
Date: 2011-11-16 19:38:33
Message-ID: 20111116193834.0263F120496 () lists ! fedorahosted ! org
[Download RAW message or body]
commit ac362f5f7cf738d7711282ef45022bdf314b28ba
Author: Nathaniel McCallum <npmccallum at redhat.com>
Date: Wed Nov 16 14:38:03 2011 -0500
add extern "C" to headers
src/verto-glib.h | 8 ++++++++
src/verto-libev.h | 8 ++++++++
src/verto-libevent.h | 8 ++++++++
src/verto-tevent.h | 8 ++++++++
src/verto.h | 8 ++++++++
5 files changed, 40 insertions(+), 0 deletions(-)
---
diff --git a/src/verto-glib.h b/src/verto-glib.h
index 0ce8000..0a8ec2e 100644
--- a/src/verto-glib.h
+++ b/src/verto-glib.h
@@ -28,6 +28,11 @@
#include <verto.h>
#include <glib.h>
+#ifdef __cplusplus
+extern "C"
+{
+#endif /* __cplusplus */
+
verto_ctx *
verto_new_glib(void);
@@ -43,4 +48,7 @@ verto_default_glib(void);
verto_ctx *
verto_convert_glib(GMainContext *mc, GMainLoop *ml);
+#ifdef __cplusplus
+} /* extern "C" */
+#endif /* __cplusplus */
#endif /* VERTO_GLIB_H_ */
diff --git a/src/verto-libev.h b/src/verto-libev.h
index 497471f..d7fdea5 100644
--- a/src/verto-libev.h
+++ b/src/verto-libev.h
@@ -28,6 +28,11 @@
#include <verto.h>
#include <ev.h>
+#ifdef __cplusplus
+extern "C"
+{
+#endif /* __cplusplus */
+
verto_ctx *
verto_new_libev(void);
@@ -37,4 +42,7 @@ verto_default_libev(void);
verto_ctx *
verto_convert_libev(struct ev_loop* loop);
+#ifdef __cplusplus
+} /* extern "C" */
+#endif /* __cplusplus */
#endif /* VERTO_LIBEV_H_ */
diff --git a/src/verto-libevent.h b/src/verto-libevent.h
index e21a6e4..ff87b4d 100644
--- a/src/verto-libevent.h
+++ b/src/verto-libevent.h
@@ -28,6 +28,11 @@
#include <verto.h>
#include <event2/event.h>
+#ifdef __cplusplus
+extern "C"
+{
+#endif /* __cplusplus */
+
verto_ctx *
verto_new_libevent(void);
@@ -37,4 +42,7 @@ verto_default_libevent(void);
verto_ctx *
verto_convert_libevent(struct event_base *ebase);
+#ifdef __cplusplus
+} /* extern "C" */
+#endif /* __cplusplus */
#endif /* VERTO_LIBEVENT_H_ */
diff --git a/src/verto-tevent.h b/src/verto-tevent.h
index aa61694..36a3041 100644
--- a/src/verto-tevent.h
+++ b/src/verto-tevent.h
@@ -28,6 +28,11 @@
#include <verto.h>
#include <tevent.h>
+#ifdef __cplusplus
+extern "C"
+{
+#endif /* __cplusplus */
+
verto_ctx *
verto_new_tevent(void);
@@ -37,4 +42,7 @@ verto_default_tevent(void);
verto_ctx *
verto_convert_tevent(struct tevent_context *context);
+#ifdef __cplusplus
+} /* extern "C" */
+#endif /* __cplusplus */
#endif /* VERTO_TEVENT_H_ */
diff --git a/src/verto.h b/src/verto.h
index be6545a..c659c2e 100644
--- a/src/verto.h
+++ b/src/verto.h
@@ -39,6 +39,11 @@ typedef int verto_proc_status;
#define VERTO_SIG_IGN ((verto_callback *) 1)
+#ifdef __cplusplus
+extern "C"
+{
+#endif /* __cplusplus */
+
typedef struct verto_ctx verto_ctx;
typedef struct verto_ev verto_ev;
@@ -499,4 +504,7 @@ verto_del(verto_ev *ev);
verto_ev_type
verto_get_supported_types(verto_ctx *ctx);
+#ifdef __cplusplus
+} /* extern "C" */
+#endif /* __cplusplus */
#endif /* VERTO_H_ */
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic