projects
/
routeros-api.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
822040c
)
src/routeros_api.h: Add «extern "C"» for C++ programs.
author
Florian Forster
<octo@verplant.org>
Wed, 25 Nov 2009 16:21:44 +0000
(17:21 +0100)
committer
Florian Forster
<octo@verplant.org>
Wed, 25 Nov 2009 16:21:44 +0000
(17:21 +0100)
src/routeros_api.h
patch
|
blob
|
history
diff --git
a/src/routeros_api.h
b/src/routeros_api.h
index
bdd1839
..
84e5600
100644
(file)
--- 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 : */