Commit graph

119 commits

Author SHA1 Message Date
Felix Fietkau
7864896a1b add support for deferring a reply to a method invoke call 2012-10-01 14:09:19 +02:00
John Crispin
0f793d3a45 lua: propagate incoming message to method callback inside the lua context
Signed-off-by: John Crispin <blogic@openwrt.org>
2012-09-29 01:41:09 +02:00
Felix Fietkau
1e3220d9df cli: add array and table types to method signature dump 2012-09-28 23:10:23 +02:00
John Crispin
73380e45c9 add lua binding test scripts
Signed-off-by: John Crispin <blogic@openwrt.org>
2012-09-27 14:05:51 +02:00
Felix Fietkau
c382792d98 lua: add support for registering methods
Signed-off-by: John Crispin <blogic@openwrt.org>
2012-09-27 14:00:49 +02:00
Felix Fietkau
0371c8f5fd lua: add uloop support 2012-09-27 13:59:47 +02:00
John Crispin
115b7a8c73 lua: allow building the lua binding with vanilla lua
Signed-off-by: John Crispin <blogic@openwrt.org>
2012-09-27 13:49:45 +02:00
Felix Fietkau
a62e2f8c15 libubus: fix multiple inclusions of libubus.h 2012-06-01 10:09:14 +02:00
Felix Fietkau
34161692fa libubus: add support for reconnecting (and re-publishing objects) 2012-05-29 00:56:37 +02:00
Felix Fietkau
df69022beb enable -Wmissing-declarations 2012-05-29 00:41:39 +02:00
Felix Fietkau
960c342b4a lua: add a prototype for luaopen_ubus so that -Wmissing-declarations can be enabled 2012-05-29 00:41:27 +02:00
Felix Fietkau
95062c1ef7 make a few functions static 2012-05-29 00:40:50 +02:00
Felix Fietkau
d01ae223be ubus-example: use object notification, add a simple client mode 2012-05-19 21:09:50 +02:00
Felix Fietkau
c6f7054515 ubusd: add support for watching objects to get notified when they go away 2012-05-19 21:09:35 +02:00
Felix Fietkau
9f911f14bf ubusd: allow registration of anonymous objects with type 2012-05-19 16:21:22 +02:00
Felix Fietkau
c0c06ec7ea uloop: do not use ULOOP_EDGE_TRIGGER for the blocking socket, it can miss some events due to races 2012-05-18 22:32:25 +02:00
Felix Fietkau
a204ae358b lua: put LUAPATH in quotes to prevent weird error messages when it is unset 2012-05-06 10:25:46 +02:00
Felix Fietkau
f60010a424 cli: prevent indenting if simple output is requested 2012-05-06 10:22:29 +02:00
Jo-Philipp Wich
25b9b4b827 implement Lua binding 2012-05-05 22:37:46 +02:00
Felix Fietkau
3706552c1c fix unused but set variable 2011-10-28 22:21:52 +02:00
Felix Fietkau
8e5a6af1db libubus: limit stack depth for incoming invoke requests 2011-10-27 14:03:19 +02:00
Felix Fietkau
f07b02b560 libubus: fix recursive synchrnonous invoke commands 2011-10-27 13:46:05 +02:00
Felix Fietkau
1ad3493658 fix invalid message reuse in ubus_process_invoke 2011-10-10 16:47:49 +02:00
Felix Fietkau
f86ec180c0 ubusd: fix a use after free bug 2011-09-14 17:09:19 +02:00
Felix Fietkau
7c59d4069c make the socket non-blocking, explicitly wait for data using poll() 2011-09-09 17:53:22 +02:00
Felix Fietkau
d9211374c5 add -v 2011-09-05 04:00:20 +02:00
Felix Fietkau
cc82d89995 add an error message for "unknown error" 2011-09-05 03:20:07 +02:00
Felix Fietkau
24505f172a add an error code for "operation not supported" 2011-09-05 03:16:59 +02:00
Felix Fietkau
52ce4320ed remove an unused-but-set variable 2011-07-30 17:57:17 +02:00
Felix Fietkau
460672c6da cli: indent call result data 2011-07-18 13:08:53 +02:00
Felix Fietkau
42bc27ae38 add copyright/license information 2011-06-17 16:35:11 +02:00
Felix Fietkau
74eddc472d add support for a const void * key in avl 2011-04-13 20:13:42 +02:00
Felix Fietkau
e49b34f912 simplify object signatures by reusing the parser policy to define them 2011-03-27 20:03:18 +02:00
Felix Fietkau
7cd569acc8 suppress stderr output with -S 2011-03-27 18:28:47 +02:00
Felix Fietkau
6facb81409 improve output for scripts 2011-03-27 17:41:33 +02:00
Felix Fietkau
df1af726e2 do not reverse method sorting order 2011-03-27 01:39:14 +01:00
Felix Fietkau
155f8059cc use int8 as boolean 2011-03-27 01:05:30 +01:00
Felix Fietkau
6cf4326987 change the ubus signature type to int instead of the enum, as there are possible values not covered by the enum 2011-02-26 17:26:21 +01:00
Felix Fietkau
4a3bb66cd4 change minimum cmake version to 2.6 2011-02-12 23:57:35 +01:00
Felix Fietkau
6bbd9dad9d remove array from the signature 2011-02-11 04:18:26 +01:00
Felix Fietkau
f2ee96c51d add support for timeouts on synchronous requests 2011-02-11 02:40:39 +01:00
Felix Fietkau
fb45e383c2 remove separate catch all list, always require a pattern argument for registering events, even if it is just * 2011-02-11 01:21:07 +01:00
Felix Fietkau
756d284a0a add writev_retry to avoid incomplete writes 2011-02-11 00:36:10 +01:00
Felix Fietkau
086c67f399 fix initial object event sequence number 2011-02-10 01:37:32 +01:00
Felix Fietkau
0611a9248c add notifications for registered/unregistered objects with path 2011-02-10 01:31:52 +01:00
Felix Fietkau
f15c7368ca move event message formatting into a callback 2011-02-10 01:21:29 +01:00
Felix Fietkau
2378e900ab split event sending from event forwarding 2011-02-10 01:08:59 +01:00
Felix Fietkau
ef978a8ea0 libubus: add an inline function for socket event handling 2011-02-07 20:43:43 +01:00
Felix Fietkau
17cdc0f4f6 suppress -rdynamic when linking ubus 2011-02-07 18:54:27 +01:00
Felix Fietkau
66b6fdeace add missing include 2011-02-07 16:43:30 +01:00