Commit graph

60 commits

Author SHA1 Message Date
Jo-Philipp Wich
e0afdb10ae Move includes into subdirectory 2013-09-04 12:46:11 +02:00
Jo-Philipp Wich
b3a5c08e08 uci: use per-session save directory and register session destroy callback to purge leftover deltas 2013-09-03 13:40:47 +02:00
Jo-Philipp Wich
ad8e937f97 luci2: change ops->access to ops->session_access to accomodate for changed plugin api 2013-09-03 12:47:06 +02:00
Jo-Philipp Wich
059a6df1fd plugin: expose rpc_session_create_cb() and rpc_session_destroy_cb() in plugin ops; rename access to session_access 2013-09-03 12:47:06 +02:00
Jo-Philipp Wich
60b9c9d919 session: introduce api to register session create and destroy callbacks 2013-09-03 12:47:04 +02:00
Jo-Philipp Wich
11f37e2889 Fold plugin specific headers files into the plugins .c file 2013-09-02 17:29:06 +02:00
Jo-Philipp Wich
07c2f0a9b1 Rename from "luci-rpcd" to "rpcd" 2013-09-02 17:23:30 +02:00
Jo-Philipp Wich
84642137f0 Add CMake definitions for plugins 2013-09-02 15:24:00 +02:00
Jo-Philipp Wich
7434b2bf6c luci2: convert to plugin library 2013-09-02 15:23:09 +02:00
Jo-Philipp Wich
c849d04fc8 file: convert to plugin library 2013-09-02 15:23:09 +02:00
Jo-Philipp Wich
bc100538d3 iwinfo: convert to plugin library 2013-09-02 15:23:09 +02:00
Jo-Philipp Wich
3d358bb3a1 Introduce shared object plugin api 2013-09-02 15:23:04 +02:00
Jo-Philipp Wich
0b4d4aeeac Register dummy stderr callback when ivoking plugins calls to avoid filling the ustream with unread data. 2013-09-01 22:42:17 +02:00
Jo-Philipp Wich
3cac366777 Link json-c 2013-09-01 22:22:42 +02:00
Jo-Philipp Wich
90e8e9ca00 Rework plugin support to use incremental json parsing and rpc_exec() framework for invocation 2013-09-01 22:22:40 +02:00
Jo-Philipp Wich
768553b3fe luci2: change rpc_exec() callsites to accomodate for extra stdin_cb argument, change finish callbacks to emit proper return code 2013-09-01 22:07:29 +02:00
Jo-Philipp Wich
a95079e0e7 Extend rpc_exec() to allow feeding childs stdin via callbacks, allow finish callback to override the ubus return code 2013-09-01 22:03:15 +02:00
Jo-Philipp Wich
a86ef267a4 Add initial plugin api support 2013-08-30 20:33:23 +02:00
Jo-Philipp Wich
a00f2d08a2 luci2: change luci2.ui.menu call to return acl levels for each menu item 2013-08-16 17:02:19 +02:00
Jo-Philipp Wich
f74be70327 luci2: add luci2.ui namespace 2013-08-13 17:16:56 +02:00
Jo-Philipp Wich
97384dd72a uci: refactor revert code to avoid illegal pointer access 2013-08-12 14:50:09 +02:00
Jo-Philipp Wich
c2a7fcf947 uci: implement config level ACLs 2013-08-12 13:53:09 +02:00
Jo-Philipp Wich
c6985dd5a6 session: expose rpc_session_access() function for testing session ACLs in other rpcd subsystems 2013-08-12 13:51:51 +02:00
Jo-Philipp Wich
743901cfca session: fix acl dumping if last object of previous scope is equal to first object of next one 2013-08-10 21:56:06 +02:00
Jo-Philipp Wich
c6e81f4b69 sessions: add scopes for acls, default to "ubus" scope 2013-08-08 18:53:59 +02:00
Jo-Philipp Wich
c2c39eeb30 luci2: fix incorrect buffer length in luci2.opkg config_set call 2013-08-05 13:19:38 +02:00
Jo-Philipp Wich
2ab4dc45d1 luci2: add backup_list, backup_config_get and backup_config_set calls 2013-08-05 13:18:32 +02:00
Jo-Philipp Wich
705dfce44a luci2: add reboot call 2013-07-31 19:47:35 +02:00
Jo-Philipp Wich
c89e51f822 luci2: add reset_test and reset_start calls 2013-07-31 19:47:14 +02:00
Jo-Philipp Wich
533a5a2cbf luci2: add backup_restore and backup_clean calls, rename upgrade_abort to upgrade_clean 2013-07-31 15:57:37 +02:00
Jo-Philipp Wich
d10f6cc103 luci2: add upgrade_test, upgrade_start and upgrade_abort calls 2013-07-30 19:18:04 +02:00
Jo-Philipp Wich
eebf7be00a luci2: use shared rpc_data_policy for opkg config_set call 2013-07-16 19:07:58 +02:00
Jo-Philipp Wich
382fd87f07 luci2: add led_list and usb_list calls 2013-07-16 19:01:19 +02:00
Jo-Philipp Wich
79ef98b874 luci2: add crontab_get and crontab_set calls, rename rpc_rclocal_policy to rpc_data_policy 2013-07-15 17:04:55 +02:00
Jo-Philipp Wich
d2fac3e23c Increase exec command timeout to 30 seconds 2013-07-15 17:04:33 +02:00
Jo-Philipp Wich
c2460e1cac luci2: add rclocal_get and rclocal_set calls 2013-07-15 17:04:29 +02:00
Jo-Philipp Wich
8904257ce6 luci2: add diskfree call 2013-07-15 17:04:09 +02:00
Jo-Philipp Wich
97d9cb14b6 luci2: add opkg namespace 2013-07-15 17:03:59 +02:00
Jo-Philipp Wich
190708e539 Add rpc_exec() utility function 2013-07-04 14:56:20 +02:00
Jo-Philipp Wich
6770afeb9f luci2: implement password_set call 2013-07-01 18:27:24 +02:00
Jo-Philipp Wich
e8daa19a06 luci2: implement sshkeys_get and sshkeys_set calls 2013-07-01 18:27:21 +02:00
Jo-Philipp Wich
f1aa60efc5 luci2: make parsing START and STOP from init scripts more robust 2013-06-27 19:07:45 +02:00
Jo-Philipp Wich
cc288ccea5 luci2: implement init_list and init_action calls 2013-06-27 18:55:09 +02:00
Jo-Philipp Wich
51458f4ece uci: expose section ordering index when dumping complete packages 2013-06-19 11:33:17 +02:00
Jo-Philipp Wich
1b829f936d uci: add delete method 2013-06-18 15:08:37 +02:00
Jo-Philipp Wich
0b1a426e79 luci2: implement process_signal call 2013-06-12 16:49:03 +02:00
Jo-Philipp Wich
e0bb659e62 luci2: implement process_list call 2013-06-12 15:16:29 +02:00
Jo-Philipp Wich
060f7cbf8b iwinfo: expose phyname attribute 2013-06-11 18:44:19 +02:00
Jo-Philipp Wich
7c61c535be Add luci2 namespace to offer various backend methods required by the ui 2013-06-11 18:44:18 +02:00
Jo-Philipp Wich
bf838aaa2e Remove system namespace support again, the code has been merged into procd instead.
This reverts commit e5c9b0411d.
2013-06-04 17:20:36 +02:00