summaryrefslogtreecommitdiff
path: root/libubus.h
Commit message (Collapse)AuthorAgeFilesLines
* libubus-req: add data_cb callback handling for ubus notificationsJohn Crispin2017-11-061-0/+3
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* libubus: do not modify uloop_cancelledFelix Fietkau2017-02-031-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 indentationFelix Fietkau2016-12-241-8/+13
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* Allow sending a fd along a ubus_requestamine ahd2016-12-241-0/+19
| | | | Signed-off-by: amine.ahd <amine.ahd@gmail.com>
* libubus.h: marking unused variablesEmanuel Taube2016-02-221-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 Kelly2016-02-071-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 supportFelix Fietkau2015-11-191-0/+13
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* add acl codeJohn Crispin2015-06-181-0/+24
| | | | Signed-off-by: John Crispin <blogic@openwrt.org>
* add optional tags to the ubus methos struct and the wrapper macrosJohn Crispin2015-06-181-7/+19
| | | | Signed-off-by: John Crispin <blogic@openwrt.org>
* libubus: expose ubus_connect_ctx() in public APIDelio Brignoli2014-10-141-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.hFelix Fietkau2014-07-031-7/+0
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* libubus: add logic to reduce msgbuf data size after 16 small messagesAlexandru Ardelean2014-07-031-0/+1
|
* ubus: increase message size limit and make it configurable at build-timeAlexandru Ardelean2014-07-031-0/+1
|
* libubus: refactor ubus_context msgbuf data to be dynamically allocatedAlexandru Ardelean2014-07-031-5/+8
|
* libubus: always defer processing incoming invoke/unsubscribe/notify if there ↵Felix Fietkau2014-06-241-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 maskFelix Fietkau2014-04-271-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 supportFelix Fietkau2014-02-181-1/+12
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* add auto (re)connect logic to libubusJohn Crispin2014-01-221-0/+9
| | | | Signed-off-by: John Crispin <blogic@openwrt.org>
* libubus: pull the variable length data array out of struct ubus_msghdr to ↵Felix Fietkau2013-10-291-0/+6
| | | | | | fix builds with clang Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* libubus: add ubus_unregister_subscriber wrapperFelix Fietkau2013-03-171-0/+7
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* libubus: add UBUS_METHOD_NOARGFelix Fietkau2013-03-061-0/+6
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* libubus: fix data type of request sequence counter. fixes hang after ~64K ↵Felix Fietkau2012-12-151-3/+3
| | | | | | requests Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* libubus: implement notify handlingFelix Fietkau2012-12-151-3/+29
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* ubus: add notification for subscribers present/goneFelix Fietkau2012-12-141-0/+5
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* watch add/remove -> subscribe/unsubscribe:Felix Fietkau2012-12-131-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 callFelix Fietkau2012-10-011-0/+12
|
* libubus: fix multiple inclusions of libubus.hFelix Fietkau2012-06-011-0/+5
|
* libubus: add support for reconnecting (and re-publishing objects)Felix Fietkau2012-05-291-0/+1
|
* ubusd: add support for watching objects to get notified when they go awayFelix Fietkau2012-05-191-0/+16
|
* uloop: do not use ULOOP_EDGE_TRIGGER for the blocking socket, it can miss ↵Felix Fietkau2012-05-181-1/+1
| | | | some events due to races
* libubus: limit stack depth for incoming invoke requestsFelix Fietkau2011-10-271-0/+2
|
* add copyright/license informationFelix Fietkau2011-06-171-0/+13
|
* simplify object signatures by reusing the parser policy to define themFelix Fietkau2011-03-271-25/+18
|
* change the ubus signature type to int instead of the enum, as there are ↵Felix Fietkau2011-02-261-1/+1
| | | | possible values not covered by the enum
* add support for timeouts on synchronous requestsFelix Fietkau2011-02-111-3/+5
|
* libubus: add an inline function for socket event handlingFelix Fietkau2011-02-071-0/+6
|
* add sender side length checksFelix Fietkau2011-02-071-2/+2
|
* reorder a few functions in libubus.hFelix Fietkau2011-02-071-6/+7
|
* fix max message length handling - exclude the headerFelix Fietkau2011-02-071-1/+1
|
* add code for sending events and fix the code for receiving eventsFelix Fietkau2011-02-071-0/+3
|
* add a wrapper function for unregistering an event handlerFelix Fietkau2011-02-061-0/+6
|
* add ubus_remove_object to libubusFelix Fietkau2011-02-061-0/+3
|
* rename publish to add_objectFelix Fietkau2011-02-061-1/+1
|
* implement code for receiving eventsFelix Fietkau2011-02-051-1/+11
|
* add functionality for registering anonymous objects as event listenersFelix Fietkau2011-02-051-0/+4
|
* add an inline function to add the ubus socket to uloopFelix Fietkau2011-01-311-0/+5
|
* remove an obsolete defineFelix Fietkau2011-01-311-1/+0
|
* make ubus_parse_msg staticFelix Fietkau2011-01-311-4/+0
|
* make ubus_start_request staticFelix Fietkau2011-01-311-4/+0
|
* libubus: add generic lookup codeFelix Fietkau2011-01-311-0/+18
|