memcpy(event + plen + 1, name, nlen + 1);
/* create the event */
- return afb_evt_create_event(event);
+ return afb_evt_eventid_create(event);
}
static struct afb_event event_make_cb(void *closure, const char *name)
callreq->xreq.context.validated = 1;
copy = (char*)&callreq[1];
memcpy(copy, api, lenapi);
- callreq->xreq.api = copy;
+ callreq->xreq.request.api = copy;
copy = ©[lenapi];
memcpy(copy, verb, lenverb);
- callreq->xreq.verb = copy;
+ callreq->xreq.request.verb = copy;
callreq->xreq.listener = export->listener;
callreq->xreq.json = args;
callreq->export = export;
else {
memset(export, 0, sizeof *export);
export->apiname = strdup(apiname);
+ export->dynapi.apiname = export->apiname;
export->version = version;
export->state = Api_State_Pre_Init;
export->session = afb_session_addref(common_session);
{
free(export->apiname);
export->apiname = strdup(apiname);
+ export->dynapi.apiname = export->apiname;
afb_export_update_hook(export);
}