📄 custom_wap_config.c
字号:
/*****************************************************************************
* FUNCTION
* wap_custom_get_max_mms_post_retry_timeout
* DESCRIPTION
*
* PARAMETERS
* void
* RETURNS
*
*****************************************************************************/
kal_uint32 wap_custom_get_max_mms_post_retry_timeout(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
return WAP_CUSTOM_CFG_MMS_POST_TIMEOUT;
}
/*****************************************************************************
* FUNCTION
* wap_custom_get_max_mms_post_msg_retry_nums
* DESCRIPTION
*
* PARAMETERS
* void
* RETURNS
*
*****************************************************************************/
kal_uint32 wap_custom_get_max_mms_post_msg_retry_nums(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
return (kal_uint32) WAP_CUSTOM_CFG_MAX_MMS_POST_MSG_RETRY;
}
/*****************************************************************************
* FUNCTION
* wap_custom_get_max_mms_post_pdu_retry_nums
* DESCRIPTION
*
* PARAMETERS
* void
* RETURNS
*
*****************************************************************************/
kal_uint32 wap_custom_get_max_mms_post_pdu_retry_nums(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
return (kal_uint32) WAP_CUSTOM_CFG_MAX_MMS_POST_PDU_RETRY;
}
#endif /* JATAAYU_SUPPORT */
#ifdef OBIGO_SUPPORT
/* __CUSTPACK_MULTIBIN Johnnie BEGIN */
wap_custpack_header custpack_wap_default =
{
0,
&wap_profile_default,
&mms_profile_default,
&wap_bkm_default,
&wap_root_ca_default,
&wap_config_default,
&mms_config_default
};
/*****************************************************************************
* FUNCTION
* wap_custom_get_max_wap_prof_num
* DESCRIPTION
*
* PARAMETERS
* void
* RETURNS
*
*****************************************************************************/
kal_uint8 wap_custom_get_max_wap_prof_num(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
return CUST_WAP_PROFILE_DEFAULT->n_wap_profiles;
}
/*****************************************************************************
* FUNCTION
* wap_custom_get_max_mms_prof_num
* DESCRIPTION
*
* PARAMETERS
* void
* RETURNS
*
*****************************************************************************/
kal_uint8 wap_custom_get_max_mms_prof_num(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
return CUST_MMS_PROFILE_DEFAULT->n_mms_profiles;
}
/*****************************************************************************
* FUNCTION
* wap_custom_get_max_cache_size
* DESCRIPTION
*
* PARAMETERS
* void
* RETURNS
*
*****************************************************************************/
kal_uint32 wap_custom_get_max_cache_size(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
return CUST_WAP_CONFIG_DEFAULT->max_cache_size;
}
/*****************************************************************************
* FUNCTION
* wap_custom_get_max_bookmark_num
* DESCRIPTION
*
* PARAMETERS
* void
* RETURNS
*
*****************************************************************************/
kal_uint16 wap_custom_get_max_bookmark_num(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
return CUST_WAP_BKM_DEFAULT->max_n_bkms;
}
/*****************************************************************************
* FUNCTION
* wap_custom_get_ua_header
* DESCRIPTION
*
* PARAMETERS
* void
* RETURNS
*
*****************************************************************************/
const kal_uint8 *wap_custom_get_ua_header(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
return (const kal_uint8*)(CUST_WAP_CONFIG_DEFAULT->ua_header);
}
/*****************************************************************************
* FUNCTION
* wap_custom_get_ua_prof_url
* DESCRIPTION
*
* PARAMETERS
* void
* RETURNS
*
*****************************************************************************/
const kal_uint8 *wap_custom_get_ua_prof_url(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
return (const kal_uint8*)(CUST_WAP_CONFIG_DEFAULT->ua_prof_url);
}
/*****************************************************************************
* FUNCTION
* wap_custom_get_default_browse_timeout
* DESCRIPTION
*
* PARAMETERS
* void
* RETURNS
*
*****************************************************************************/
kal_uint32 wap_custom_get_default_browse_timeout(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
return CUST_WAP_CONFIG_DEFAULT->browse_timeout;
}
/*****************************************************************************
* FUNCTION
* wap_custom_get_max_push_msg_num
* DESCRIPTION
*
* PARAMETERS
* void
* RETURNS
*
*****************************************************************************/
kal_uint16 wap_custom_get_max_push_msg_num(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
return CUST_WAP_CONFIG_DEFAULT->max_n_push_msg;
}
/*****************************************************************************
* FUNCTION
* wap_custom_get_mms_user_agent
* DESCRIPTION
*
* PARAMETERS
* void
* RETURNS
*
*****************************************************************************/
const kal_uint8 *wap_custom_get_mms_user_agent(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
return (const kal_uint8*)(CUST_MMS_CONFIG_DEFAULT->ua_header);
}
/*****************************************************************************
* FUNCTION
* wap_custom_get_max_mms_num
* DESCRIPTION
*
* PARAMETERS
* void
* RETURNS
*
*****************************************************************************/
kal_uint16 wap_custom_get_max_mms_num(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
return CUST_MMS_CONFIG_DEFAULT->max_n_mms_msg;
}
/*****************************************************************************
* FUNCTION
* wap_custom_get_max_mms_msg_size
* DESCRIPTION
*
* PARAMETERS
* void
* RETURNS
*
*****************************************************************************/
kal_uint32 wap_custom_get_max_mms_msg_size(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
return CUST_MMS_CONFIG_DEFAULT->max_mms_size;
}
/*****************************************************************************
* FUNCTION
* wap_custom_get_max_mms_warning_num
* DESCRIPTION
*
* PARAMETERS
* void
* RETURNS
*
*****************************************************************************/
kal_uint16 wap_custom_get_max_mms_warning_num(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
return CUST_MMS_CONFIG_DEFAULT->max_n_msg_warning;
}
/*****************************************************************************
* FUNCTION
* wap_custom_get_max_mms_get_retry_timeout
* DESCRIPTION
*
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -