Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#1948 - libubox and libubus in C++ code #6856

Open
openwrt-bot opened this issue Nov 13, 2018 · 0 comments
Open

FS#1948 - libubox and libubus in C++ code #6856

openwrt-bot opened this issue Nov 13, 2018 · 0 comments
Labels

Comments

@openwrt-bot
Copy link

@openwrt-bot openwrt-bot commented Nov 13, 2018

zokl:

Hello,

we try to develop UBUS and UCI application in C++. For now we are not able to compile our applications without patching ubus and libubox in the following way.

[develict@DCompiler ~]$ tmux att -t 8 --- a/libubus.h +++ b/libubus.h @@ -14,6 +14,10 @@ #ifndef __LIBUBUS_H #define __LIBUBUS_H

+#ifdef _cplusplus
+extern "C" {
+#endif
+
#include <libubox/avl.h>
#include <libubox/list.h>
#include <libubox/blobmsg.h>
@@ -414,4 +418,8 @@ static inline int ubus_unregister_event

return ubus_remove_object(ctx, &ev->obj);
}

+#ifdef __cplusplus
+}
+#endif
+
#endif

Is it possible to use this libraries without its patching?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant