Hi,
the patch at the end allows buidling c++ applications against netcf.
Otherwise, this is needed in the C++ code
extern "C" {
#include <netcf.h>
}
Thanks for this library!
Aleix
---------------
--- a/src/netcf.h
+++ b/src/netcf.h
@@ -81,6 +81,9 @@ typedef enum {
NETCF_IFACE_ACTIVE = 2, /* match up interfaces */
} netcf_if_flag_t;
+#ifdef __cplusplus
+extern "C" {
+#endif
/*
* Initialize netcf. This function must be called before any other netcf
@@ -223,6 +226,11 @@ void ncf_if_free(struct netcf_if *);
* next call to another function in this API.
*/
int ncf_error(struct netcf *, const char **errmsg, const char **details);
+
+#ifdef __cplusplus
+}
+#endif
+
#endif