aboutsummaryrefslogtreecommitdiff
path: root/Src/Wasabi2/wasabi1_factory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Wasabi2/wasabi1_factory.cpp')
-rw-r--r--Src/Wasabi2/wasabi1_factory.cpp62
1 files changed, 62 insertions, 0 deletions
diff --git a/Src/Wasabi2/wasabi1_factory.cpp b/Src/Wasabi2/wasabi1_factory.cpp
new file mode 100644
index 00000000..6d9149e8
--- /dev/null
+++ b/Src/Wasabi2/wasabi1_factory.cpp
@@ -0,0 +1,62 @@
+#include "api__wasabi2.h"
+#include "wasabi1_factory.h"
+
+
+static const char serviceName[] = "Wasabi 2 Service API";
+
+FOURCC Wasabi2ServiceFactory::GetServiceType()
+{
+ return Wasabi::WaSvc::UNIQUE;
+}
+
+const char *Wasabi2ServiceFactory::GetServiceName()
+{
+ return serviceName;
+}
+
+GUID Wasabi2ServiceFactory::GetGUID()
+{
+ return api_service::GetServiceGUID();
+}
+
+void *Wasabi2ServiceFactory::GetInterface(int global_lock)
+{
+ return (api_service *)WASABI2_API_SVC;
+
+}
+
+int Wasabi2ServiceFactory::SupportNonLockingInterface()
+{
+ return 1;
+}
+
+int Wasabi2ServiceFactory::ReleaseInterface(void *ifc)
+{
+ return 1;
+}
+
+const char *Wasabi2ServiceFactory::GetTestString()
+{
+ return NULL;
+}
+
+int Wasabi2ServiceFactory::ServiceNotify(int msg, int param1, int param2)
+{
+ return 1;
+}
+
+#ifdef CBCLASS
+#undef CBCLASS
+#endif
+
+#define CBCLASS Wasabi2ServiceFactory
+START_DISPATCH;
+CB(WASERVICEFACTORY_GETSERVICETYPE, GetServiceType)
+CB(WASERVICEFACTORY_GETSERVICENAME, GetServiceName)
+CB(WASERVICEFACTORY_GETGUID, GetGUID)
+CB(WASERVICEFACTORY_GETINTERFACE, GetInterface)
+CB(WASERVICEFACTORY_SUPPORTNONLOCKINGGETINTERFACE, SupportNonLockingInterface)
+CB(WASERVICEFACTORY_RELEASEINTERFACE, ReleaseInterface)
+CB(WASERVICEFACTORY_GETTESTSTRING, GetTestString)
+CB(WASERVICEFACTORY_SERVICENOTIFY, ServiceNotify)
+END_DISPATCH;