MCPcopy Create free account
hub / github.com/OpenVPN/openvpn3-linux / QueueCheckGVariant

Method QueueCheckGVariant

src/common/requiresqueue.cpp:452–463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450
451
452GVariant *RequiresQueue::QueueCheckGVariant(GVariant *parameters) const noexcept
453{
454 glib2::Utils::checkParams(__func__, parameters, "(uu)", 2);
455 ClientAttentionType type = glib2::Value::Extract<ClientAttentionType>(parameters, 0);
456 ClientAttentionGroup group = glib2::Value::Extract<ClientAttentionGroup>(parameters, 1);
457
458 // Convert the std::vector to a GVariant based array GDBus can use
459 // as the method call response
460 GVariant *ret = glib2::Value::CreateTupleWrapped<uint32_t>(QueueCheck(type, group));
461 callbacks.RunCallback(CallbackType::QUEUE_CHECK);
462 return ret;
463}
464
465
466bool RequiresQueue::QueueAllDone() const noexcept

Callers 1

QueueSetupMethod · 0.95

Calls 1

RunCallbackMethod · 0.80

Tested by

no test coverage detected