projects
/
project
/
rpcd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fold plugin specific headers files into the plugins .c file
[project/rpcd.git]
/
luci2.c
diff --git
a/luci2.c
b/luci2.c
index 27eead5eec430ad0dab3221316e2f5b2fff551f8..276c60db1926cdca4dd34e50b7090aca8e777f2e 100644
(file)
--- a/
luci2.c
+++ b/
luci2.c
@@
-30,10
+30,20
@@
#include <arpa/inet.h>
#include <signal.h>
#include <glob.h>
#include <arpa/inet.h>
#include <signal.h>
#include <glob.h>
+#include <libubox/blobmsg_json.h>
+#include <libubus.h>
+#include <uci.h>
-#include "luci2.h"
#include "plugin.h"
#include "plugin.h"
+/* limit of log size buffer */
+#define RPC_LUCI2_MAX_LOGSIZE (128 * 1024)
+#define RPC_LUCI2_DEF_LOGSIZE (16 * 1024)
+
+/* location of menu definitions */
+#define RPC_LUCI2_MENU_FILES "/usr/share/luci2/menu.d/*.json" /* */
+
+
static const struct rpc_daemon_ops *ops;
static struct blob_buf buf;
static const struct rpc_daemon_ops *ops;
static struct blob_buf buf;