ResourceWatcher_def_g.h 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403
  1. #ifndef __RESOURCEWATCHER_DEF_G_H
  2. #define __RESOURCEWATCHER_DEF_G_H
  3. #pragma once
  4. // This code is generated by spgen tool!
  5. #include "SpHelper.h"
  6. namespace ResourceWatcher {
  7. //
  8. // const goes here
  9. //
  10. #define ResourceWatcherService_Method_Fetch 0
  11. #define ResourceWatcherService_Method_GetDevInfo 65535
  12. #define ResourceWatcherService_Method_GetCardSwiper 1
  13. #define ResourceWatcherService_Method_GetCpuType 2
  14. #define ResourceWatcherService_Method_OperateFile 3
  15. #define ResourceWatcherService_Method_ExtractEventLog 4
  16. #define ResourceWatcherService_Method_UpdateDNS 5
  17. #define ResourceWatcherService_Method_GetNetworkInfo 6
  18. #define ResourceWatcherService_Method_GetThirdPartyInstallState 7
  19. #define ResourceWatcherService_Method_InstallThirdPartyProgram 8
  20. #define ResourceWatcherService_Method_CheckNetType 9
  21. #define ResourceWatcherService_Method_GetBizLinks 10
  22. #define ResourceWatcherService_Method_BizLinkDetect 11
  23. #define ResourceWatcherService_MethodSignature_Fetch -1944912560
  24. #define ResourceWatcherService_MethodSignature_GetDevInfo 296205965
  25. #define ResourceWatcherService_MethodSignature_GetCardSwiper 828378769
  26. #define ResourceWatcherService_MethodSignature_GetCpuType -1911838440
  27. #define ResourceWatcherService_MethodSignature_OperateFile 935567963
  28. #define ResourceWatcherService_MethodSignature_ExtractEventLog -1046715334
  29. #define ResourceWatcherService_MethodSignature_UpdateDNS -943970884
  30. #define ResourceWatcherService_MethodSignature_GetNetworkInfo 1741482404
  31. #define ResourceWatcherService_MethodSignature_GetThirdPartyInstallState -15861483
  32. #define ResourceWatcherService_MethodSignature_InstallThirdPartyProgram -1049249852
  33. #define ResourceWatcherService_MethodSignature_CheckNetType 1341887614
  34. #define ResourceWatcherService_MethodSignature_GetBizLinks 651862197
  35. #define ResourceWatcherService_MethodSignature_BizLinkDetect 1476437131
  36. struct ResourceWatcherService_Fetch_Req
  37. {
  38. void Serialize(SpBuffer &Buf)
  39. {
  40. }
  41. };
  42. struct ResourceWatcherService_Fetch_Ans
  43. {
  44. int reserved1;
  45. int reserved2;
  46. CSimpleStringA reserved3;
  47. CSimpleStringA reserved4;
  48. void Serialize(SpBuffer &Buf)
  49. {
  50. auto & buf = Buf & reserved1 & reserved2 & reserved3 & reserved4;
  51. }
  52. };
  53. struct ResourceWatcherService_GetDevInfo_Req
  54. {
  55. void Serialize(SpBuffer &Buf)
  56. {
  57. }
  58. };
  59. struct ResourceWatcherService_GetDevInfo_Ans
  60. {
  61. CSimpleStringA type;
  62. CSimpleStringA model;
  63. CSimpleStringA version;
  64. int state;
  65. void Serialize(SpBuffer &Buf)
  66. {
  67. auto & buf = Buf & type & model & version & state;
  68. }
  69. };
  70. struct ResourceWatcherService_GetCardSwiper_Req
  71. {
  72. void Serialize(SpBuffer &Buf)
  73. {
  74. }
  75. };
  76. struct ResourceWatcherService_GetCardSwiper_Ans
  77. {
  78. int status;
  79. void Serialize(SpBuffer &Buf)
  80. {
  81. auto & buf = Buf & status;
  82. }
  83. };
  84. struct ResourceWatcherService_GetCpuType_Req
  85. {
  86. void Serialize(SpBuffer &Buf)
  87. {
  88. }
  89. };
  90. struct ResourceWatcherService_GetCpuType_Ans
  91. {
  92. int level;
  93. CSimpleStringA brand;
  94. int reserved1;
  95. CSimpleStringA reserved2;
  96. void Serialize(SpBuffer &Buf)
  97. {
  98. auto & buf = Buf & level & brand & reserved1 & reserved2;
  99. }
  100. };
  101. struct ResourceWatcherService_OperateFile_Req
  102. {
  103. CSimpleStringA current;
  104. int mode;
  105. int attribute;
  106. CSimpleStringA content;
  107. int filter1;
  108. CSimpleStringA filter2;
  109. int attachment1;
  110. CSimpleStringA attachment2;
  111. CAutoArray<int> reserved1;
  112. CAutoArray<CSimpleStringA> reserved2;
  113. void Serialize(SpBuffer &Buf)
  114. {
  115. auto & buf = Buf & current & mode & attribute & content & filter1 & filter2 & attachment1 & attachment2 & reserved1 & reserved2;
  116. }
  117. };
  118. struct ResourceWatcherService_OperateFile_Ans
  119. {
  120. int result;
  121. CSimpleStringA header;
  122. int attachment1;
  123. CSimpleStringA attachment2;
  124. u__int64_t fileSize;
  125. u__int64_t ftCreate;
  126. u__int64_t ftModified;
  127. u__int64_t ftAccess;
  128. unsigned int fileAttribute;
  129. unsigned int forbidAttribute;
  130. int reversed1;
  131. CSimpleStringA reversed2;
  132. int count;
  133. CAutoArray<CSimpleStringA> fileNames;
  134. CAutoArray<u__int64_t> fileSizes;
  135. CAutoArray<u__int64_t> ftCreates;
  136. CAutoArray<u__int64_t> ftModifieds;
  137. CAutoArray<u__int64_t> ftAccesses;
  138. CAutoArray<unsigned int> fileAttributes;
  139. CAutoArray<unsigned int> forbidAttributes;
  140. CAutoArray<int> reserved1;
  141. CAutoArray<CSimpleStringA> reserved2;
  142. void Serialize(SpBuffer &Buf)
  143. {
  144. auto & buf = Buf & result & header & attachment1 & attachment2 & fileSize & ftCreate & ftModified & ftAccess & fileAttribute & forbidAttribute & reversed1 & reversed2 & count & fileNames & fileSizes & ftCreates & ftModifieds & ftAccesses & fileAttributes & forbidAttributes & reserved1 & reserved2;
  145. }
  146. };
  147. struct ResourceWatcherService_ExtractEventLog_Req
  148. {
  149. unsigned short evtName;
  150. unsigned short evtLevel;
  151. unsigned short duration;
  152. u__int64_t startTime;
  153. u__int64_t endTime;
  154. CSimpleStringA cusEvtFileName;
  155. CSimpleStringA evtSrcEventName;
  156. int reversed1;
  157. CSimpleStringA reversed2;
  158. void Serialize(SpBuffer &Buf)
  159. {
  160. auto & buf = Buf & evtName & evtLevel & duration & startTime & endTime & cusEvtFileName & evtSrcEventName & reversed1 & reversed2;
  161. }
  162. };
  163. struct ResourceWatcherService_ExtractEventLog_Ans
  164. {
  165. unsigned int entries;
  166. CSimpleStringA information;
  167. CSimpleStringA evtLogFileName;
  168. void Serialize(SpBuffer &Buf)
  169. {
  170. auto & buf = Buf & entries & information & evtLogFileName;
  171. }
  172. };
  173. struct ResourceWatcherService_UpdateDNS_Req
  174. {
  175. CSimpleStringA interface;
  176. CSimpleStringA dns1;
  177. CSimpleStringA dns2;
  178. void Serialize(SpBuffer &Buf)
  179. {
  180. auto & buf = Buf & interface & dns1 & dns2;
  181. }
  182. };
  183. struct ResourceWatcherService_UpdateDNS_Ans
  184. {
  185. int result;
  186. CSimpleStringA messsge;
  187. void Serialize(SpBuffer &Buf)
  188. {
  189. auto & buf = Buf & result & messsge;
  190. }
  191. };
  192. struct ResourceWatcherService_GetNetworkInfo_Req
  193. {
  194. int filter;
  195. void Serialize(SpBuffer &Buf)
  196. {
  197. auto & buf = Buf & filter;
  198. }
  199. };
  200. struct ResourceWatcherService_GetNetworkInfo_Ans
  201. {
  202. int status;
  203. CSimpleStringA current;
  204. CAutoArray<CSimpleStringA> names;
  205. CAutoArray<CSimpleStringA> ips;
  206. CAutoArray<CSimpleStringA> macs;
  207. CAutoArray<CSimpleStringA> masks;
  208. CAutoArray<CSimpleStringA> gateways;
  209. CAutoArray<CSimpleStringA> dns;
  210. void Serialize(SpBuffer &Buf)
  211. {
  212. auto & buf = Buf & status & current & names & ips & macs & masks & gateways & dns;
  213. }
  214. };
  215. struct ResourceWatcherService_GetThirdPartyInstallState_Req
  216. {
  217. int mode;
  218. void Serialize(SpBuffer &Buf)
  219. {
  220. auto & buf = Buf & mode;
  221. }
  222. };
  223. struct ResourceWatcherService_GetThirdPartyInstallState_Ans
  224. {
  225. int status;
  226. CSimpleStringA version;
  227. CSimpleStringA path;
  228. CSimpleStringA reserverd1;
  229. CSimpleStringA reserverd2;
  230. int reserverd3;
  231. int reserverd4;
  232. void Serialize(SpBuffer &Buf)
  233. {
  234. auto & buf = Buf & status & version & path & reserverd1 & reserverd2 & reserverd3 & reserverd4;
  235. }
  236. };
  237. struct ResourceWatcherService_InstallThirdPartyProgram_Req
  238. {
  239. int type;
  240. void Serialize(SpBuffer &Buf)
  241. {
  242. auto & buf = Buf & type;
  243. }
  244. };
  245. struct ResourceWatcherService_InstallThirdPartyProgram_Ans
  246. {
  247. int result;
  248. CSimpleStringA msg;
  249. CSimpleStringA path;
  250. CSimpleStringA reserverd1;
  251. CSimpleStringA reserverd2;
  252. void Serialize(SpBuffer &Buf)
  253. {
  254. auto & buf = Buf & result & msg & path & reserverd1 & reserverd2;
  255. }
  256. };
  257. struct ResourceWatcherService_CheckNetType_Req
  258. {
  259. void Serialize(SpBuffer &Buf)
  260. {
  261. }
  262. };
  263. struct ResourceWatcherService_CheckNetType_Ans
  264. {
  265. int netType;
  266. CSimpleStringA strParam;
  267. int intParam;
  268. void Serialize(SpBuffer &Buf)
  269. {
  270. auto & buf = Buf & netType & strParam & intParam;
  271. }
  272. };
  273. struct ResourceWatcherService_GetBizLinks_Req
  274. {
  275. int filter;
  276. void Serialize(SpBuffer &Buf)
  277. {
  278. auto & buf = Buf & filter;
  279. }
  280. };
  281. struct ResourceWatcherService_GetBizLinks_Ans
  282. {
  283. CAutoArray<CSimpleStringA> bizLinks;
  284. CAutoArray<CSimpleStringA> bizNames;
  285. CAutoArray<CSimpleStringA> params1;
  286. void Serialize(SpBuffer &Buf)
  287. {
  288. auto & buf = Buf & bizLinks & bizNames & params1;
  289. }
  290. };
  291. struct ResourceWatcherService_BizLinkDetect_Req
  292. {
  293. int protocol;
  294. CSimpleStringA bizLink;
  295. CSimpleStringA attachment1;
  296. CSimpleStringA attachment2;
  297. void Serialize(SpBuffer &Buf)
  298. {
  299. auto & buf = Buf & protocol & bizLink & attachment1 & attachment2;
  300. }
  301. };
  302. struct ResourceWatcherService_BizLinkDetect_Ans
  303. {
  304. bool bizLinkStatus;
  305. unsigned int bizLinkDelayMS;
  306. CSimpleStringA strParam;
  307. int intParam;
  308. void Serialize(SpBuffer &Buf)
  309. {
  310. auto & buf = Buf & bizLinkStatus & bizLinkDelayMS & strParam & intParam;
  311. }
  312. };
  313. ///////////////////////////
  314. } // namespace ResourceWatcher
  315. #endif // __RESOURCEWATCHER_DEF_G_H