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
Reactivate hooking of requests
[src/app-framework-binder.git]
/
src
/
afb-apis.c
diff --git
a/src/afb-apis.c
b/src/afb-apis.c
index
0e25788
..
1355894
100644
(file)
--- a/
src/afb-apis.c
+++ b/
src/afb-apis.c
@@
-27,7
+27,6
@@
#include "verbose.h"
#include "afb-apis.h"
#include "afb-context.h"
#include "verbose.h"
#include "afb-apis.h"
#include "afb-context.h"
-#include "afb-hook.h"
#include "afb-xreq.h"
#include "jobs.h"
#include "afb-xreq.h"
#include "jobs.h"
@@
-271,9
+270,7
@@
static void do_call_async(int signum, void *arg)
*/
void afb_apis_call_direct(struct afb_xreq *xreq)
{
*/
void afb_apis_call_direct(struct afb_xreq *xreq)
{
- /* init hooking the request */
- // TODO req = afb_hook_req_call(req, context, api, verb);
-
+ afb_xreq_begin(xreq);
do_call_direct(xreq);
}
do_call_direct(xreq);
}
@@
-285,9
+282,7
@@
void afb_apis_call(struct afb_xreq *xreq)
{
int rc;
{
int rc;
- /* init hooking the request */
- // TODO req = afb_hook_req_call(req, context, api, verb);
-
+ afb_xreq_begin(xreq);
afb_xreq_addref(xreq);
rc = jobs_queue(NULL, apis_timeout, do_call_async, xreq);
if (rc < 0) {
afb_xreq_addref(xreq);
rc = jobs_queue(NULL, apis_timeout, do_call_async, xreq);
if (rc < 0) {