cms_wtptimer.h
来自「wap 协议栈 包括1.2 和2.0 由c开发 基于brew平台」· C头文件 代码 · 共 98 行
H
98 行
/****************************************************************************/
/* */
/* MOBILESOFT CHINA (CMS) SYSTEMS, INC. */
/* WIRELESS APPLICATION DESIGN CENTER (NANJING CHINA) */
/* */
/****************************************************************************/
/* */
/* CMS CONFIDENTIAL AND PROPRIETARY */
/* */
/* This source is the sole property of CMS Systems, Inc. Reproduction */
/* or utilization of this source in whole or in part is forbidden without */
/* the written consent of CMS Systems, Inc. */
/* */
/* (c) Copyright CMS Systems, Inc., 2000. All Rights Reserved. */
/* */
/****************************************************************************/
/* */
/* wtp_timer.h */
/* */
/****************************************************************************/
/*--------------------------------------------------------------------------*/
/* Date | author | Description | version */
/*--------------------------------------------------------------------------*/
/* 06/12/00 | Xiaogang Xu | Creation | 1.2 */
/*--------------------------------------------------------------------------*/
/****************************************************************************/
#ifndef WTP_TIMER_H
#define WTP_TIMER_H
typedef struct WTPTimer WTPTimer;
#include "Cms_WTP.h"
struct WTPTimer {
long start_time;
long interval;
WTPMachine *machine;
WTPEvent *event;
};
extern void mms_StartTimer(unsigned long TimerID,long v_MiliSecond);
extern void mms_StopTimer (unsigned long TimerID);
/*
* Initialize timers data structure. This function MUST be called before others.
* This function is put in wapbox.c -- bugger
*/
void wtp_timer_init(void);
/*
* Shut down all timers. This function MUST be called after timers aren't
* needed anymore.
*/
void wtp_timer_shutdown(void);
/*
* Create and initialize a WTPTimer object.
*/
WTPTimer *wtp_timer_create(void);
/*
* Destroy a WTPTimer object. It is implicitly stopped as well.
*/
void wtp_timer_destroy(WTPTimer *timer);
/*
* Start the timer.
*/
void wtp_timer_start(WTPTimer *timer, long interval);
/*
* Stop the timer.
*/
void wtp_timer_stop(WTPTimer *timer);
/*
* Check all timers and see whether they have elapsed, and if they have,
* send the event. (The timer is then stopped, of course.)
*/
int wtp_timer_check(WTPTimer *timer);
/*
* Print all fields of a timer, using the project debugging function
*/
void wtp_timer_dump(WTPTimer *timer);
int wtp_timer_timeleft(WTPTimer *timer);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?