From 4d3c559e17352a65586a77cbbea588fb8ad5e17a Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 25 Nov 2009 17:21:44 +0100 Subject: [PATCH] =?utf8?q?src/routeros=5Fapi.h:=20Add=20=C2=ABextern=20"C"?= =?utf8?q?=C2=BB=20for=20C++=20programs.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/routeros_api.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/routeros_api.h b/src/routeros_api.h index bdd1839..84e5600 100644 --- a/src/routeros_api.h +++ b/src/routeros_api.h @@ -24,6 +24,10 @@ #define ROUTEROS_API_PORT "8728" +#ifdef __cplusplus +extern "C" { +#endif + struct ros_connection_s; typedef struct ros_connection_s ros_connection_t; @@ -63,6 +67,10 @@ const char *ros_reply_param_val_by_index (const ros_reply_t *r, unsigned int index); const char *ros_reply_param_val_by_key (const ros_reply_t *r, const char *key); +#ifdef __cplusplus +} +#endif + #endif /* ROUTEROS_API_H */ /* vim: set ts=2 sw=2 noet fdm=marker : */ -- 2.11.0