⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 app_infos.c

📁 SDK3G应用
💻 C
字号:
/*******************************************************************************
    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 "notepad.h"

extern BOOL notepad_register(HAPP);

APP_REGISTER app_init_pfn_a[] = 
{
    notepad_register,
};

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

BOOL notepad_register(HAPP happ)
{
    APP_STATIC_INFO asi;
    memset(&asi, 0, sizeof(asi));
    
    asi.app_start_func_ptr = app_notepad_start;
    asi.app_resume_func_ptr = app_notepad_resume;
    asi.app_pause_func_ptr = app_notepad_pause;
    asi.app_stop_func_ptr = app_notepad_stop;
    asi.id = APP_ID_NOTEPAD;
    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_notepad_entry);

    return TRUE;
}

⌨️ 快捷键说明

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