* [lttng-dev] [PATCH lttng-tools] Add extern C to the health-check header
@ 2014-02-06 19:13 Jérémie Galarneau
2014-02-07 3:54 ` Mathieu Desnoyers
2014-02-07 15:16 ` David Goulet
0 siblings, 2 replies; 3+ messages in thread
From: Jérémie Galarneau @ 2014-02-06 19:13 UTC (permalink / raw)
This makes it possible to include health.h in a C++ program.
Signed-off-by: J?r?mie Galarneau <jeremie.galarneau at efficios.com>
---
include/lttng/health.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/include/lttng/health.h b/include/lttng/health.h
index 9960928..9a7a7fc 100644
--- a/include/lttng/health.h
+++ b/include/lttng/health.h
@@ -19,6 +19,10 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct lttng_health;
struct lttng_health_thread;
@@ -124,4 +128,8 @@ int lttng_health_thread_state(const struct lttng_health_thread *thread);
*/
const char *lttng_health_thread_name(const struct lttng_health_thread *thread);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* LTTNG_HEALTH_H */
--
1.8.5.2
^ permalink raw reply [flat|nested] 3+ messages in thread
* [lttng-dev] [PATCH lttng-tools] Add extern C to the health-check header
2014-02-06 19:13 [lttng-dev] [PATCH lttng-tools] Add extern C to the health-check header Jérémie Galarneau
@ 2014-02-07 3:54 ` Mathieu Desnoyers
2014-02-07 15:16 ` David Goulet
1 sibling, 0 replies; 3+ messages in thread
From: Mathieu Desnoyers @ 2014-02-07 3:54 UTC (permalink / raw)
Acked-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>
Thanks,
Mathieu
----- Original Message -----
> From: "J?r?mie Galarneau" <jeremie.galarneau@efficios.com>
> To: lttng-dev at lists.lttng.org
> Sent: Thursday, February 6, 2014 2:13:56 PM
> Subject: [lttng-dev] [PATCH lttng-tools] Add extern C to the health-check header
>
> This makes it possible to include health.h in a C++ program.
>
> Signed-off-by: J?r?mie Galarneau <jeremie.galarneau at efficios.com>
> ---
> include/lttng/health.h | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/include/lttng/health.h b/include/lttng/health.h
> index 9960928..9a7a7fc 100644
> --- a/include/lttng/health.h
> +++ b/include/lttng/health.h
> @@ -19,6 +19,10 @@
> * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
> */
>
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
> struct lttng_health;
> struct lttng_health_thread;
>
> @@ -124,4 +128,8 @@ int lttng_health_thread_state(const struct
> lttng_health_thread *thread);
> */
> const char *lttng_health_thread_name(const struct lttng_health_thread
> *thread);
>
> +#ifdef __cplusplus
> +}
> +#endif
> +
> #endif /* LTTNG_HEALTH_H */
> --
> 1.8.5.2
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>
--
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [lttng-dev] [PATCH lttng-tools] Add extern C to the health-check header
2014-02-06 19:13 [lttng-dev] [PATCH lttng-tools] Add extern C to the health-check header Jérémie Galarneau
2014-02-07 3:54 ` Mathieu Desnoyers
@ 2014-02-07 15:16 ` David Goulet
1 sibling, 0 replies; 3+ messages in thread
From: David Goulet @ 2014-02-07 15:16 UTC (permalink / raw)
Merged!
Upstream and backported in stable-2.4
On 06 Feb (14:13:56), J?r?mie Galarneau wrote:
> This makes it possible to include health.h in a C++ program.
>
> Signed-off-by: J?r?mie Galarneau <jeremie.galarneau at efficios.com>
> ---
> include/lttng/health.h | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/include/lttng/health.h b/include/lttng/health.h
> index 9960928..9a7a7fc 100644
> --- a/include/lttng/health.h
> +++ b/include/lttng/health.h
> @@ -19,6 +19,10 @@
> * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
> */
>
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
> struct lttng_health;
> struct lttng_health_thread;
>
> @@ -124,4 +128,8 @@ int lttng_health_thread_state(const struct lttng_health_thread *thread);
> */
> const char *lttng_health_thread_name(const struct lttng_health_thread *thread);
>
> +#ifdef __cplusplus
> +}
> +#endif
> +
> #endif /* LTTNG_HEALTH_H */
> --
> 1.8.5.2
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 603 bytes
Desc: Digital signature
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20140207/31d07ac2/attachment.pgp>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-02-07 15:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-06 19:13 [lttng-dev] [PATCH lttng-tools] Add extern C to the health-check header Jérémie Galarneau
2014-02-07 3:54 ` Mathieu Desnoyers
2014-02-07 15:16 ` David Goulet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox