duk_ret_t js_discovery(duk_context *ctx) { int ret; int startDelay = 1; ph->ssdp = true; const char *str = duk_require_string(ctx, 0); if (!duk_is_function(ctx, 1)) { duk_error(ctx, DUK_ERR_TYPE_ERROR, "Function required for callback"); } duk_dup(ctx, 1); finishCallback = duv_ref(ctx); setDiscovery(); run_callback = true; slog(DEBUG,DEBUG,"SSDP callback saved."); return 0; }
void QDeclarativeBluetoothDiscoveryModel::componentComplete() { d->m_componentCompleted = true; setDiscovery(d->m_discovery); }