rpcd: build, uci and session api fixes

- fix CMakeFile to support rpcd out of tree builds
	- fix a possible file descriptor leak in the session deserialization code
	- add uci.state call which is equivalent to uci -P /var/state get ...
	- make uci.changes "config" argument optional to allow listing all deltas in one go
	- fix inverted check in uci.commit and uci.revert, resulting in eroorneous permission denied responses
	- only trigger config change events if libuci was able to parse the config
	- rename misleading "commit" argument of uci.apply to the more appropriate name "rollback"

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 39224
v19.07.3_mercusys_ac12_duma
Jo-Philipp Wich 10 years ago
parent 719b57cbc1
commit f126298a7c

@ -1,5 +1,5 @@
#
# Copyright (C) 2013 OpenWrt.org
# Copyright (C) 2013-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
@ -8,13 +8,13 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=rpcd
PKG_VERSION:=2013-09-29
PKG_VERSION:=2014-01-12
PKG_RELEASE=$(PKG_SOURCE_VERSION)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=git://nbd.name/luci2/rpcd.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)
PKG_SOURCE_VERSION:=095b1058c8cb1147d11028974be4067009bcfd67
PKG_SOURCE_VERSION:=0c4e97b4e7b440d02aec3aff9d06c9bc93717571
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>

Loading…
Cancel
Save