Fixed fatal linker error (global symbol conflict of "writephonebook")
[gnokii.git] / common / phones / atsie.c
1 /*
2
3   $Id$
4
5   G N O K I I
6
7   A Linux/Unix toolset and driver for mobile phones.
8
9   Copyright 2001 Manfred Jonsson <manfred.jonsson@gmx.de>
10
11   Released under the terms of the GNU GPL, see file COPYING for more details.
12
13   This file provides functions specific to at commands on siemens
14   phones. See README for more details on supported mobile phones.
15
16   $Log$
17   Revision 1.1.1.1.10.1  2001/12/14 21:32:51  short
18   Fixed fatal linker error (global symbol conflict of "writephonebook")
19
20   Revision 1.1.1.1  2001/11/25 21:59:14  short
21   :pserver:cvs@pserver.samba.org:/cvsroot - gnokii - Sun Nov 25 22:56 CET 2001
22
23   Revision 1.1  2001/11/19 13:03:18  pkot
24   nk3110.c cleanup
25
26 */
27
28 #include <string.h>
29 #include <stdlib.h>
30 #include <ctype.h>
31
32 #include "misc.h"
33 #include "gsm-common.h"
34 #include "gsm-statemachine.h"
35 #include "phones/generic.h"
36 #include "phones/atgen.h"
37 #include "phones/atsie.h"
38 #include "links/atbus.h"
39 #include "links/cbus.h"
40
41
42 static AT_SendFunctionType writephonebook;
43
44
45 static GSM_Error WritePhonebook(GSM_Data *data,  GSM_Statemachine *state)
46 {
47         GSM_PhonebookEntry newphone;
48         char *rptr, *wptr;
49
50         if (writephonebook == NULL)
51                 return GE_UNKNOWN;
52         if (data->PhonebookEntry != NULL) {
53                 memcpy(&newphone, data->PhonebookEntry, sizeof(GSM_PhonebookEntry));
54                 rptr = data->PhonebookEntry->Name;
55                 wptr = newphone.Name;
56                 data->PhonebookEntry = &newphone;
57         }
58         return (*writephonebook)(data, state);
59 }
60
61
62 void AT_InitSiemens(GSM_Statemachine *state, char *foundmodel, char *setupmodel) {
63         /* names for s35 etc must be escaped */
64 /*
65         if (foundmodel && !strncasecmp("35", foundmodel + 1, 2))
66                 writephonebook = AT_InsertSendFunction(GOP_WritePhonebook, WritePhonebook);
67 */
68 }