Add compiletime and runtime versioning information.
[routeros-api.git] / src / routeros_api.h
index 558bbf6..7f6956c 100644 (file)
  *   Florian octo Forster <octo at verplant.org>
  **/
 
+#ifndef ROUTEROS_API_H
+#define ROUTEROS_API_H 1
+
+#include <routeros_version.h>
+
 #define ROUTEROS_API_PORT "8728"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct ros_connection_s;
 typedef struct ros_connection_s ros_connection_t;
 
@@ -60,4 +69,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 : */