123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403 |
- #ifndef __RESOURCEWATCHER_DEF_G_H
- #define __RESOURCEWATCHER_DEF_G_H
- #pragma once
- // This code is generated by spgen tool!
- #include "SpHelper.h"
- namespace ResourceWatcher {
- //
- // const goes here
- //
- #define ResourceWatcherService_Method_Fetch 0
- #define ResourceWatcherService_Method_GetDevInfo 65535
- #define ResourceWatcherService_Method_GetCardSwiper 1
- #define ResourceWatcherService_Method_GetCpuType 2
- #define ResourceWatcherService_Method_OperateFile 3
- #define ResourceWatcherService_Method_ExtractEventLog 4
- #define ResourceWatcherService_Method_UpdateDNS 5
- #define ResourceWatcherService_Method_GetNetworkInfo 6
- #define ResourceWatcherService_Method_GetThirdPartyInstallState 7
- #define ResourceWatcherService_Method_InstallThirdPartyProgram 8
- #define ResourceWatcherService_Method_CheckNetType 9
- #define ResourceWatcherService_Method_GetBizLinks 10
- #define ResourceWatcherService_Method_BizLinkDetect 11
- #define ResourceWatcherService_MethodSignature_Fetch -1944912560
- #define ResourceWatcherService_MethodSignature_GetDevInfo 296205965
- #define ResourceWatcherService_MethodSignature_GetCardSwiper 828378769
- #define ResourceWatcherService_MethodSignature_GetCpuType -1911838440
- #define ResourceWatcherService_MethodSignature_OperateFile 935567963
- #define ResourceWatcherService_MethodSignature_ExtractEventLog -1046715334
- #define ResourceWatcherService_MethodSignature_UpdateDNS -943970884
- #define ResourceWatcherService_MethodSignature_GetNetworkInfo 1741482404
- #define ResourceWatcherService_MethodSignature_GetThirdPartyInstallState -15861483
- #define ResourceWatcherService_MethodSignature_InstallThirdPartyProgram -1049249852
- #define ResourceWatcherService_MethodSignature_CheckNetType 1341887614
- #define ResourceWatcherService_MethodSignature_GetBizLinks 651862197
- #define ResourceWatcherService_MethodSignature_BizLinkDetect 1476437131
- struct ResourceWatcherService_Fetch_Req
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct ResourceWatcherService_Fetch_Ans
- {
- int reserved1;
- int reserved2;
- CSimpleStringA reserved3;
- CSimpleStringA reserved4;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & reserved1 & reserved2 & reserved3 & reserved4;
- }
- };
- struct ResourceWatcherService_GetDevInfo_Req
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct ResourceWatcherService_GetDevInfo_Ans
- {
- CSimpleStringA type;
- CSimpleStringA model;
- CSimpleStringA version;
- int state;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & type & model & version & state;
- }
- };
- struct ResourceWatcherService_GetCardSwiper_Req
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct ResourceWatcherService_GetCardSwiper_Ans
- {
- int status;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & status;
- }
- };
- struct ResourceWatcherService_GetCpuType_Req
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct ResourceWatcherService_GetCpuType_Ans
- {
- int level;
- CSimpleStringA brand;
- int reserved1;
- CSimpleStringA reserved2;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & level & brand & reserved1 & reserved2;
- }
- };
- struct ResourceWatcherService_OperateFile_Req
- {
- CSimpleStringA current;
- int mode;
- int attribute;
- CSimpleStringA content;
- int filter1;
- CSimpleStringA filter2;
- int attachment1;
- CSimpleStringA attachment2;
- CAutoArray<int> reserved1;
- CAutoArray<CSimpleStringA> reserved2;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & current & mode & attribute & content & filter1 & filter2 & attachment1 & attachment2 & reserved1 & reserved2;
- }
- };
- struct ResourceWatcherService_OperateFile_Ans
- {
- int result;
- CSimpleStringA header;
- int attachment1;
- CSimpleStringA attachment2;
- u__int64_t fileSize;
- u__int64_t ftCreate;
- u__int64_t ftModified;
- u__int64_t ftAccess;
- unsigned int fileAttribute;
- unsigned int forbidAttribute;
- int reversed1;
- CSimpleStringA reversed2;
- int count;
- CAutoArray<CSimpleStringA> fileNames;
- CAutoArray<u__int64_t> fileSizes;
- CAutoArray<u__int64_t> ftCreates;
- CAutoArray<u__int64_t> ftModifieds;
- CAutoArray<u__int64_t> ftAccesses;
- CAutoArray<unsigned int> fileAttributes;
- CAutoArray<unsigned int> forbidAttributes;
- CAutoArray<int> reserved1;
- CAutoArray<CSimpleStringA> reserved2;
- void Serialize(SpBuffer &Buf)
- {
- 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;
- }
- };
- struct ResourceWatcherService_ExtractEventLog_Req
- {
- unsigned short evtName;
- unsigned short evtLevel;
- unsigned short duration;
- u__int64_t startTime;
- u__int64_t endTime;
- CSimpleStringA cusEvtFileName;
- CSimpleStringA evtSrcEventName;
- int reversed1;
- CSimpleStringA reversed2;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & evtName & evtLevel & duration & startTime & endTime & cusEvtFileName & evtSrcEventName & reversed1 & reversed2;
- }
- };
- struct ResourceWatcherService_ExtractEventLog_Ans
- {
- unsigned int entries;
- CSimpleStringA information;
- CSimpleStringA evtLogFileName;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & entries & information & evtLogFileName;
- }
- };
- struct ResourceWatcherService_UpdateDNS_Req
- {
- CSimpleStringA interface;
- CSimpleStringA dns1;
- CSimpleStringA dns2;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & interface & dns1 & dns2;
- }
- };
- struct ResourceWatcherService_UpdateDNS_Ans
- {
- int result;
- CSimpleStringA messsge;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & result & messsge;
- }
- };
- struct ResourceWatcherService_GetNetworkInfo_Req
- {
- int filter;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & filter;
- }
- };
- struct ResourceWatcherService_GetNetworkInfo_Ans
- {
- int status;
- CSimpleStringA current;
- CAutoArray<CSimpleStringA> names;
- CAutoArray<CSimpleStringA> ips;
- CAutoArray<CSimpleStringA> macs;
- CAutoArray<CSimpleStringA> masks;
- CAutoArray<CSimpleStringA> gateways;
- CAutoArray<CSimpleStringA> dns;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & status & current & names & ips & macs & masks & gateways & dns;
- }
- };
- struct ResourceWatcherService_GetThirdPartyInstallState_Req
- {
- int mode;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & mode;
- }
- };
- struct ResourceWatcherService_GetThirdPartyInstallState_Ans
- {
- int status;
- CSimpleStringA version;
- CSimpleStringA path;
- CSimpleStringA reserverd1;
- CSimpleStringA reserverd2;
- int reserverd3;
- int reserverd4;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & status & version & path & reserverd1 & reserverd2 & reserverd3 & reserverd4;
- }
- };
- struct ResourceWatcherService_InstallThirdPartyProgram_Req
- {
- int type;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & type;
- }
- };
- struct ResourceWatcherService_InstallThirdPartyProgram_Ans
- {
- int result;
- CSimpleStringA msg;
- CSimpleStringA path;
- CSimpleStringA reserverd1;
- CSimpleStringA reserverd2;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & result & msg & path & reserverd1 & reserverd2;
- }
- };
- struct ResourceWatcherService_CheckNetType_Req
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct ResourceWatcherService_CheckNetType_Ans
- {
- int netType;
- CSimpleStringA strParam;
- int intParam;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & netType & strParam & intParam;
- }
- };
- struct ResourceWatcherService_GetBizLinks_Req
- {
- int filter;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & filter;
- }
- };
- struct ResourceWatcherService_GetBizLinks_Ans
- {
- CAutoArray<CSimpleStringA> bizLinks;
- CAutoArray<CSimpleStringA> bizNames;
- CAutoArray<CSimpleStringA> params1;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & bizLinks & bizNames & params1;
- }
- };
- struct ResourceWatcherService_BizLinkDetect_Req
- {
- int protocol;
- CSimpleStringA bizLink;
- CSimpleStringA attachment1;
- CSimpleStringA attachment2;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & protocol & bizLink & attachment1 & attachment2;
- }
- };
- struct ResourceWatcherService_BizLinkDetect_Ans
- {
- bool bizLinkStatus;
- unsigned int bizLinkDelayMS;
- CSimpleStringA strParam;
- int intParam;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & bizLinkStatus & bizLinkDelayMS & strParam & intParam;
- }
- };
- ///////////////////////////
- } // namespace ResourceWatcher
- #endif // __RESOURCEWATCHER_DEF_G_H
|