rpcd: build, uci and session api fixes
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 12 Jan 2014 11:52:40 +0000 (11:52 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 12 Jan 2014 11:52:40 +0000 (11:52 +0000)
commit5c1ddba8fec74a0786a714c34077995467f4e3c1
tree736ae5de0379a896564431cb28cbc465d82d7238
parentb68274e35e091e55f8f32b28f3983e92aa2019ba
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
package/system/rpcd/Makefile