From 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d Mon Sep 17 00:00:00 2001 From: Jef Date: Tue, 24 Sep 2024 14:54:57 +0200 Subject: Initial community commit --- Src/Winamp/ServiceFactory.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Src/Winamp/ServiceFactory.cpp (limited to 'Src/Winamp/ServiceFactory.cpp') diff --git a/Src/Winamp/ServiceFactory.cpp b/Src/Winamp/ServiceFactory.cpp new file mode 100644 index 00000000..3eecd90e --- /dev/null +++ b/Src/Winamp/ServiceFactory.cpp @@ -0,0 +1,25 @@ +#include "main.h" +#include "api.h" +#include + +#ifdef CBCLASS +#undef CBCLASS +#endif + +#define CBCLASS waServiceFactoryX +START_DISPATCH; + CB(WASERVICEFACTORY_GETSERVICETYPE, x_getServiceType); + CB(WASERVICEFACTORY_GETSERVICENAME, x_getServiceName); + CB(WASERVICEFACTORY_GETGUID, getGuid); + case WASERVICEFACTORY_GETINTERFACE: + switch (nparam) { + default: cb(&CBCLASS::getInterface, retval, params); break; + case 0: cb(&CBCLASS::_RETIRED_getInterface, retval, params); break; + } + break; + CB(WASERVICEFACTORY_SUPPORTNONLOCKINGGETINTERFACE, supportNonLockingGetInterface); + CB(WASERVICEFACTORY_RELEASEINTERFACE, releaseInterface); + CB(WASERVICEFACTORY_GETTESTSTRING, getTestString); + CB(WASERVICEFACTORY_SERVICENOTIFY, serviceNotify); +END_DISPATCH; +#undef CBCLASS \ No newline at end of file -- cgit