Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | libubus-req: add data_cb callback handling for ubus notifications | John Crispin | 2017-11-06 | 1 | -0/+3 |
| | | | | Signed-off-by: John Crispin <john@phrozen.org> | ||||
* | libubus: do not modify uloop_cancelled | Felix Fietkau | 2017-02-03 | 1 | -0/+1 |
| | | | | | | | | | | | | uloop_cancelled was used for two purposes within ubus_complete_request: - interrupting recursive requests on SIGINT/SIGTERM - breaking out of the poll loop in a recursive request that completed Saving/restorung uloop_cancelled was buggy, leading to SIGTERM not being processed properly. Simplify the logic by using a separate field for internal use Signed-off-by: Felix Fietkau <nbd@nbd.name> | ||||
* | libubus: reduce code duplication, fix indentation | Felix Fietkau | 2016-12-24 | 1 | -8/+13 |
| | | | | Signed-off-by: Felix Fietkau <nbd@nbd.name> | ||||
* | Allow sending a fd along a ubus_request | amine ahd | 2016-12-24 | 1 | -0/+19 |
| | | | | Signed-off-by: amine.ahd <amine.ahd@gmail.com> | ||||
* | libubus.h: marking unused variables | Emanuel Taube | 2016-02-22 | 1 | -0/+2 |
| | | | | | | | Inform the compiler that the variables are not gona be used to avoid compiler warnings. Signed-off-by: Emanuel Taube <emanuel.taube@gmail.com> | ||||
* | libubus.h: add ubus_auto_shutdown() | Ben Kelly | 2016-02-07 | 1 | -0/+6 |
| | | | | | | | | Add ubus_auto_shutdown function, which ensures any pending uloop_timer is cancelled before calling ubus_shutdown on the context. This avoids a condition where ubus_shutdown() is called during ubus_auto_connect attempting a reconnection. Signed-off-by: Ben Kelly <ben@benjii.net> | ||||
* | libubus: add monitor support | Felix Fietkau | 2015-11-19 | 1 | -0/+13 |
| | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> | ||||
* | add acl code | John Crispin | 2015-06-18 | 1 | -0/+24 |
| | | | | Signed-off-by: John Crispin <blogic@openwrt.org> | ||||
* | add optional tags to the ubus methos struct and the wrapper macros | John Crispin | 2015-06-18 | 1 | -7/+19 |
| | | | | Signed-off-by: John Crispin <blogic@openwrt.org> | ||||
* | libubus: expose ubus_connect_ctx() in public API | Delio Brignoli | 2014-10-14 | 1 | -0/+6 |
| | | | | | | | | | ubus_connect_ctx() is equivalent to ubus_connect() but accepts a pointer to a previously allocated ubus_context struct. ubus_shutdown() is made available as an alternative to ubus_free() to clean up contexts initialised by ubus_connect_ctx(). Signed-off-by: Delio Brignoli <dbrignoli@audioscience.com> | ||||
* | libubus: move ubus_msghdr_data to libubus-internal.h | Felix Fietkau | 2014-07-03 | 1 | -7/+0 |
| | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> | ||||
* | libubus: add logic to reduce msgbuf data size after 16 small messages | Alexandru Ardelean | 2014-07-03 | 1 | -0/+1 |
| | |||||
* | ubus: increase message size limit and make it configurable at build-time | Alexandru Ardelean | 2014-07-03 | 1 | -0/+1 |
| | |||||
* | libubus: refactor ubus_context msgbuf data to be dynamically allocated | Alexandru Ardelean | 2014-07-03 | 1 | -5/+8 |
| | |||||
* | libubus: always defer processing incoming invoke/unsubscribe/notify if there ↵ | Felix Fietkau | 2014-06-24 | 1 | -0/+1 |
| | | | | | | | | | is a request pending This fixes recursion problems on config reload in netifd and simplifies application handling of requests Signed-off-by: Felix Fietkau <nbd@openwrt.org> | ||||
* | libubus: add support for defining a policy mask | Felix Fietkau | 2014-04-27 | 1 | -8/+16 |
| | | | | | | | This allows sharing a policy array across methods, but masking out unused entries for individual methods. Signed-off-by: Felix Fietkau <nbd@openwrt.org> | ||||
* | libubus: implement file descriptor passing support | Felix Fietkau | 2014-02-18 | 1 | -1/+12 |
| | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> | ||||
* | add auto (re)connect logic to libubus | John Crispin | 2014-01-22 | 1 | -0/+9 |
| | | | | Signed-off-by: John Crispin <blogic@openwrt.org> | ||||
* | libubus: pull the variable length data array out of struct ubus_msghdr to ↵ | Felix Fietkau | 2013-10-29 | 1 | -0/+6 |
| | | | | | | fix builds with clang Signed-off-by: Felix Fietkau <nbd@openwrt.org> | ||||
* | libubus: add ubus_unregister_subscriber wrapper | Felix Fietkau | 2013-03-17 | 1 | -0/+7 |
| | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> | ||||
* | libubus: add UBUS_METHOD_NOARG | Felix Fietkau | 2013-03-06 | 1 | -0/+6 |
| | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> | ||||
* | libubus: fix data type of request sequence counter. fixes hang after ~64K ↵ | Felix Fietkau | 2012-12-15 | 1 | -3/+3 |
| | | | | | | requests Signed-off-by: Felix Fietkau <nbd@openwrt.org> | ||||
* | libubus: implement notify handling | Felix Fietkau | 2012-12-15 | 1 | -3/+29 |
| | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> | ||||
* | ubus: add notification for subscribers present/gone | Felix Fietkau | 2012-12-14 | 1 | -0/+5 |
| | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> | ||||
* | watch add/remove -> subscribe/unsubscribe: | Felix Fietkau | 2012-12-13 | 1 | -11/+10 |
| | | | | | | | rename the ADD_WATCH/REMOVE_WATCH messages to SUBSCRIBE/UNSUBSCRIBE and change the message format and libubus API in preparation for adding object notifications Signed-off-by: Felix Fietkau <nbd@openwrt.org> | ||||
* | add support for deferring a reply to a method invoke call | Felix Fietkau | 2012-10-01 | 1 | -0/+12 |
| | |||||
* | libubus: fix multiple inclusions of libubus.h | Felix Fietkau | 2012-06-01 | 1 | -0/+5 |
| | |||||
* | libubus: add support for reconnecting (and re-publishing objects) | Felix Fietkau | 2012-05-29 | 1 | -0/+1 |
| | |||||
* | ubusd: add support for watching objects to get notified when they go away | Felix Fietkau | 2012-05-19 | 1 | -0/+16 |
| | |||||
* | uloop: do not use ULOOP_EDGE_TRIGGER for the blocking socket, it can miss ↵ | Felix Fietkau | 2012-05-18 | 1 | -1/+1 |
| | | | | some events due to races | ||||
* | libubus: limit stack depth for incoming invoke requests | Felix Fietkau | 2011-10-27 | 1 | -0/+2 |
| | |||||
* | add copyright/license information | Felix Fietkau | 2011-06-17 | 1 | -0/+13 |
| | |||||
* | simplify object signatures by reusing the parser policy to define them | Felix Fietkau | 2011-03-27 | 1 | -25/+18 |
| | |||||
* | change the ubus signature type to int instead of the enum, as there are ↵ | Felix Fietkau | 2011-02-26 | 1 | -1/+1 |
| | | | | possible values not covered by the enum | ||||
* | add support for timeouts on synchronous requests | Felix Fietkau | 2011-02-11 | 1 | -3/+5 |
| | |||||
* | libubus: add an inline function for socket event handling | Felix Fietkau | 2011-02-07 | 1 | -0/+6 |
| | |||||
* | add sender side length checks | Felix Fietkau | 2011-02-07 | 1 | -2/+2 |
| | |||||
* | reorder a few functions in libubus.h | Felix Fietkau | 2011-02-07 | 1 | -6/+7 |
| | |||||
* | fix max message length handling - exclude the header | Felix Fietkau | 2011-02-07 | 1 | -1/+1 |
| | |||||
* | add code for sending events and fix the code for receiving events | Felix Fietkau | 2011-02-07 | 1 | -0/+3 |
| | |||||
* | add a wrapper function for unregistering an event handler | Felix Fietkau | 2011-02-06 | 1 | -0/+6 |
| | |||||
* | add ubus_remove_object to libubus | Felix Fietkau | 2011-02-06 | 1 | -0/+3 |
| | |||||
* | rename publish to add_object | Felix Fietkau | 2011-02-06 | 1 | -1/+1 |
| | |||||
* | implement code for receiving events | Felix Fietkau | 2011-02-05 | 1 | -1/+11 |
| | |||||
* | add functionality for registering anonymous objects as event listeners | Felix Fietkau | 2011-02-05 | 1 | -0/+4 |
| | |||||
* | add an inline function to add the ubus socket to uloop | Felix Fietkau | 2011-01-31 | 1 | -0/+5 |
| | |||||
* | remove an obsolete define | Felix Fietkau | 2011-01-31 | 1 | -1/+0 |
| | |||||
* | make ubus_parse_msg static | Felix Fietkau | 2011-01-31 | 1 | -4/+0 |
| | |||||
* | make ubus_start_request static | Felix Fietkau | 2011-01-31 | 1 | -4/+0 |
| | |||||
* | libubus: add generic lookup code | Felix Fietkau | 2011-01-31 | 1 | -0/+18 |
| |