#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"
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 */
svcreq->svc = svc;
/* terminates and frees ressources if needed */
- afb_apis_xcall(&svcreq->xreq);
+ afb_apis_call(&svcreq->xreq);
afb_xreq_unref(&svcreq->xreq);
}