📄 statemachine.h
字号:
/***************************************************************************
*
* Module: statemachine.h
*
* Description:
*
* Author: chenjian
*
* Copyright 1999, BEP Technologies, Inc., All rights reserved
*
*
* Change Log:
*
* Date By Description
* ========== =========== ==========================================
* 10/15/2003 chenjian Created
*
***************************************************************************/
#ifndef __STATEMACHINE_H__
#define __STATEMACHINE_H__
/*
#define H323
#define SIP
*/
#ifdef __cplusplus
extern "C" {
#endif
#include "task.h"
typedef struct
{
int iEvent;
int iState;
f_action funcAck;
} s_event_ack;
typedef struct s_state
{
int iSize;
s_event_ack* pEventAck;
} s_state;
typedef struct s_state_machine
{
int iState;
int iSize;
s_state* pState;
f_action fDefault;
} s_state_machine;
/*extern void StateDo(int iEvent, s_state_machine* psSM);*/
extern int StateDo(s_event* psEvent, s_task* psTask);
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -