summaryrefslogtreecommitdiff
path: root/handler.h
Commit message (Collapse)AuthorAgeFilesLines
* handler: add mechanism to generate external device handler stubsArne Kappen2021-03-311-0/+5
| | | | | | | | | | | | | | | Parse JSON files in a given directory and pass the information on to a callback function for creation of an external device handler stub. The description contains: - 'name': the name of the device type, - 'ubus_name': the name of the external device handler daemon on ubus, - 'bridge': a flag indicating whether the devices are bridge-like, - optionally 'br_prefix': a prefix for created devices (only for bridge-like, defaults to type name), - 'config': the UCI config options for devices of this type, and - optionally 'info' and 'stats': the format of calls to info() and dump(). Signed-off-by: Arne Kappen <arne.kappen@hhi.fraunhofer.de>
* netifd: fixes for json-c 0.12John Crispin2015-03-061-1/+1
| | | | Signed-off-by: John Crispin <blogic@openwrt.org>
* handler: replace calls to deprecated json_object_object_getSteven Barth2014-12-231-1/+2
| | | | Signed-off-by: Steven Barth <steven@midlink.org>
* handler: explicitly include json.hFelix Fietkau2014-08-131-0/+1
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* handler: include config.hFelix Fietkau2013-10-221-0/+1
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* proto-shell: move more core to handler.cFelix Fietkau2013-10-221-1/+7
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* proto-shell: move script handler config parse code to handler.cFelix Fietkau2013-10-221-0/+13
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* proto-shell: move script handler dump code to handler.cFelix Fietkau2013-10-221-0/+24
Signed-off-by: Felix Fietkau <nbd@openwrt.org>