\r\n -> \n
[gnokii.git] / include / gsm-statemachine.h
1 /*
2
3   $Id$
4
5   G N O K I I
6
7   A Linux/Unix toolset and driver for Nokia mobile phones.
8
9   Copyright (C) 1999, 2000 Hugh Blemings & Pavel Janík ml.
10
11   Released under the terms of the GNU GPL, see file COPYING for more details.
12         
13   Header file for the statemachine.
14
15   $Log$
16   Revision 1.1.1.1  2001/11/25 21:59:20  short
17   :pserver:cvs@pserver.samba.org:/cvsroot - gnokii - Sun Nov 25 22:56 CET 2001
18
19   Revision 1.2  2001/06/27 23:52:52  pkot
20   7110/6210 updates (Marian Jancar)
21
22   Revision 1.1  2001/03/21 23:36:07  chris
23   Added the statemachine
24   This will break gnokii --identify and --monitor except for 6210/7110
25
26
27 */
28
29 #ifndef __gsm_statemachine_h
30 #define __gsm_statemachine_h
31
32 #include "gsm-common.h"
33
34 GSM_Error SM_Initialise(GSM_Statemachine *state);
35 GSM_State SM_Loop(GSM_Statemachine *state, int timeout);
36 GSM_Error SM_SendMessage(GSM_Statemachine *state, u16 messagesize, u8 messagetype, void *message);
37 GSM_Error SM_WaitFor(GSM_Statemachine *state, GSM_Data *data, unsigned char messagetype);
38 void SM_IncomingFunction(GSM_Statemachine *state, u8 messagetype, void *message, u16 messagesize);
39 void SM_Reset(GSM_Statemachine *state);
40 GSM_Error SM_GetError(GSM_Statemachine *state, unsigned char messagetype);
41 GSM_Error SM_Block(GSM_Statemachine *state, GSM_Data *data, int waitfor);
42 GSM_Error SM_Functions(GSM_Operation op, GSM_Data *data, GSM_Statemachine *sm);
43
44 #endif  /* __gsm_statemachine_h */