AccessAuthorization_def_g.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. #ifndef __ACCESSAUTHORIZATION_DEF_G_H
  2. #define __ACCESSAUTHORIZATION_DEF_G_H
  3. #pragma once
  4. // This code is generated by spgen tool!
  5. #include "SpHelper.h"
  6. namespace AccessAuthorization {
  7. //
  8. // const goes here
  9. //
  10. #define AccessAuthService_Method_Regist 0
  11. #define AccessAuthService_Method_Unregist 1
  12. #define AccessAuthService_Method_Reregist 2
  13. #define AccessAuthService_Method_PushTerminalStage 3
  14. #define AccessAuthService_Method_InitDev 4
  15. #define AccessAuthService_Method_SyncTime 5
  16. #define AccessAuthService_MethodSignature_Regist -1850909100
  17. #define AccessAuthService_MethodSignature_Unregist 667273038
  18. #define AccessAuthService_MethodSignature_Reregist 244018505
  19. #define AccessAuthService_MethodSignature_PushTerminalStage 140018436
  20. #define AccessAuthService_MethodSignature_InitDev 261099284
  21. #define AccessAuthService_MethodSignature_SyncTime -1916221832
  22. struct AccessAuthService_Regist_Info
  23. {
  24. void Serialize(SpBuffer &Buf)
  25. {
  26. }
  27. };
  28. struct AccessAuthService_Unregist_Info
  29. {
  30. int nReason;
  31. int nWay;
  32. void Serialize(SpBuffer &Buf)
  33. {
  34. auto & buf = Buf & nReason & nWay;
  35. }
  36. };
  37. struct AccessAuthService_Reregist_Info
  38. {
  39. void Serialize(SpBuffer &Buf)
  40. {
  41. }
  42. };
  43. struct AccessAuthService_PushTerminalStage_Info
  44. {
  45. char cNewStage;
  46. unsigned int dwNewStageTime;
  47. char cOldStage;
  48. unsigned int dwOldStageTime;
  49. void Serialize(SpBuffer &Buf)
  50. {
  51. auto & buf = Buf & cNewStage & dwNewStageTime & cOldStage & dwOldStageTime;
  52. }
  53. };
  54. struct AccessAuthService_InitDev_Req
  55. {
  56. CSimpleStringA EncR1;
  57. CSimpleStringA EncR3;
  58. CSimpleStringA R2;
  59. CSimpleStringA EncDevPubKey;
  60. CSimpleStringA Vendor;
  61. void Serialize(SpBuffer &Buf)
  62. {
  63. auto & buf = Buf & EncR1 & EncR3 & R2 & EncDevPubKey & Vendor;
  64. }
  65. };
  66. struct AccessAuthService_InitDev_Ans
  67. {
  68. CSimpleStringA R1;
  69. CSimpleStringA R3;
  70. CSimpleStringA EncR2;
  71. void Serialize(SpBuffer &Buf)
  72. {
  73. auto & buf = Buf & R1 & R3 & EncR2;
  74. }
  75. };
  76. struct AccessAuthService_SyncTime_Info
  77. {
  78. void Serialize(SpBuffer &Buf)
  79. {
  80. //½â¾ösonarɨÃè¿Õº¯ÊýÎÊÌâ
  81. }
  82. };
  83. ///////////////////////////
  84. } // namespace AccessAuthorization
  85. #endif // __ACCESSAUTHORIZATION_DEF_G_H