Use extern "C" { ... } if using libubus.h in a C++ project.
Signed-off-by: Peter Stadler <peter.stadler@student.uibk.ac.at>
#ifndef __LIBUBUS_H
#define __LIBUBUS_H
#ifndef __LIBUBUS_H
#define __LIBUBUS_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <libubox/avl.h>
#include <libubox/list.h>
#include <libubox/blobmsg.h>
#include <libubox/avl.h>
#include <libubox/list.h>
#include <libubox/blobmsg.h>
return ubus_remove_object(ctx, &ev->obj);
}
return ubus_remove_object(ctx, &ev->obj);
}
+#ifdef __cplusplus
+}
+#endif
+