Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
afb-stub-ws: Enforce asynchronous describe
[src/app-framework-binder.git]
/
src
/
afb-export.c
diff --git
a/src/afb-export.c
b/src/afb-export.c
index
a9643f5
..
f96f8f8
100644
(file)
--- a/
src/afb-export.c
+++ b/
src/afb-export.c
@@
-1823,7
+1823,7
@@
static void api_call_cb(void *closure, struct afb_xreq *xreq)
}
}
}
}
-static
struct json_object *api_describe_cb(void *closure
)
+static
void api_describe_cb(void *closure, void (*describecb)(void *, struct json_object *), void *clocb
)
{
struct afb_export *export = closure;
struct json_object *result;
{
struct afb_export *export = closure;
struct json_object *result;
@@
-1846,7
+1846,7
@@
static struct json_object *api_describe_cb(void *closure)
result = NULL;
break;
}
result = NULL;
break;
}
-
return result
;
+
describecb(clocb, result)
;
}
static int api_service_start_cb(void *closure)
}
static int api_service_start_cb(void *closure)