MCPcopy Create free account
hub / github.com/DISTRHO/DPF / query_interface_factory

Method query_interface_factory

distrho/src/DistrhoPluginVST3.cpp:4689–4708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4687 // v3_funknown
4688
4689 static v3_result V3_API query_interface_factory(void* const self, const v3_tuid iid, void** const iface)
4690 {
4691 dpf_factory* const factory = *static_cast<dpf_factory**>(self);
4692
4693 if (v3_tuid_match(iid, v3_funknown_iid) ||
4694 v3_tuid_match(iid, v3_plugin_factory_iid) ||
4695 v3_tuid_match(iid, v3_plugin_factory_2_iid) ||
4696 v3_tuid_match(iid, v3_plugin_factory_3_iid))
4697 {
4698 d_debug("query_interface_factory => %p %s %p | OK", self, tuid2str(iid), iface);
4699 ++factory->refcounter;
4700 *iface = self;
4701 return V3_OK;
4702 }
4703
4704 d_debug("query_interface_factory => %p %s %p | WARNING UNSUPPORTED", self, tuid2str(iid), iface);
4705
4706 *iface = nullptr;
4707 return V3_NO_INTERFACE;
4708 }
4709
4710 static uint32_t V3_API ref_factory(void* const self)
4711 {

Callers

nothing calls this directly

Calls 3

v3_tuid_matchFunction · 0.85
d_debugFunction · 0.85
tuid2strFunction · 0.85

Tested by

no test coverage detected