ubus.h 847 B

1234567891011121314151617181920212223
  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. int netifd_ubus_init(const char *path);
  17. void netifd_ubus_done(void);
  18. void netifd_ubus_add_interface(struct interface *iface);
  19. void netifd_ubus_remove_interface(struct interface *iface);
  20. void netifd_ubus_interface_event(struct interface *iface, bool up);
  21. #endif