123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198 |
- #ifndef __SIPPHONE_DEF_G_H
- #define __SIPPHONE_DEF_G_H
- #pragma once
- // This code is generated by spgen tool!
- #include "SpHelper.h"
- namespace SIPPhone {
- //
- // const goes here
- //
- #define ePhone_Init 0
- #define ePhone_Calling 1
- #define ePhone_Proceeding 2
- #define ePhone_Completing 3
- #define ePhone_Ready 4
- #define ePhone_Terminating 5
- #define ePhone_Terminated 6
- #define PhoneService_Method_MakeCall 0
- #define PhoneService_Method_HangupCall 1
- #define PhoneService_Method_StartVideo 2
- #define PhoneService_Method_StopVideo 3
- #define PhoneService_Method_RealErrorCheck 4
- #define PhoneService_Method_ReleaseCall 5
- #define PhoneService_Method_BeginState 6
- #define PhoneService_Method_EndState 7
- #define PhoneService_Method_PhoneState 8
- #define PhoneService_Method_SetCallingParam 9
- #define PhoneService_MethodSignature_MakeCall -1045574280
- #define PhoneService_MethodSignature_HangupCall 507892508
- #define PhoneService_MethodSignature_StartVideo -1701170457
- #define PhoneService_MethodSignature_StopVideo 1247090087
- #define PhoneService_MethodSignature_RealErrorCheck -834081006
- #define PhoneService_MethodSignature_ReleaseCall 1003966534
- #define PhoneService_MethodSignature_BeginState -700260089
- #define PhoneService_MethodSignature_EndState -1780469139
- #define PhoneService_MethodSignature_PhoneState -731514138
- #define PhoneService_MethodSignature_SetCallingParam 36667377
- struct PhoneService_MakeCall_Req
- {
- CSimpleStringA call_uri;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & call_uri;
- }
- };
- struct PhoneService_MakeCall_Ans
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct PhoneService_HangupCall_Req
- {
- CSimpleStringA session_num;
- CSimpleStringA branch_server_ip;
- int branch_server_port;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & session_num & branch_server_ip & branch_server_port;
- }
- };
- struct PhoneService_HangupCall_Ans
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct PhoneService_StartVideo_Info
- {
- CSimpleStringA remote_ip;
- int remote_port;
- int remote_width;
- int remote_height;
- int remote_fps;
- int local_view_x;
- int local_view_y;
- int local_view_cx;
- int local_view_cy;
- int remote_view_x;
- int remote_view_y;
- int remote_view_cx;
- int remote_view_cy;
- int local_hwd_move;
- int remote_hwd_move;
- void Serialize(SpBuffer &Buf)
- {
- 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;
- }
- };
- struct PhoneService_StopVideo_Info
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct PhoneService_RealErrorCheck_Info
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct PhoneService_ReleaseCall_Req
- {
- int type;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & type;
- }
- };
- struct PhoneService_ReleaseCall_Ans
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct PhoneService_BeginState_Sub
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct PhoneService_EndState_Info
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct PhoneService_PhoneState_Info
- {
- int state;
- CSimpleStringA status;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & state & status;
- }
- };
- struct PhoneService_SetCallingParam_Info
- {
- int CallType;
- CSimpleStringA connect_session;
- CSimpleStringA connect_ip;
- int connect_port;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & CallType & connect_session & connect_ip & connect_port;
- }
- };
- ///////////////////////////
- } // namespace SIPPhone
- #endif // __SIPPHONE_DEF_G_H
|