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
Add computation of credentials
[src/app-framework-binder.git]
/
src
/
afb-svc.c
diff --git
a/src/afb-svc.c
b/src/afb-svc.c
index
58e2b6d
..
59e775c
100644
(file)
--- a/
src/afb-svc.c
+++ b/
src/afb-svc.c
@@
-27,7
+27,7
@@
#include "afb-session.h"
#include "afb-context.h"
#include "afb-evt.h"
#include "afb-session.h"
#include "afb-context.h"
#include "afb-evt.h"
-#include "afb-
subcall
.h"
+#include "afb-
msg-json
.h"
#include "afb-svc.h"
#include "afb-xreq.h"
#include "afb-apis.h"
#include "afb-svc.h"
#include "afb-xreq.h"
#include "afb-apis.h"
@@
-228,7
+228,8
@@
static void svc_call(void *closure, const char *api, const char *verb, struct js
if (svcreq == NULL) {
ERROR("out of memory");
json_object_put(args);
if (svcreq == NULL) {
ERROR("out of memory");
json_object_put(args);
- return afb_subcall_internal_error(callback, cbclosure);
+ callback(cbclosure, 1, afb_msg_json_internal_error());
+ return;
}
/* initialises the request */
}
/* initialises the request */
@@
-246,7
+247,7
@@
static void svc_call(void *closure, const char *api, const char *verb, struct js
svcreq->svc = svc;
/* terminates and frees ressources if needed */
svcreq->svc = svc;
/* terminates and frees ressources if needed */
- afb_apis_
x
call(&svcreq->xreq);
+ afb_apis_call(&svcreq->xreq);
afb_xreq_unref(&svcreq->xreq);
}
afb_xreq_unref(&svcreq->xreq);
}