/* $Id$ G N O K I I A Linux/Unix toolset and driver for mobile phones. Copyright 2001 Manfred Jonsson Released under the terms of the GNU GPL, see file COPYING for more details. This file provides functions specific to at commands on nokia phones. See README for more details on supported mobile phones. $Log$ Revision 1.1.1.1 2001/11/25 21:59:14 short :pserver:cvs@pserver.samba.org:/cvsroot - gnokii - Sun Nov 25 22:56 CET 2001 Revision 1.1 2001/11/19 13:03:18 pkot nk3110.c cleanup */ #include #include #include #include "misc.h" #include "gsm-common.h" #include "gsm-statemachine.h" #include "phones/generic.h" #include "phones/atgen.h" #include "phones/atnok.h" #include "links/atbus.h" #include "links/cbus.h" AT_SendFunctionType writephonebook; static GSM_Error WritePhonebook(GSM_Data *data, GSM_Statemachine *state) { if (writephonebook == NULL) return GE_UNKNOWN; if (data->MemoryStatus->MemoryType == GMT_ME) return GE_NOTSUPPORTED; return (*writephonebook)(data, state); } void AT_InitNokia(GSM_Statemachine *state, char *foundmodel, char *setupmodel) { /* block writing of phone memory on nokia phones other than */ /* 8210. if you write to the phonebook of a eg 7110 all extended */ /* information will be lost. */ if (strncasecmp("8210", foundmodel, 4)) writephonebook = AT_InsertSendFunction(GOP_WritePhonebook, WritePhonebook); }