#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_Method_GetHandfreeOutVolume 10 #define PhoneService_Method_SetHandfreeOutVolume 11 #define PhoneService_Method_SetPickupOutVolume 12 #define PhoneService_Method_GetPickupOutVolume 13 #define PhoneService_Method_StartVideoRender 14 #define PhoneService_Method_StopVideoRender 15 #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 #define PhoneService_MethodSignature_GetHandfreeOutVolume 1306483555 #define PhoneService_MethodSignature_SetHandfreeOutVolume 2042464727 #define PhoneService_MethodSignature_SetPickupOutVolume -1088342808 #define PhoneService_MethodSignature_GetPickupOutVolume 1201465844 #define PhoneService_MethodSignature_StartVideoRender 1914738730 #define PhoneService_MethodSignature_StopVideoRender -1920889093 struct PhoneService_MakeCall_Req { CSimpleStringA to_uri; CSimpleStringA from_uri; CSimpleStringA call_id; void Serialize(SpBuffer &Buf) { auto & buf = Buf & to_uri & from_uri & call_id; } }; 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; } }; struct PhoneService_GetHandfreeOutVolume_Req { void Serialize(SpBuffer &Buf) { } }; struct PhoneService_GetHandfreeOutVolume_Ans { int Volume; void Serialize(SpBuffer &Buf) { auto & buf = Buf & Volume; } }; struct PhoneService_SetHandfreeOutVolume_Req { int Volume; void Serialize(SpBuffer &Buf) { auto & buf = Buf & Volume; } }; struct PhoneService_SetHandfreeOutVolume_Ans { void Serialize(SpBuffer &Buf) { } }; struct PhoneService_SetPickupOutVolume_Req { int Volume; void Serialize(SpBuffer &Buf) { auto & buf = Buf & Volume; } }; struct PhoneService_SetPickupOutVolume_Ans { void Serialize(SpBuffer &Buf) { } }; struct PhoneService_GetPickupOutVolume_Req { void Serialize(SpBuffer &Buf) { } }; struct PhoneService_GetPickupOutVolume_Ans { int Volume; void Serialize(SpBuffer &Buf) { auto & buf = Buf & Volume; } }; struct PhoneService_StartVideoRender_Info { 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 & 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_StopVideoRender_Info { void Serialize(SpBuffer &Buf) { } }; /////////////////////////// } // namespace SIPPhone #endif // __SIPPHONE_DEF_G_H