serviceDispatch.cpp 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. #include "./main.h"
  2. #include "./service.h"
  3. #define CBCLASS OmService
  4. START_MULTIPATCH;
  5. START_PATCH(MPIID_OMSVC)
  6. M_CB(MPIID_OMSVC, ifc_omservice, ADDREF, AddRef);
  7. M_CB(MPIID_OMSVC, ifc_omservice, RELEASE, Release);
  8. M_CB(MPIID_OMSVC, ifc_omservice, QUERYINTERFACE, QueryInterface);
  9. M_CB(MPIID_OMSVC, ifc_omservice, API_GETID, GetId);
  10. M_CB(MPIID_OMSVC, ifc_omservice, API_GETNAME, GetName);
  11. M_CB(MPIID_OMSVC, ifc_omservice, API_GETURL, GetUrl);
  12. M_CB(MPIID_OMSVC, ifc_omservice, API_GETURLDIRECT, GetUrlDirect);
  13. M_CB(MPIID_OMSVC, ifc_omservice, API_GETICON, GetIcon);
  14. M_CB(MPIID_OMSVC, ifc_omservice, API_GETEXTERNAL, GetExternal);
  15. M_CB(MPIID_OMSVC, ifc_omservice, API_GETRATING, GetRating);
  16. M_CB(MPIID_OMSVC, ifc_omservice, API_GETVERSION, GetVersion);
  17. M_CB(MPIID_OMSVC, ifc_omservice, API_GETGENERATION, GetGeneration);
  18. M_CB(MPIID_OMSVC, ifc_omservice, API_GETFLAGS, GetFlags);
  19. M_CB(MPIID_OMSVC, ifc_omservice, API_SETADDRESS, SetAddress);
  20. M_CB(MPIID_OMSVC, ifc_omservice, API_GETADDRESS, GetAddress);
  21. M_CB(MPIID_OMSVC, ifc_omservice, API_UPDATEFLAGS, UpdateFlags);
  22. NEXT_PATCH(MPIID_OMSVCDETAILS)
  23. M_CB(MPIID_OMSVCDETAILS, ifc_omservicedetails, ADDREF, AddRef);
  24. M_CB(MPIID_OMSVCDETAILS, ifc_omservicedetails, RELEASE, Release);
  25. M_CB(MPIID_OMSVCDETAILS, ifc_omservicedetails, QUERYINTERFACE, QueryInterface);
  26. M_CB(MPIID_OMSVCDETAILS, ifc_omservicedetails, API_GETDESCRIPTION, GetDescription);
  27. M_CB(MPIID_OMSVCDETAILS, ifc_omservicedetails, API_GETAUTHORFIRST, GetAuthorFirst);
  28. M_CB(MPIID_OMSVCDETAILS, ifc_omservicedetails, API_GETAUTHORLAST, GetAuthorLast);
  29. M_CB(MPIID_OMSVCDETAILS, ifc_omservicedetails, API_GETUPDATED, GetUpdated);
  30. M_CB(MPIID_OMSVCDETAILS, ifc_omservicedetails, API_GETPUBLISHED, GetPublished);
  31. M_CB(MPIID_OMSVCDETAILS, ifc_omservicedetails, API_GETTHUMBNAIL, GetThumbnail);
  32. M_CB(MPIID_OMSVCDETAILS, ifc_omservicedetails, API_GETSCREENSHOT, GetScreenshot);
  33. NEXT_PATCH(MPIID_OMSVCEDITOR)
  34. M_CB(MPIID_OMSVCEDITOR, ifc_omserviceeditor, ADDREF, AddRef);
  35. M_CB(MPIID_OMSVCEDITOR, ifc_omserviceeditor, RELEASE, Release);
  36. M_CB(MPIID_OMSVCEDITOR, ifc_omserviceeditor, QUERYINTERFACE, QueryInterface);
  37. M_CB(MPIID_OMSVCEDITOR, ifc_omserviceeditor, API_SETNAME, SetName);
  38. M_CB(MPIID_OMSVCEDITOR, ifc_omserviceeditor, API_SETURL, SetUrl);
  39. M_CB(MPIID_OMSVCEDITOR, ifc_omserviceeditor, API_SETICON, SetIcon);
  40. M_CB(MPIID_OMSVCEDITOR, ifc_omserviceeditor, API_SETRATING, SetRating);
  41. M_CB(MPIID_OMSVCEDITOR, ifc_omserviceeditor, API_SETVERSION, SetVersion);
  42. M_CB(MPIID_OMSVCEDITOR, ifc_omserviceeditor, API_SETGENERATION, SetGeneration);
  43. M_CB(MPIID_OMSVCEDITOR, ifc_omserviceeditor, API_SETFLAGS, SetFlags);
  44. M_CB(MPIID_OMSVCEDITOR, ifc_omserviceeditor, API_SETDESCRIPTION, SetDescription);
  45. M_CB(MPIID_OMSVCEDITOR, ifc_omserviceeditor, API_SETAUTHORFIRST, SetAuthorFirst);
  46. M_CB(MPIID_OMSVCEDITOR, ifc_omserviceeditor, API_SETAUTHORLAST, SetAuthorLast);
  47. M_CB(MPIID_OMSVCEDITOR, ifc_omserviceeditor, API_SETUPDATED, SetUpdated);
  48. M_CB(MPIID_OMSVCEDITOR, ifc_omserviceeditor, API_SETPUBLISHED, SetPublished);
  49. M_CB(MPIID_OMSVCEDITOR, ifc_omserviceeditor, API_SETTHUMBNAIL, SetThumbnail);
  50. M_CB(MPIID_OMSVCEDITOR, ifc_omserviceeditor, API_SETSCREENSHOT, SetScreenshot);
  51. M_CB(MPIID_OMSVCEDITOR, ifc_omserviceeditor, API_SETMODIFIED, SetModified);
  52. M_CB(MPIID_OMSVCEDITOR, ifc_omserviceeditor, API_GETMODIFIED, GetModified);
  53. M_CB(MPIID_OMSVCEDITOR, ifc_omserviceeditor, API_BEGINUPDATE, BeginUpdate);
  54. M_CB(MPIID_OMSVCEDITOR, ifc_omserviceeditor, API_ENDUPDATE, EndUpdate);
  55. NEXT_PATCH(MPIID_OMSVCCOPIER)
  56. M_CB(MPIID_OMSVCCOPIER, ifc_omservicecopier, ADDREF, AddRef);
  57. M_CB(MPIID_OMSVCCOPIER, ifc_omservicecopier, RELEASE, Release);
  58. M_CB(MPIID_OMSVCCOPIER, ifc_omservicecopier, QUERYINTERFACE, QueryInterface);
  59. M_CB(MPIID_OMSVCCOPIER, ifc_omservicecopier, API_COPYTO, CopyTo);
  60. NEXT_PATCH(MPIID_OMSVCCOMMAND)
  61. M_CB(MPIID_OMSVCCOMMAND, ifc_omservicecommand, ADDREF, AddRef);
  62. M_CB(MPIID_OMSVCCOMMAND, ifc_omservicecommand, RELEASE, Release);
  63. M_CB(MPIID_OMSVCCOMMAND, ifc_omservicecommand, QUERYINTERFACE, QueryInterface);
  64. M_CB(MPIID_OMSVCCOMMAND, ifc_omservicecommand, API_QUERYSTATE, QueryState);
  65. M_CB(MPIID_OMSVCCOMMAND, ifc_omservicecommand, API_EXEC, Exec);
  66. NEXT_PATCH(MPIID_OMSVCEVENTMNGR)
  67. M_CB(MPIID_OMSVCEVENTMNGR, ifc_omserviceeventmngr, ADDREF, AddRef);
  68. M_CB(MPIID_OMSVCEVENTMNGR, ifc_omserviceeventmngr, RELEASE, Release);
  69. M_CB(MPIID_OMSVCEVENTMNGR, ifc_omserviceeventmngr, QUERYINTERFACE, QueryInterface);
  70. M_CB(MPIID_OMSVCEVENTMNGR, ifc_omserviceeventmngr, API_REGISTERHANDLER, RegisterEventHandler);
  71. M_CB(MPIID_OMSVCEVENTMNGR, ifc_omserviceeventmngr, API_UNREGISTERHANDLER, UnregisterEventHandler);
  72. M_CB(MPIID_OMSVCEVENTMNGR, ifc_omserviceeventmngr, API_SIGNAL_SERVICECHANGE, Signal_ServiceChange);
  73. M_CB(MPIID_OMSVCEVENTMNGR, ifc_omserviceeventmngr, API_SIGNAL_COMMANDSTATECHANGE, Signal_CommandStateChange);
  74. NEXT_PATCH(MPIID_OMSVCHOSTEXT)
  75. M_CB(MPIID_OMSVCHOSTEXT, ifc_omservicehostext, API_GETHOST, GetHost);
  76. M_CB(MPIID_OMSVCHOSTEXT, ifc_omservicehostext, API_SETHOST, SetHost);
  77. END_PATCH
  78. END_MULTIPATCH;
  79. #undef CBCLASS