1 /* 2 * netifd - network interface daemon 3 * Copyright (C) 2012 Felix Fietkau <nbd@openwrt.org> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License version 2 7 * as published by the Free Software Foundation 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 */ 14 #ifndef __NETIFD_UBUS_H 15 #define __NETIFD_UBUS_H 16 17 extern struct ubus_context *ubus_ctx; 18 19 int netifd_ubus_init(const char *path); 20 void netifd_ubus_done(void); 21 22 int netifd_extdev_invoke(uint32_t id, const char *method, 23 struct blob_attr *msg, ubus_data_handler_t data_cb, void *data); 24 void netifd_ubus_add_interface(struct interface *iface); 25 void netifd_ubus_remove_interface(struct interface *iface); 26 void netifd_ubus_interface_event(struct interface *iface, bool up); 27 void netifd_ubus_interface_notify(struct interface *iface, bool up); 28 void netifd_ubus_device_notify(const char *event, struct blob_attr *data, int timeout); 29 30 #endif 31
This page was automatically generated by LXR 0.3.1. • OpenWrt