:pserver:cvs@pserver.samba.org:/cvsroot - gnokii - Sun Nov 25 22:56 CET 2001
[gnokii.git] / common / links / utils.c
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) 2000 Hugh Blemings & Pavel Janík ml.
10   Copyright (C) 2000 Chris Kemp
11
12   Released under the terms of the GNU GPL, see file COPYING for more details.
13
14   This file provides an API for accessing functions via fbus. 
15   See README for more details on supported mobile phones.
16
17   The various routines are called FBUS_(whatever).
18
19   $Log$
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
22
23   Revision 1.6  2001/09/14 13:30:07  pkot
24   Fixed bugs introduced during 0.3.3 merge
25
26   Revision 1.5  2001/09/14 12:15:28  pkot
27   Cleanups from 0.3.3 (part1)
28
29   Revision 1.4  2001/09/09 21:45:49  machek
30   Cleanups from Ladislav Michl <ladis@psi.cz>:
31
32   *) do *not* internationalize debug messages
33
34   *) some whitespace fixes, do not use //
35
36   *) break is unneccessary after return
37
38   Revision 1.3  2001/03/23 13:40:23  chris
39   Pavel's patch and a few fixes.
40
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
44
45   Revision 1.1  2001/03/06 10:40:32  machek
46   Added file with functions usefull for different links.
47
48 */
49
50 /* System header files */
51 #include <stdio.h>
52 #include <string.h>
53 #include <stdlib.h>
54
55 /* Various header file */
56 #include "config.h"
57 #include "misc.h"
58 #include "gsm-common.h"
59 #include "gsm-ringtones.h"
60 #include "gsm-networks.h"
61 #include "device.h"
62
63 #if 0
64 void
65 link_dispatch(GSM_Link *glink, GSM_Phone *gphone, int type, u8 *buf, int len)
66 {
67         int c;
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);
72
73                         /* FIXME - Hmm, what do we do with the return value.. */
74                         return;
75                 }
76         dprintf("Unknown Frame Type %02x\n", type);
77         gphone->DefaultFunction(type, buf, len);
78 }
79 #endif