app_infos.c

来自「基于3G arena平台的控件测试用例。用于3G手机」· C语言 代码 · 共 49 行

C
49
字号
/*******************************************************************************
    Copyright(c) 1998 - 2006 DaTang Mobile Communications Equipment CO.,LTD.
    All Rights Reserved. By using this module you agree to the terms of the
    DaTang Mobile Communications Equipment CO.,LTD License Agreement for it.
*******************************************************************************/

/******************************************************************************
* Filename	: app_infos.c														       
*
* Description : define apps infos 
*
* Notes		: N/A
*
*******************************************************************************/
#include "app_infos.h"
#include "TestControls.h"

extern BOOL Local_register(HAPP);

APP_REGISTER app_init_pfn_a[] = 
{
    Local_register,
};

UINT32 app_init_pfn_size = sizeof(app_init_pfn_a) / sizeof(app_init_pfn_a[0]);

BOOL Local_register(HAPP happ)
{
    APP_STATIC_INFO asi;
    memset(&asi, 0, sizeof(asi));
    
    asi.app_start_func_ptr = app_Local_start;
    asi.app_resume_func_ptr = app_Local_resume;
    asi.app_pause_func_ptr = app_Local_pause;
    asi.app_stop_func_ptr = app_Local_stop;
    asi.id = APP_ID_LOCAL;
    strncpy(asi.name, "sdk demo", MAX_APP_NAME_LEN - 1);
    asi.name[MAX_APP_NAME_LEN - 1] = '\0';
    asi.priority = APP_PRI_NORMAL;
    asi.type = TYPE_LOCAL;
     
    app_reg_app_ams(happ, &asi);
    app_reg_app_name(happ, "sdk demo");
    app_reg_app_entry(happ, app_Local_entry);

    return TRUE;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?