| 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 | { |
nothing calls this directly
no test coverage detected