X-Git-Url: http://git.archive.openwrt.org/?p=project%2Frpcd.git;a=blobdiff_plain;f=luci2.c;fp=luci2.c;h=276c60db1926cdca4dd34e50b7090aca8e777f2e;hp=27eead5eec430ad0dab3221316e2f5b2fff551f8;hb=11f37e28898b12bf53d8df6272fa28c48d79a96b;hpb=07c2f0a9b1c7f79e81fa8a51cca5ecbe9eaf7293 diff --git a/luci2.c b/luci2.c index 27eead5..276c60d 100644 --- a/luci2.c +++ b/luci2.c @@ -30,10 +30,20 @@ #include #include #include +#include +#include +#include -#include "luci2.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;