wsp_push_client.h
资源名称:gateway-1.2.1 [点击查看]
上传用户:gzpyjq
上传日期:2013-01-31
资源大小:1852k
文件大小:1k
源码类别:
手机WAP编程
开发平台:
WINDOWS
- /*
- * wsp_push_client.h: push client (for testing) interface
- *
- * By Aarno Syv鋘en for Wapit Ltd.
- */
- #ifndef WSP_PUSH_CLIENT_H
- #define WSP_PUSH_CLIENT_H
- typedef struct WSPPushClientMachine WSPPushClientMachine;
- #include "gwlib/gwlib.h"
- #include "wap_addr.h"
- #include "wap_events.h"
- #include "wap.h"
- /*
- * Push client states
- */
- enum push_client_states {
- #define PUSH_CLIENT_STATE_NAME(state) state,
- #define ROW(state, event, condition, action, next_state)
- #include "wsp_push_client_states.def"
- push_client_states_count
- };
- typedef enum push_client_states push_client_states;
- /*
- * Declaration of push client state machine. We define one macro for every
- * separate type.
- */
- struct WSPPushClientMachine {
- long cpid;
- #define INTEGER(name) long name;
- #define HTTPHEADERS(name) List *name;
- #define OCTSTR(name) Octstr *name;
- #define MACHINE(fields) fields
- #include "wsp_push_client_machine.def"
- };
- #endif