SIPPhone_def_g.h 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. #ifndef __SIPPHONE_DEF_G_H
  2. #define __SIPPHONE_DEF_G_H
  3. #pragma once
  4. // This code is generated by spgen tool!
  5. #include "SpHelper.h"
  6. namespace SIPPhone {
  7. //
  8. // const goes here
  9. //
  10. #define ePhone_Init 0
  11. #define ePhone_Calling 1
  12. #define ePhone_Proceeding 2
  13. #define ePhone_Completing 3
  14. #define ePhone_Ready 4
  15. #define ePhone_Terminating 5
  16. #define ePhone_Terminated 6
  17. #define PhoneService_Method_MakeCall 0
  18. #define PhoneService_Method_HangupCall 1
  19. #define PhoneService_Method_StartVideo 2
  20. #define PhoneService_Method_StopVideo 3
  21. #define PhoneService_Method_RealErrorCheck 4
  22. #define PhoneService_Method_ReleaseCall 5
  23. #define PhoneService_Method_BeginState 6
  24. #define PhoneService_Method_EndState 7
  25. #define PhoneService_Method_PhoneState 8
  26. #define PhoneService_Method_SetCallingParam 9
  27. #define PhoneService_Method_GetHandfreeOutVolume 10
  28. #define PhoneService_Method_SetHandfreeOutVolume 11
  29. #define PhoneService_Method_SetPickupOutVolume 12
  30. #define PhoneService_Method_GetPickupOutVolume 13
  31. #define PhoneService_Method_StartVideoRender 14
  32. #define PhoneService_Method_StopVideoRender 15
  33. #define PhoneService_MethodSignature_MakeCall -1045574280
  34. #define PhoneService_MethodSignature_HangupCall 507892508
  35. #define PhoneService_MethodSignature_StartVideo -1701170457
  36. #define PhoneService_MethodSignature_StopVideo 1247090087
  37. #define PhoneService_MethodSignature_RealErrorCheck -834081006
  38. #define PhoneService_MethodSignature_ReleaseCall 1003966534
  39. #define PhoneService_MethodSignature_BeginState -700260089
  40. #define PhoneService_MethodSignature_EndState -1780469139
  41. #define PhoneService_MethodSignature_PhoneState -731514138
  42. #define PhoneService_MethodSignature_SetCallingParam 36667377
  43. #define PhoneService_MethodSignature_GetHandfreeOutVolume 1306483555
  44. #define PhoneService_MethodSignature_SetHandfreeOutVolume 2042464727
  45. #define PhoneService_MethodSignature_SetPickupOutVolume -1088342808
  46. #define PhoneService_MethodSignature_GetPickupOutVolume 1201465844
  47. #define PhoneService_MethodSignature_StartVideoRender 1914738730
  48. #define PhoneService_MethodSignature_StopVideoRender -1920889093
  49. struct PhoneService_MakeCall_Req
  50. {
  51. CSimpleStringA to_uri;
  52. CSimpleStringA from_uri;
  53. CSimpleStringA call_id;
  54. void Serialize(SpBuffer &Buf)
  55. {
  56. auto & buf = Buf & to_uri & from_uri & call_id;
  57. }
  58. };
  59. struct PhoneService_MakeCall_Ans
  60. {
  61. void Serialize(SpBuffer &Buf)
  62. {
  63. }
  64. };
  65. struct PhoneService_HangupCall_Req
  66. {
  67. CSimpleStringA session_num;
  68. CSimpleStringA branch_server_ip;
  69. int branch_server_port;
  70. void Serialize(SpBuffer &Buf)
  71. {
  72. auto & buf = Buf & session_num & branch_server_ip & branch_server_port;
  73. }
  74. };
  75. struct PhoneService_HangupCall_Ans
  76. {
  77. void Serialize(SpBuffer &Buf)
  78. {
  79. }
  80. };
  81. struct PhoneService_StartVideo_Info
  82. {
  83. CSimpleStringA remote_ip;
  84. int remote_port;
  85. int remote_width;
  86. int remote_height;
  87. int remote_fps;
  88. int local_view_x;
  89. int local_view_y;
  90. int local_view_cx;
  91. int local_view_cy;
  92. int remote_view_x;
  93. int remote_view_y;
  94. int remote_view_cx;
  95. int remote_view_cy;
  96. int local_hwd_move;
  97. int remote_hwd_move;
  98. void Serialize(SpBuffer &Buf)
  99. {
  100. auto & buf = Buf & remote_ip & remote_port & remote_width & remote_height & remote_fps & local_view_x & local_view_y & local_view_cx & local_view_cy & remote_view_x & remote_view_y & remote_view_cx & remote_view_cy & local_hwd_move & remote_hwd_move;
  101. }
  102. };
  103. struct PhoneService_StopVideo_Info
  104. {
  105. void Serialize(SpBuffer &Buf)
  106. {
  107. }
  108. };
  109. struct PhoneService_RealErrorCheck_Info
  110. {
  111. void Serialize(SpBuffer &Buf)
  112. {
  113. }
  114. };
  115. struct PhoneService_ReleaseCall_Req
  116. {
  117. int type;
  118. void Serialize(SpBuffer &Buf)
  119. {
  120. auto & buf = Buf & type;
  121. }
  122. };
  123. struct PhoneService_ReleaseCall_Ans
  124. {
  125. void Serialize(SpBuffer &Buf)
  126. {
  127. }
  128. };
  129. struct PhoneService_BeginState_Sub
  130. {
  131. void Serialize(SpBuffer &Buf)
  132. {
  133. }
  134. };
  135. struct PhoneService_EndState_Info
  136. {
  137. void Serialize(SpBuffer &Buf)
  138. {
  139. }
  140. };
  141. struct PhoneService_PhoneState_Info
  142. {
  143. int state;
  144. CSimpleStringA status;
  145. void Serialize(SpBuffer &Buf)
  146. {
  147. auto & buf = Buf & state & status;
  148. }
  149. };
  150. struct PhoneService_SetCallingParam_Info
  151. {
  152. int CallType;
  153. CSimpleStringA connect_session;
  154. CSimpleStringA connect_ip;
  155. int connect_port;
  156. void Serialize(SpBuffer &Buf)
  157. {
  158. auto & buf = Buf & CallType & connect_session & connect_ip & connect_port;
  159. }
  160. };
  161. struct PhoneService_GetHandfreeOutVolume_Req
  162. {
  163. void Serialize(SpBuffer &Buf)
  164. {
  165. }
  166. };
  167. struct PhoneService_GetHandfreeOutVolume_Ans
  168. {
  169. int Volume;
  170. void Serialize(SpBuffer &Buf)
  171. {
  172. auto & buf = Buf & Volume;
  173. }
  174. };
  175. struct PhoneService_SetHandfreeOutVolume_Req
  176. {
  177. int Volume;
  178. void Serialize(SpBuffer &Buf)
  179. {
  180. auto & buf = Buf & Volume;
  181. }
  182. };
  183. struct PhoneService_SetHandfreeOutVolume_Ans
  184. {
  185. void Serialize(SpBuffer &Buf)
  186. {
  187. }
  188. };
  189. struct PhoneService_SetPickupOutVolume_Req
  190. {
  191. int Volume;
  192. void Serialize(SpBuffer &Buf)
  193. {
  194. auto & buf = Buf & Volume;
  195. }
  196. };
  197. struct PhoneService_SetPickupOutVolume_Ans
  198. {
  199. void Serialize(SpBuffer &Buf)
  200. {
  201. }
  202. };
  203. struct PhoneService_GetPickupOutVolume_Req
  204. {
  205. void Serialize(SpBuffer &Buf)
  206. {
  207. }
  208. };
  209. struct PhoneService_GetPickupOutVolume_Ans
  210. {
  211. int Volume;
  212. void Serialize(SpBuffer &Buf)
  213. {
  214. auto & buf = Buf & Volume;
  215. }
  216. };
  217. struct PhoneService_StartVideoRender_Info
  218. {
  219. int local_view_x;
  220. int local_view_y;
  221. int local_view_cx;
  222. int local_view_cy;
  223. int remote_view_x;
  224. int remote_view_y;
  225. int remote_view_cx;
  226. int remote_view_cy;
  227. int local_hwd_move;
  228. int remote_hwd_move;
  229. void Serialize(SpBuffer &Buf)
  230. {
  231. auto & buf = Buf & local_view_x & local_view_y & local_view_cx & local_view_cy & remote_view_x & remote_view_y & remote_view_cx & remote_view_cy & local_hwd_move & remote_hwd_move;
  232. }
  233. };
  234. struct PhoneService_StopVideoRender_Info
  235. {
  236. void Serialize(SpBuffer &Buf)
  237. {
  238. }
  239. };
  240. ///////////////////////////
  241. } // namespace SIPPhone
  242. #endif // __SIPPHONE_DEF_G_H