LocalMediaPlay_def_g.h 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. #ifndef __LOCALMEDIAPLAY_DEF_G_H
  2. #define __LOCALMEDIAPLAY_DEF_G_H
  3. #pragma once
  4. // This code is generated by spgen tool!
  5. #include "SpHelper.h"
  6. namespace LocalMediaPlay {
  7. //
  8. // const goes here
  9. //
  10. #define PlayService_Method_StartPlayVideo 0
  11. #define PlayService_Method_StartPlayAudio 1
  12. #define PlayService_Method_StartPlayImage 2
  13. #define PlayService_Method_StopPlayVideo 3
  14. #define PlayService_Method_StopPlayAudio 4
  15. #define PlayService_Method_StopPlayImage 5
  16. #define PlayService_Method_GetLocalVideoVolume 6
  17. #define PlayService_Method_SetLocalVideoVolume 7
  18. #define PlayService_Method_GetLocalAudioVolume 8
  19. #define PlayService_Method_SetLocalAudioVolume 9
  20. #define PlayService_Method_StartPlayNotice 10
  21. #define PlayService_Method_StopPlayNotice 11
  22. #define PlayService_Method_StopPlayAllMedias 12
  23. #define PlayService_MethodSignature_StartPlayVideo -271954219
  24. #define PlayService_MethodSignature_StartPlayAudio -1816705386
  25. #define PlayService_MethodSignature_StartPlayImage -1698755481
  26. #define PlayService_MethodSignature_StopPlayVideo 2084242398
  27. #define PlayService_MethodSignature_StopPlayAudio -1812157371
  28. #define PlayService_MethodSignature_StopPlayImage -88315811
  29. #define PlayService_MethodSignature_GetLocalVideoVolume -556205790
  30. #define PlayService_MethodSignature_SetLocalVideoVolume -1955837375
  31. #define PlayService_MethodSignature_GetLocalAudioVolume -1928277327
  32. #define PlayService_MethodSignature_SetLocalAudioVolume -1142072027
  33. #define PlayService_MethodSignature_StartPlayNotice -194355636
  34. #define PlayService_MethodSignature_StopPlayNotice -1978922649
  35. #define PlayService_MethodSignature_StopPlayAllMedias -1517000886
  36. struct PlayService_StartPlayVideo_Req
  37. {
  38. int CfgInx;
  39. int WndX;
  40. int WndY;
  41. int WndWidth;
  42. int WndHeight;
  43. void Serialize(SpBuffer &Buf)
  44. {
  45. auto & buf = Buf & CfgInx & WndX & WndY & WndWidth & WndHeight;
  46. }
  47. };
  48. struct PlayService_StartPlayVideo_Ans
  49. {
  50. void Serialize(SpBuffer &Buf)
  51. {
  52. }
  53. };
  54. struct PlayService_StartPlayAudio_Req
  55. {
  56. CSimpleStringW AudioNames;
  57. void Serialize(SpBuffer &Buf)
  58. {
  59. auto & buf = Buf & AudioNames;
  60. }
  61. };
  62. struct PlayService_StartPlayAudio_Ans
  63. {
  64. void Serialize(SpBuffer &Buf)
  65. {
  66. }
  67. };
  68. struct PlayService_StartPlayImage_Req
  69. {
  70. int CfgInx;
  71. int WndX;
  72. int WndY;
  73. int WndWidth;
  74. int WndHeight;
  75. void Serialize(SpBuffer &Buf)
  76. {
  77. auto & buf = Buf & CfgInx & WndX & WndY & WndWidth & WndHeight;
  78. }
  79. };
  80. struct PlayService_StartPlayImage_Ans
  81. {
  82. void Serialize(SpBuffer &Buf)
  83. {
  84. }
  85. };
  86. struct PlayService_StopPlayVideo_Req
  87. {
  88. int CfgInx;
  89. void Serialize(SpBuffer &Buf)
  90. {
  91. auto & buf = Buf & CfgInx;
  92. }
  93. };
  94. struct PlayService_StopPlayVideo_Ans
  95. {
  96. void Serialize(SpBuffer &Buf)
  97. {
  98. }
  99. };
  100. struct PlayService_StopPlayAudio_Req
  101. {
  102. void Serialize(SpBuffer &Buf)
  103. {
  104. }
  105. };
  106. struct PlayService_StopPlayAudio_Ans
  107. {
  108. void Serialize(SpBuffer &Buf)
  109. {
  110. }
  111. };
  112. struct PlayService_StopPlayImage_Req
  113. {
  114. int CfgInx;
  115. void Serialize(SpBuffer &Buf)
  116. {
  117. auto & buf = Buf & CfgInx;
  118. }
  119. };
  120. struct PlayService_StopPlayImage_Ans
  121. {
  122. void Serialize(SpBuffer &Buf)
  123. {
  124. }
  125. };
  126. struct PlayService_GetLocalVideoVolume_Req
  127. {
  128. int CfgInx;
  129. void Serialize(SpBuffer &Buf)
  130. {
  131. auto & buf = Buf & CfgInx;
  132. }
  133. };
  134. struct PlayService_GetLocalVideoVolume_Ans
  135. {
  136. int Volume;
  137. void Serialize(SpBuffer &Buf)
  138. {
  139. auto & buf = Buf & Volume;
  140. }
  141. };
  142. struct PlayService_SetLocalVideoVolume_Req
  143. {
  144. int CfgInx;
  145. int Volume;
  146. void Serialize(SpBuffer &Buf)
  147. {
  148. auto & buf = Buf & CfgInx & Volume;
  149. }
  150. };
  151. struct PlayService_SetLocalVideoVolume_Ans
  152. {
  153. void Serialize(SpBuffer &Buf)
  154. {
  155. }
  156. };
  157. struct PlayService_GetLocalAudioVolume_Req
  158. {
  159. void Serialize(SpBuffer &Buf)
  160. {
  161. }
  162. };
  163. struct PlayService_GetLocalAudioVolume_Ans
  164. {
  165. int Volume;
  166. void Serialize(SpBuffer &Buf)
  167. {
  168. auto & buf = Buf & Volume;
  169. }
  170. };
  171. struct PlayService_SetLocalAudioVolume_Req
  172. {
  173. int Volume;
  174. void Serialize(SpBuffer &Buf)
  175. {
  176. auto & buf = Buf & Volume;
  177. }
  178. };
  179. struct PlayService_SetLocalAudioVolume_Ans
  180. {
  181. void Serialize(SpBuffer &Buf)
  182. {
  183. }
  184. };
  185. struct PlayService_StartPlayNotice_Req
  186. {
  187. int CfgInx;
  188. int WndX;
  189. int WndY;
  190. int WndWidth;
  191. int WndHeight;
  192. CSimpleStringW VideoName;
  193. void Serialize(SpBuffer &Buf)
  194. {
  195. auto & buf = Buf & CfgInx & WndX & WndY & WndWidth & WndHeight & VideoName;
  196. }
  197. };
  198. struct PlayService_StartPlayNotice_Ans
  199. {
  200. unsigned int ErrorCode;
  201. CSimpleStringW ErrorMsg;
  202. void Serialize(SpBuffer &Buf)
  203. {
  204. auto & buf = Buf & ErrorCode & ErrorMsg;
  205. }
  206. };
  207. struct PlayService_StopPlayNotice_Req
  208. {
  209. int CfgInx;
  210. void Serialize(SpBuffer &Buf)
  211. {
  212. auto & buf = Buf & CfgInx;
  213. }
  214. };
  215. struct PlayService_StopPlayNotice_Ans
  216. {
  217. unsigned int ErrorCode;
  218. CSimpleStringW ErrorMsg;
  219. void Serialize(SpBuffer &Buf)
  220. {
  221. auto & buf = Buf & ErrorCode & ErrorMsg;
  222. }
  223. };
  224. struct PlayService_StopPlayAllMedias_Req
  225. {
  226. void Serialize(SpBuffer &Buf)
  227. {
  228. }
  229. };
  230. struct PlayService_StopPlayAllMedias_Ans
  231. {
  232. void Serialize(SpBuffer &Buf)
  233. {
  234. }
  235. };
  236. ///////////////////////////
  237. } // namespace LocalMediaPlay
  238. #endif // __LOCALMEDIAPLAY_DEF_G_H