cms_wapmsg.h

来自「wap 协议栈 包括1.2 和2.0 由c开发 基于brew平台」· C头文件 代码 · 共 80 行

H
80
字号
/******************************************************************************

 C   H E A D E R   F I L E

 (c) Copyright MobileSoft Technology (NanJing) Co.,LTD. 2001-2002
 ALL RIGHTS RESERVED

*******************************************************************************

 Project Name: WAP STACK Ver 1.20
 
 File Name   : Cms_WAPMsg.h

 Description : To Implement Browser application

 Last Modify : 06/22/2002
 
 Written By  : Mobilesoft Technology

******************************************************************************/

#ifndef _CMS_WAPMSG_H
#define _CMS_WAPMSG_H

/**************************************************************/

#include "Cms_WAPTypes.h"

#include "Cms_WAPOctStr.h"

/**************************************************************/

enum msg_type 
{      
	NOUSE2=-1
	#define INTEGER(name)
	#define OCTSTR(name)
	#define MSG_1(type, stmt) ,type
	#include "Cms_WAPMsgDecl.h"
};


	#define INTEGER(name) CMS_S64 name
	#define OCTSTR(name) Octstr *name
	#define MSG_1(type, stmt) struct type stmt ;
	#include "Cms_WAPMsgDecl.h"


typedef struct
 {
	enum msg_type type;	

	#define INTEGER(name) 
	#define OCTSTR(name) 
	#define MSG_1(type, stmt) struct type type;
	#include "Cms_WAPMsgDecl.h"
} Msg;


/*
 * Create a new, empty Msg object. Return NULL for failure, otherwise a
 * pointer to the object.
 */
Msg *msg_create(enum msg_type type);



/*
 * Return type of the message
 */
enum msg_type msg_type(Msg *msg);


/*
 * Destroy an Msg object. All fields are also destroyed.
 */
CMS_VOID msg_destroy(Msg *msg);

#endif

⌨️ 快捷键说明

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