ubus.h 955 B

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