CMake: bump the minimum required CMake version to 3.5
[project/netifd.git] / ubus.h
diff --git a/ubus.h b/ubus.h
index 553faef99764dd6175da6fb33e268225c37a3fa5..dde71244afded121fd7a0ad80e428f2a6294ddb4 100644 (file)
--- a/ubus.h
+++ b/ubus.h
 #ifndef __NETIFD_UBUS_H
 #define __NETIFD_UBUS_H
 
+extern struct ubus_context *ubus_ctx;
+
 int netifd_ubus_init(const char *path);
 void netifd_ubus_done(void);
+
+int netifd_extdev_invoke(uint32_t id, const char *method,
+        struct blob_attr *msg, ubus_data_handler_t data_cb, void *data);
 void netifd_ubus_add_interface(struct interface *iface);
 void netifd_ubus_remove_interface(struct interface *iface);
 void netifd_ubus_interface_event(struct interface *iface, bool up);
 void netifd_ubus_interface_notify(struct interface *iface, bool up);
+void netifd_ubus_device_notify(const char *event, struct blob_attr *data, int timeout);
 
 #endif