7 A Linux/Unix toolset and driver for Nokia mobile phones.
9 Copyright (C) 2000 Hugh Blemings & Pavel JanÃk ml.
10 Copyright (C) 2000 Chris Kemp
12 Released under the terms of the GNU GPL, see file COPYING for more details.
14 This file provides an API for accessing functions via fbus.
15 See README for more details on supported mobile phones.
17 The various routines are called FBUS_(whatever).
20 Revision 1.1.1.1 2001/11/25 21:59:10 short
21 :pserver:cvs@pserver.samba.org:/cvsroot - gnokii - Sun Nov 25 22:56 CET 2001
23 Revision 1.6 2001/09/14 13:30:07 pkot
24 Fixed bugs introduced during 0.3.3 merge
26 Revision 1.5 2001/09/14 12:15:28 pkot
27 Cleanups from 0.3.3 (part1)
29 Revision 1.4 2001/09/09 21:45:49 machek
30 Cleanups from Ladislav Michl <ladis@psi.cz>:
32 *) do *not* internationalize debug messages
34 *) some whitespace fixes, do not use //
36 *) break is unneccessary after return
38 Revision 1.3 2001/03/23 13:40:23 chris
39 Pavel's patch and a few fixes.
41 Revision 1.2 2001/03/21 23:36:05 chris
42 Added the statemachine
43 This will break gnokii --identify and --monitor except for 6210/7110
45 Revision 1.1 2001/03/06 10:40:32 machek
46 Added file with functions usefull for different links.
50 /* System header files */
55 /* Various header file */
58 #include "gsm-common.h"
59 #include "gsm-ringtones.h"
60 #include "gsm-networks.h"
65 link_dispatch(GSM_Link *glink, GSM_Phone *gphone, int type, u8 *buf, int len)
68 for (c = 0; c < gphone->IncomingFunctionNum; c++)
69 if (gphone->IncomingFunctions[c].MessageType == type) {
70 gphone->IncomingFunctions[c].Functions(type, buf, len);
71 dprintf("Received message type %02x\n", type);
73 /* FIXME - Hmm, what do we do with the return value.. */
76 dprintf("Unknown Frame Type %02x\n", type);
77 gphone->DefaultFunction(type, buf, len);