ResourceWatcher_def_g.h 13 KB

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