libubus: expose ubus_connect_ctx() in public API
authorDelio Brignoli <dbrignoli@audioscience.com>
Wed, 1 Oct 2014 17:57:56 +0000 (19:57 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 14 Oct 2014 07:57:11 +0000 (09:57 +0200)
commit7b79b6226e737e28aafb4e9b668b86b5f180314b
tree319c5f2fcc73de64431d17141525bd06f791b733
parent4c4f35cf2230d70b9ddd87638ca911e8a563f2f3
libubus: expose ubus_connect_ctx() in public API

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.c
libubus.h