SKYENGINE API  参考手册返回目录  

 
int32 mr_platEx

(int32 code = 1108,
uint8* input,
int32 input_len,
uint8** output,
int32* output_len,
MR_PLAT_EX_CB* cb
)



Description
从缓存中读取apn信息。
Parameters

Name Description
input
input_len
output T_DSM_DATA_ACCOUNT数据结构指针
output_len T_DSM_DATA_ACCOUNT数据结构大小
cb

Return Value

MR_SUCCESS                       请求成功
MR_FAILED                          请求失败
MR_IGNORE                         不支持该功能

Remarks

Apn的数据结果如下:
typedef struct
{
    uint8 authentication_type;
    uint8 user_name[32];
    uint8 password[32];
    uint8 dns[4];
    uint8 apn[100];
}T_DSM_DATA_ACCOUNT;

Example

/*mrp code*/

T_DSM_DATA_ACCOUNT *apnInfo = NULL;
int32 len;

mrc_platEx( 1108, NULL, 0, (uint8**)&apnInfo, (int32*)&len, NULL );
mrc_printf(  "authentication_type:%d, user_name:%s, password:%s, dns:%s, apn:%s",apnInfo->authentication_type, apnInfo->user_name, apnInfo->password, apnInfo->dns, apnInfo->apn );

See Also

 


Copyright ?2005-20010 SKY-MOBI

返回目录