afb_req_success(request, NULL, NULL);
pthread_mutex_unlock(&mutex);
} else if (name != NULL) {
afb_req_success(request, NULL, NULL);
pthread_mutex_unlock(&mutex);
} else if (name != NULL) {
afb_req_fail(request, "failed", "broadcast error");
else
afb_req_success(request, NULL, NULL);
afb_req_fail(request, "failed", "broadcast error");
else
afb_req_success(request, NULL, NULL);
}
sapi->api = afb_api_new_api(api, apiname, NULL, 1, apipreinit, NULL);
if (!sapi->api) {
}
sapi->api = afb_api_new_api(api, apiname, NULL, 1, apipreinit, NULL);
if (!sapi->api) {
afb_req_reply_f(request, NULL, "cant-create", "%m");
goto end;
}
afb_req_reply_f(request, NULL, "cant-create", "%m");
goto end;
}