7 #ifndef _PLUGIN_MACROS_HEADER_
8 #define _PLUGIN_MACROS_HEADER_
16 #define UCOM_PLUGIN_DEFINE_DEFAULT_METHODS(__plugin_label, __plugin_version_type, ...)\
17 std::function<tResult(adtf::ucom::iobject_ptr<adtf::ucom::IPlugin>&)> _plugin_initialization = [](adtf::ucom::iobject_ptr<adtf::ucom::IPlugin>& pPlugin)\
19 return pPlugin.Reset(adtf::ucom::plugin_initializer<adtf::ucom::plugin_template<__plugin_version_type, __VA_ARGS__>>::Get(__plugin_label));\
21 std::function<void()> _plugin_deinitialization = []\
27 #define UCOM_PLUGIN_MAIN_METHOD() \
28 int __stdcall DllMain(void* , unsigned long , void* ) \
33 #define UCOM_PLUGIN_MAIN_METHOD()
37 #define UCOM_PLUGIN(__plugin_label, __plugin_version_type, ...) \
38 UCOM_PLUGIN_DEFINE_DEFAULT_METHODS(__plugin_label, __plugin_version_type, __VA_ARGS__)\
39 UCOM_PLUGIN_MAIN_METHOD()
Namespace for entire ADTF SDK.