Plug-in entry point.
Any plug-in must define and export this function.
A typical implementation of GetPluginFactory looks like this
{
if (!gPluginFactory)
{
static PFactoryInfo factoryInfo =
{
"My Company Name",
"http://www.mywebpage.com",
"mailto:myemail@address.com",
PFactoryInfo::kNoFlags
};
gPluginFactory = new CPluginFactory (factoryInfo);
static PClassInfo componentClass =
{
INLINE_UID (0x00000000, 0x00000000, 0x00000000, 0x00000000),
1,
"Service",
"Name"
};
gPluginFactory->registerClass (&componentClass, MyComponentClass::newInstance);
}
else
return gPluginFactory;
}
virtual uint32 addRef()=0
Adds a reference and returns the new reference count.
#define INLINE_UID(l1, l2, l3, l4)
Definition funknown.h:49
SMTG_EXPORT_SYMBOL Steinberg::IPluginFactory * GetPluginFactory()
Plug-in entry point.