📄 push.h
字号:
Return: pPushListStruct
=========================================================================*/
void* ME_Push_Get_First_New(void* pvPushList);
/*========================================================================
ME_Push_SI_Expired
==========================================================================
Purpose: Check if SI is expired or not. If pvPushListStruct is NULL, then
the entire list is scanned to see if any SI in list is expired.
Params: pvPushListStruct
Return: Boolean
=========================================================================*/
BOOL ME_Push_SI_Expired(void* pvPushList, void* pvPushListStruct);
/*========================================================================
ME_Push_Find_Id
==========================================================================
Purpose: Find push with PushId in Push List
Params: pvPushId, pvPushList
Return: pPushListStruct or NULL
=========================================================================*/
void* ME_Push_Find_Id(WCHAR* pwchId, void* pvPushList);
/*========================================================================
ME_Push_Find_OldId
==========================================================================
Purpose: Find old push with PushId in Push List
Params: pvPushId, pvPushList, iLLPushId
Return: pPushListStruct or NULL
=========================================================================*/
void* ME_Push_Find_OldId(WCHAR* pwchId, void* pvPushList, UINT32 iLLPushId);
/*========================================================================
ME_Push_FindWithIdNumber
==========================================================================
Purpose: Find push with IdNumber in Push List
Params: pvPushList, iIdNumber
Return: pPushListStruct or NULL
=========================================================================*/
void* ME_Push_FindWithIdNumber(void* pvPushList, UINT16 iId);
/*========================================================================
ME_Push_Get_Oldest(void* pvPushList, INT8 iType)
==========================================================================
Purpose: Retrieve the oldest SI or SL message.
Params: pvPushList, The List
iType, What should be retrieved? SI, SL
Return: pPushListStruct or NULL
=========================================================================*/
void* ME_Push_Get_Oldest(void* pvPushList, INT8 iType) ;
/*========================================================================
ME_Push_Get_Last( void* pvPushList )
==========================================================================
Purpose: Gets last Push in Push list
Params: pvPushList
Return: pPushListStruct or NULL
=========================================================================*/
void* ME_Push_Get_Last( void* pvPushList );
/*========================================================================
ME_Push_Get_First( void* pvPushList )
==========================================================================
Purpose: Retrieve first Push in Push list
Params: pvPushList
Return: pvListElement
=========================================================================*/
void* ME_Push_Get_First( void* pvPushList );
/*========================================================================
ME_Push_Get_Next( void* pvPushList, void* pvListElement )
==========================================================================
Purpose: Retrieve next Push in Push list
Params: pvPushList, pvListElement
Return: pvNextListElement
=========================================================================*/
void* ME_Push_Get_Next( void* pvPushList, void* pvListElement );
/*========================================================================
ME_Push_Get_PushListStruct( void* pvListElement )
==========================================================================
Purpose: Retrieve last Push in Push list
Params: pvListElement
Return: pPushListStruct
=========================================================================*/
void* ME_Push_Get_PushListStruct( void* pvListElement );
/*========================================================================
ME_Push_BuildContent
==========================================================================
Purpose: Call parsing functions and build content
Params: See below
Return: pPushContentStruct
=========================================================================*/
void* ME_Push_BuildContent(void* pBodyData, UINT32 iBodyDataLen, void* vsHeaderDef,
UINT8 iPortType, UINT8 iViewID, UINT8 iNewChannelId);
/*========================================================================
ME_Push_GetNextPPListElem
==========================================================================
Purpose: Gets next postponed (PP) Push in Push list. If pvPushListStruct
equals NULL, the first PP push in list is retrieved. If NULL is
returned, no more PP pushes exist in list.
Params: pvPushList, pvPushListStruct
Return: pPushListStruct or NULL
=========================================================================*/
void* ME_Push_GetNextPPListElem( void* pvPushList, void* pvPushListStruct, UINT8 iType );
/*========================================================================
ME_Push_Create_Elem
==========================================================================
Purpose: Creates a pPushListStruct element from a pPushContentStruct.
Params: pvPushContentStruct
Return: pPushListStruct
=========================================================================*/
void* ME_Push_Create_Elem( void* pvPushContentStruct );
/*========================================================================
ME_Push_Remove_List
==========================================================================
Purpose: Removes the entire Push List and deallocates struct data
Params: pvPushList
Return: -
=========================================================================*/
void ME_Push_Remove_List( void* pvPushList );
/*========================================================================
ME_Push_ParseHeader
==========================================================================
Purpose: Parse the Push Header. Returns a pHEADERDEF
Params: vsPushHeader, iHeaderLength
Return: pHEADERDEF
=========================================================================*/
void* ME_Push_ParseHeader( void* vsPushHeader, UINT32 iLen );
/*========================================================================
ME_Push_GetPushFlag
==========================================================================
Purpose: Retrieves the Push Flag from the Push Header.
Params: vsHeaderDef
Return: UINT8
=========================================================================*/
UINT8 ME_Push_GetPushFlag( void* vsHeaderDef );
/*========================================================================
ME_Push_GetXInitiatorURI
==========================================================================
Purpose: Retrieves the X-Initiator-URI from the Push Header.
Params: vsHeaderDef
Return: Url (BYTE*)
=========================================================================*/
void* ME_Push_GetXInitiatorURI( void* vsHeaderDef );
/*========================================================================
ME_Push_GetXContentURI
==========================================================================
Purpose: Retrieves the X-Content-URI from the Push Header.
Params: vsHeaderDef
Return: Url (BYTE*)
=========================================================================*/
void* ME_Push_GetXContentURI( void* vsHeaderDef );
/*========================================================================
ME_Push_GetXAppId
==========================================================================
Purpose: Retrieves the X-Application-Id from the Push Header.
Params: vsHeaderDef
Return: TRUE if X-WAP-Applicatin-Id was provided in the header , FALSE otherwise
=========================================================================*/
BOOL ME_Push_GetXAppId( void* vsHeaderDef, long int* iPortType);
/*========================================================================
ME_Push_GetContentType
==========================================================================
Purpose: Retrieves the content type from the Push Header.
Params: vsHeaderDef
Return: UINT8
=========================================================================*/
UINT8 ME_Push_GetContentType( void* vsHeaderDef );
/*========================================================================
ME_Push_SecurityOk
==========================================================================
Purpose: Check if security levels match.
Params: Push Flag, Seurity Level
Return: TRUE if Ok, FALSE otherwise
=========================================================================*/
BOOL ME_Push_SecurityOk(UINT8 iPushFlag);
/*========================================================================
ME_Push_BuildCO
==========================================================================
Purpose: Call parsing functions and build content for an CO.
Params: void* pPushBody, UINT32 iBodyDataLen, iType
Return: pELEMENTTYPE (CO parser structure type)
=========================================================================*/
void* ME_Push_BuildCO(void* pBodyData, UINT32 iBodyDataLen, void* vsHeaderDef,
UINT8 iViewID);
/*========================================================================
ME_Push_GetAddress
==========================================================================
Purpose: Get contact point from SIA content
Params: void*
Return: BYTE* (address type)
=========================================================================*/
void* ME_Push_GetAddress( void* pBodyHandle, UINT32 iBodyLen );
/*========================================================================
ME_Push_GetAppId
==========================================================================
Purpose: Get App Id from SIA content
Params: void*
Return: UINT8
=========================================================================*/
UINT8 ME_Push_GetAppId( void* pBodyHandle, UINT32 iBodyLen );
/*========================================================================
ME_Push_COCompareAuth
==========================================================================
Purpose: Compare Authority parts of two urls.
Params: vsUrl1, vsUrl2
Return: TRUE if equal, FALSE if not
=========================================================================*/
BOOL ME_Push_COCompareAuth( void* vsUrl1, void* vsUrl2 );
/*========================================================================
ME_Push_Remove_SignalList
==========================================================================
Purpose: Removes the entire Signal List and deallocates struct data
Params: pvPushList
Return: -
=========================================================================*/
void ME_Push_Remove_SignalList( void* pvSignalList );
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -