swf.h
上传用户:fy98168
上传日期:2015-06-26
资源大小:13771k
文件大小:2k
- /*-----------------------------------------------------------------------------
- | @(#) swf.h
- |
- | Keybridge: The storage about the flash movie.
- |
- | THIS SOFTWARE IS THE SOLE PROPRIETY OF SHENZHEN KEYBRIDGE COMMUNICATIONS CO.,
- | LTD. AND CANNOT BE PUBLISHED, MODIFIED, REPRODUCED, OR TRANSMITTED, IN PART OR
- | IN WHOLE, IN ANY FORM WHATSOEVER, WITHOUT THE PRIOR WRITTEN PERMISSION OF
- | SHENZHEN KEYBRIDGE COMMUNICATIONS CO., LTD.
- |
- | COPYRIGHT (C) 2006-2007. SHENZHEN KEYBRIDGE COMMUNICATIONS CO., LTD.
- | ALL RIGHTS RESERVED.
- +----------------------------------------------------------------------------*/
- #ifndef SWF_H
- #define SWF_H
- #include "kb_machblue_client.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- /*----------------------------------------------------------
- | Macro definition below this line
- +----------------------------------------------------------*/
-
- #define LOGO_FLASH_MOVIE_ADDRESS_START 72 //0x40480000
- #define MENU_FLASH_MOVIE_ADDRESS_START 80 //0x40500000
- /*----------------------------------------------------------
- | Type definition below this line
- +----------------------------------------------------------*/
- typedef struct kb_swf_save_s
- {
- unsigned char version;
- kb_movie_name name;
- unsigned long size;
- unsigned char *data;
- struct kb_swf_save_s *pNext;
- }kb_swf_save_t;
- typedef struct kb_swf_s
- {
- kb_swf_save_t *kb_swf;
- unsigned char count;
- }kb_swf_t;
- //外部函数声明
- extern void KB_SWF_INIT(void);
- extern unsigned char KB_SWF_VersionGet(unsigned char type);
- extern KB_DBRET KB_SWF_Update(KB_MovieInfoNode *menuUpdate);
- extern unsigned char * KB_Swf_GetLogo( unsigned long *sizeMovie);
- extern unsigned char * KB_Swf_GetLogoSound(unsigned long *sizeSound);
- extern unsigned char * KB_Swf_GetMenuByName(kb_movie_name name,unsigned long *size);
- //下边这个函数应该归于其他模块,以后用的时候改去其他模块定义
- extern KB_DBRET KB_FlashRead_Offset( UINT32 secID,UINT32 Offset,UINT8 *Buffer,UINT32 NumberToRead);
- #ifdef __cplusplus
- }
- #endif
- #endif