MCPcopy Create free account
hub / github.com/GNOME/gjs / invoke_callback_closure

Method invoke_callback_closure

gi/function.cpp:720–729  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

718}
719
720void GjsCallbackTrampoline::invoke_callback_closure(ffi_cif*, void* result,
721 void** ffi_args,
722 void* data) {
723 auto** args = reinterpret_cast<GIArgument**>(ffi_args);
724 g_assert(data && "Trampoline data is not set");
725 Gjs::Closure::Ptr trampoline{static_cast<GjsCallbackTrampoline*>(data),
726 Gjs::TakeOwnership{}};
727
728 trampoline.as<GjsCallbackTrampoline>()->callback_closure(args, result);
729}
730
731ffi_closure* GjsCallbackTrampoline::create_closure() {
732 return m_info.create_closure(

Callers

nothing calls this directly

Calls 1

callback_closureMethod · 0.80

Tested by

no test coverage detected