Add hooking of daemon interface
[src/app-framework-binder.git] / src / afb-apis.c
index 1355894..ba8e0dd 100644 (file)
@@ -293,3 +293,19 @@ void afb_apis_call(struct afb_xreq *xreq)
        }
 }
 
+/**
+ * Ask to update the hook flags
+ */
+void afb_apis_update_hooks()
+{
+       const struct api_desc *i, *e;
+
+       i = apis_array;
+       e = &apis_array[apis_count]; 
+       while (i != e) {
+               if (i->api.update_hooks)
+                       i->api.update_hooks(i->api.closure);
+               i++;
+       }
+}
+