ResourceWatcher_def_g.h 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525
  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_CheckNetType 5
  17. #define ResourceWatcherService_Method_GetBizLinks 6
  18. #define ResourceWatcherService_Method_BizLinkDetect 7
  19. #define ResourceWatcherService_Method_UpdateDNS 8
  20. #define ResourceWatcherService_Method_GetNetworkInfo 9
  21. #define ResourceWatcherService_Method_GetThirdPartyInstallState 10
  22. #define ResourceWatcherService_Method_InstallThirdPartyProgram 11
  23. #define ResourceWatcherService_Method_GetTerminalVersionList 12
  24. #define ResourceWatcherService_Method_ManipulateVersion 13
  25. #define ResourceWatcherService_MethodSignature_Fetch -1944912560
  26. #define ResourceWatcherService_MethodSignature_GetDevInfo 296205965
  27. #define ResourceWatcherService_MethodSignature_GetCardSwiper 828378769
  28. #define ResourceWatcherService_MethodSignature_GetCpuType -1911838440
  29. #define ResourceWatcherService_MethodSignature_OperateFile 935567963
  30. #define ResourceWatcherService_MethodSignature_ExtractEventLog -1046715334
  31. #define ResourceWatcherService_MethodSignature_CheckNetType 1341887614
  32. #define ResourceWatcherService_MethodSignature_GetBizLinks 651862197
  33. #define ResourceWatcherService_MethodSignature_BizLinkDetect 1476437131
  34. #define ResourceWatcherService_MethodSignature_UpdateDNS 689391692
  35. #define ResourceWatcherService_MethodSignature_GetNetworkInfo -799638104
  36. #define ResourceWatcherService_MethodSignature_GetThirdPartyInstallState -15861483
  37. #define ResourceWatcherService_MethodSignature_InstallThirdPartyProgram -1049249852
  38. #define ResourceWatcherService_MethodSignature_GetTerminalVersionList -504582702
  39. #define ResourceWatcherService_MethodSignature_ManipulateVersion -313717631
  40. struct ResourceWatcherService_Fetch_Req
  41. {
  42. void Serialize(SpBuffer &Buf)
  43. {
  44. }
  45. };
  46. struct ResourceWatcherService_Fetch_Ans
  47. {
  48. int reserved1;
  49. int reserved2;
  50. CSimpleStringA reserved3;
  51. CSimpleStringA reserved4;
  52. void Serialize(SpBuffer &Buf)
  53. {
  54. auto & buf = Buf & reserved1 & reserved2 & reserved3 & reserved4;
  55. }
  56. };
  57. struct ResourceWatcherService_GetDevInfo_Req
  58. {
  59. void Serialize(SpBuffer &Buf)
  60. {
  61. }
  62. };
  63. struct ResourceWatcherService_GetDevInfo_Ans
  64. {
  65. CSimpleStringA type;
  66. CSimpleStringA model;
  67. CSimpleStringA version;
  68. int state;
  69. void Serialize(SpBuffer &Buf)
  70. {
  71. auto & buf = Buf & type & model & version & state;
  72. }
  73. };
  74. struct ResourceWatcherService_GetCardSwiper_Req
  75. {
  76. void Serialize(SpBuffer &Buf)
  77. {
  78. }
  79. };
  80. struct ResourceWatcherService_GetCardSwiper_Ans
  81. {
  82. int status;
  83. void Serialize(SpBuffer &Buf)
  84. {
  85. auto & buf = Buf & status;
  86. }
  87. };
  88. struct ResourceWatcherService_GetCpuType_Req
  89. {
  90. void Serialize(SpBuffer &Buf)
  91. {
  92. }
  93. };
  94. struct ResourceWatcherService_GetCpuType_Ans
  95. {
  96. int level;
  97. CSimpleStringA brand;
  98. int reserved1;
  99. CSimpleStringA reserved2;
  100. void Serialize(SpBuffer &Buf)
  101. {
  102. auto & buf = Buf & level & brand & reserved1 & reserved2;
  103. }
  104. };
  105. struct ResourceWatcherService_OperateFile_Req
  106. {
  107. CSimpleStringA current;
  108. int mode;
  109. int attribute;
  110. CSimpleStringA content;
  111. int filter1;
  112. CSimpleStringA filter2;
  113. int attachment1;
  114. CSimpleStringA attachment2;
  115. CAutoArray<int> reserved1;
  116. CAutoArray<CSimpleStringA> reserved2;
  117. void Serialize(SpBuffer &Buf)
  118. {
  119. auto & buf = Buf & current & mode & attribute & content & filter1 & filter2 & attachment1 & attachment2 & reserved1 & reserved2;
  120. }
  121. };
  122. struct ResourceWatcherService_OperateFile_Ans
  123. {
  124. int result;
  125. CSimpleStringA header;
  126. int attachment1;
  127. CSimpleStringA attachment2;
  128. u__int64_t fileSize;
  129. u__int64_t ftCreate;
  130. u__int64_t ftModified;
  131. u__int64_t ftAccess;
  132. unsigned int fileAttribute;
  133. unsigned int forbidAttribute;
  134. int reversed1;
  135. CSimpleStringA reversed2;
  136. int count;
  137. CAutoArray<CSimpleStringA> fileNames;
  138. CAutoArray<u__int64_t> fileSizes;
  139. CAutoArray<u__int64_t> ftCreates;
  140. CAutoArray<u__int64_t> ftModifieds;
  141. CAutoArray<u__int64_t> ftAccesses;
  142. CAutoArray<unsigned int> fileAttributes;
  143. CAutoArray<unsigned int> forbidAttributes;
  144. CAutoArray<int> reserved1;
  145. CAutoArray<CSimpleStringA> reserved2;
  146. void Serialize(SpBuffer &Buf)
  147. {
  148. 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;
  149. }
  150. };
  151. struct ResourceWatcherService_ExtractEventLog_Req
  152. {
  153. unsigned short evtName;
  154. unsigned short evtLevel;
  155. unsigned short duration;
  156. u__int64_t startTime;
  157. u__int64_t endTime;
  158. CSimpleStringA cusEvtFileName;
  159. CSimpleStringA evtSrcEventName;
  160. int reversed1;
  161. CSimpleStringA reversed2;
  162. void Serialize(SpBuffer &Buf)
  163. {
  164. auto & buf = Buf & evtName & evtLevel & duration & startTime & endTime & cusEvtFileName & evtSrcEventName & reversed1 & reversed2;
  165. }
  166. };
  167. struct ResourceWatcherService_ExtractEventLog_Ans
  168. {
  169. unsigned int entries;
  170. CSimpleStringA information;
  171. CSimpleStringA evtLogFileName;
  172. void Serialize(SpBuffer &Buf)
  173. {
  174. auto & buf = Buf & entries & information & evtLogFileName;
  175. }
  176. };
  177. struct ResourceWatcherService_CheckNetType_Req
  178. {
  179. void Serialize(SpBuffer &Buf)
  180. {
  181. }
  182. };
  183. struct ResourceWatcherService_CheckNetType_Ans
  184. {
  185. int netType;
  186. CSimpleStringA strParam;
  187. int intParam;
  188. void Serialize(SpBuffer &Buf)
  189. {
  190. auto & buf = Buf & netType & strParam & intParam;
  191. }
  192. };
  193. struct ResourceWatcherService_GetBizLinks_Req
  194. {
  195. int filter;
  196. void Serialize(SpBuffer &Buf)
  197. {
  198. auto & buf = Buf & filter;
  199. }
  200. };
  201. struct ResourceWatcherService_GetBizLinks_Ans
  202. {
  203. CAutoArray<CSimpleStringA> bizLinks;
  204. CAutoArray<CSimpleStringA> bizNames;
  205. CAutoArray<CSimpleStringA> params1;
  206. void Serialize(SpBuffer &Buf)
  207. {
  208. auto & buf = Buf & bizLinks & bizNames & params1;
  209. }
  210. };
  211. struct ResourceWatcherService_BizLinkDetect_Req
  212. {
  213. int protocol;
  214. CSimpleStringA bizLink;
  215. CSimpleStringA attachment1;
  216. CSimpleStringA attachment2;
  217. void Serialize(SpBuffer &Buf)
  218. {
  219. auto & buf = Buf & protocol & bizLink & attachment1 & attachment2;
  220. }
  221. };
  222. struct ResourceWatcherService_BizLinkDetect_Ans
  223. {
  224. bool bizLinkStatus;
  225. unsigned int bizLinkDelayMS;
  226. CSimpleStringA strParam;
  227. int intParam;
  228. void Serialize(SpBuffer &Buf)
  229. {
  230. auto & buf = Buf & bizLinkStatus & bizLinkDelayMS & strParam & intParam;
  231. }
  232. };
  233. struct ResourceWatcherService_UpdateDNS_Req
  234. {
  235. CSimpleStringA interface;
  236. CSimpleStringA dns1;
  237. CSimpleStringA dns2;
  238. void Serialize(SpBuffer &Buf)
  239. {
  240. auto & buf = Buf & interface & dns1 & dns2;
  241. }
  242. };
  243. struct ResourceWatcherService_UpdateDNS_Ans
  244. {
  245. int result;
  246. CSimpleStringA messsge;
  247. void Serialize(SpBuffer &Buf)
  248. {
  249. auto & buf = Buf & result & messsge;
  250. }
  251. };
  252. struct ResourceWatcherService_GetNetworkInfo_Req
  253. {
  254. int filter;
  255. void Serialize(SpBuffer &Buf)
  256. {
  257. auto & buf = Buf & filter;
  258. }
  259. };
  260. struct ResourceWatcherService_GetNetworkInfo_Ans
  261. {
  262. int status;
  263. CSimpleStringA current;
  264. CAutoArray<CSimpleStringA> names;
  265. CAutoArray<CSimpleStringA> ips;
  266. CAutoArray<CSimpleStringA> macs;
  267. CAutoArray<CSimpleStringA> masks;
  268. CAutoArray<CSimpleStringA> gateways;
  269. CAutoArray<CSimpleStringA> dns;
  270. void Serialize(SpBuffer &Buf)
  271. {
  272. auto & buf = Buf & status & current & names & ips & macs & masks & gateways & dns;
  273. }
  274. };
  275. struct ResourceWatcherService_GetThirdPartyInstallState_Req
  276. {
  277. int mode;
  278. void Serialize(SpBuffer &Buf)
  279. {
  280. auto & buf = Buf & mode;
  281. }
  282. };
  283. struct ResourceWatcherService_GetThirdPartyInstallState_Ans
  284. {
  285. int status;
  286. CSimpleStringA version;
  287. CSimpleStringA path;
  288. CSimpleStringA reserverd1;
  289. CSimpleStringA reserverd2;
  290. int reserverd3;
  291. int reserverd4;
  292. void Serialize(SpBuffer &Buf)
  293. {
  294. auto & buf = Buf & status & version & path & reserverd1 & reserverd2 & reserverd3 & reserverd4;
  295. }
  296. };
  297. struct ResourceWatcherService_InstallThirdPartyProgram_Req
  298. {
  299. int type;
  300. void Serialize(SpBuffer &Buf)
  301. {
  302. auto & buf = Buf & type;
  303. }
  304. };
  305. struct ResourceWatcherService_InstallThirdPartyProgram_Ans
  306. {
  307. int result;
  308. CSimpleStringA msg;
  309. CSimpleStringA path;
  310. CSimpleStringA reserverd1;
  311. CSimpleStringA reserverd2;
  312. void Serialize(SpBuffer &Buf)
  313. {
  314. auto & buf = Buf & result & msg & path & reserverd1 & reserverd2;
  315. }
  316. };
  317. struct ResourceWatcherService_GetTerminalVersionList_Req
  318. {
  319. int filter1;
  320. int filter2;
  321. int filter3;
  322. CSimpleStringA filter4;
  323. void Serialize(SpBuffer &Buf)
  324. {
  325. auto & buf = Buf & filter1 & filter2 & filter3 & filter4;
  326. }
  327. };
  328. struct ResourceWatcherService_GetTerminalVersionList_Ans
  329. {
  330. int current;
  331. CAutoArray<int> index;
  332. CAutoArray<CSimpleStringA> version;
  333. CAutoArray<CSimpleStringA> remark;
  334. CAutoArray<int> type;
  335. CAutoArray<int> status;
  336. CSimpleStringA msg;
  337. void Serialize(SpBuffer &Buf)
  338. {
  339. auto & buf = Buf & current & index & version & remark & type & status & msg;
  340. }
  341. };
  342. struct ResourceWatcherService_ManipulateVersion_Req
  343. {
  344. int operation;
  345. CSimpleStringA value;
  346. int additional1;
  347. int additional2;
  348. CSimpleStringA additional3;
  349. void Serialize(SpBuffer &Buf)
  350. {
  351. auto & buf = Buf & operation & value & additional1 & additional2 & additional3;
  352. }
  353. };
  354. struct ResourceWatcherService_ManipulateVersion_Ans
  355. {
  356. int result;
  357. int addition;
  358. CSimpleStringA msg;
  359. void Serialize(SpBuffer &Buf)
  360. {
  361. auto & buf = Buf & result & addition & msg;
  362. }
  363. };
  364. struct ResourceWatcherService_GetTerminalVersionList_Req
  365. {
  366. int filter1;
  367. int filter2;
  368. int filter3;
  369. CSimpleStringA filter4;
  370. void Serialize(SpBuffer &Buf)
  371. {
  372. auto & buf = Buf & filter1 & filter2 & filter3 & filter4;
  373. }
  374. };
  375. struct ResourceWatcherService_GetTerminalVersionList_Ans
  376. {
  377. int current;
  378. CAutoArray<int> index;
  379. CAutoArray<CSimpleStringA> version;
  380. CAutoArray<CSimpleStringA> remark;
  381. CAutoArray<int> type;
  382. CAutoArray<int> status;
  383. CSimpleStringA msg;
  384. void Serialize(SpBuffer &Buf)
  385. {
  386. auto & buf = Buf & current & index & version & remark & type & status & msg;
  387. }
  388. };
  389. struct ResourceWatcherService_ManipulateVersion_Req
  390. {
  391. int operation;
  392. CSimpleStringA value;
  393. int additional1;
  394. int additional2;
  395. CSimpleStringA additional3;
  396. void Serialize(SpBuffer &Buf)
  397. {
  398. auto & buf = Buf & operation & value & additional1 & additional2 & additional3;
  399. }
  400. };
  401. struct ResourceWatcherService_ManipulateVersion_Ans
  402. {
  403. int result;
  404. int addition;
  405. CSimpleStringA msg;
  406. void Serialize(SpBuffer &Buf)
  407. {
  408. auto & buf = Buf & result & addition & msg;
  409. }
  410. };
  411. ///////////////////////////
  412. } // namespace ResourceWatcher
  413. #endif // __RESOURCEWATCHER_DEF_G_H