1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * Author Karsten Keil <kkeil@novell.com>
6 * Thanks to Jan den Ouden
8 * Copyright 2008 by Karsten Keil <kkeil@novell.com>
14 #include <linux/timer.h>
20 typedef void (*FSMFNPTR
)(struct FsmInst
*, int, void *);
24 int state_count
, event_count
;
25 char **strEvent
, **strState
;
34 void (*printdebug
) (struct FsmInst
*, char *, ...);
39 void (*routine
) (struct FsmInst
*, int, void *);
49 extern int mISDN_FsmNew(struct Fsm
*, struct FsmNode
*, int);
50 extern void mISDN_FsmFree(struct Fsm
*);
51 extern int mISDN_FsmEvent(struct FsmInst
*, int , void *);
52 extern void mISDN_FsmChangeState(struct FsmInst
*, int);
53 extern void mISDN_FsmInitTimer(struct FsmInst
*, struct FsmTimer
*);
54 extern int mISDN_FsmAddTimer(struct FsmTimer
*, int, int, void *, int);
55 extern void mISDN_FsmRestartTimer(struct FsmTimer
*, int, int, void *, int);
56 extern void mISDN_FsmDelTimer(struct FsmTimer
*, int);