7 A Linux/Unix toolset and driver for mobile phones.
9 Copyright 2001 Manfred Jonsson <manfred.jonsson@gmx.de>
11 Released under the terms of the GNU GPL, see file COPYING for more details.
13 This file provides functions specific to at commands on siemens
14 phones. See README for more details on supported mobile phones.
17 Revision 1.1.1.1 2001/11/25 21:59:14 short
18 :pserver:cvs@pserver.samba.org:/cvsroot - gnokii - Sun Nov 25 22:56 CET 2001
20 Revision 1.1 2001/11/19 13:03:18 pkot
30 #include "gsm-common.h"
31 #include "gsm-statemachine.h"
32 #include "phones/generic.h"
33 #include "phones/atgen.h"
34 #include "phones/atsie.h"
35 #include "links/atbus.h"
36 #include "links/cbus.h"
39 AT_SendFunctionType writephonebook;
42 static GSM_Error WritePhonebook(GSM_Data *data, GSM_Statemachine *state)
44 GSM_PhonebookEntry newphone;
47 if (writephonebook == NULL)
49 if (data->PhonebookEntry != NULL) {
50 memcpy(&newphone, data->PhonebookEntry, sizeof(GSM_PhonebookEntry));
51 rptr = data->PhonebookEntry->Name;
53 data->PhonebookEntry = &newphone;
55 return (*writephonebook)(data, state);
59 void AT_InitSiemens(GSM_Statemachine *state, char *foundmodel, char *setupmodel) {
60 /* names for s35 etc must be escaped */
62 if (foundmodel && !strncasecmp("35", foundmodel + 1, 2))
63 writephonebook = AT_InsertSendFunction(GOP_WritePhonebook, WritePhonebook);