Commit graph

199 commits

Author SHA1 Message Date
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
Jo-Philipp Wich
e5c9b0411d Add system namespace which offers various system information like software release, memory and swap info, uptime and load 2013-05-30 20:35:46 +02:00
Jo-Philipp Wich
09f387b2fa Fix session.get procedure with undefined keys attribute 2013-05-30 14:58:30 +02:00
Jo-Philipp Wich
6a00d27ae5 file: properly use container_of() to not trip type safety warnings 2013-04-16 21:21:25 +02:00
Jo-Philipp Wich
dfa1d802b2 file: remove unused mode argument from exec procedure 2013-02-03 14:00:57 +01:00
Jo-Philipp Wich
cac8db77c9 iwinfo: finish api 2013-02-03 14:00:04 +01:00
Jo-Philipp Wich
9345600006 add ubus iwinfo api (lacks scanning, assoclist, countrylist and txpowerlist yet) 2013-02-02 20:48:51 +01:00
Jo-Philipp Wich
e01004fb08 uci: add configs method to list all existing packages 2013-02-02 19:05:02 +01:00
Jo-Philipp Wich
2dec70f271 add ubus uci api 2013-02-02 18:36:50 +01:00
Jo-Philipp Wich
bea6a81875 file: add exec method, rework read method 2013-01-31 22:19:22 +01:00
Jo-Philipp Wich
0607cfda5b initial commit 2013-01-26 15:29:09 +01:00