[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Dancall:testers wanted
From: |
Pavel Machek |
Subject: |
Dancall:testers wanted |
Date: |
Fri, 12 Apr 2002 10:24:17 +0200 |
User-agent: |
Mutt/1.3.27i |
Hi!
This makes Dancall build again. I'd like someone to test communication
can still be set up. Does it look like okay to commit, provided that
it works?
Pavel
Index: common/phones/Makefile
===================================================================
RCS file: /cvsroot/gnokii/gnokii/common/phones/Makefile,v
retrieving revision 1.10
diff -u -u -r1.10 Makefile
--- common/phones/Makefile 21 Mar 2002 00:26:48 -0000 1.10
+++ common/phones/Makefile 12 Apr 2002 08:19:20 -0000
@@ -27,8 +27,9 @@
atgen.o \
ateric.o \
atnok.o \
- atsie.o
-# dc2711.o
+ atsie.o \
+ fake.o \
+ dc2711.o
all: PHONES.o
Index: common/phones/dc2711.c
===================================================================
RCS file: /cvsroot/gnokii/gnokii/common/phones/dc2711.c,v
retrieving revision 1.9
diff -u -u -r1.9 dc2711.c
--- common/phones/dc2711.c 28 Mar 2002 21:37:47 -0000 1.9
+++ common/phones/dc2711.c 12 Apr 2002 08:19:20 -0000
@@ -35,6 +35,7 @@
#include "misc.h"
#include "gsm-common.h"
+#include "gsm-statemachine.h"
#include "phones/generic.h"
#include "links/cbus.h"
@@ -98,6 +99,7 @@
/* ----------------------------------- SMS stuff
------------------------------------- */
+#if 0
GSM_Error ATGSM_GetSMSMessage(GSM_SMSMessage * m)
{
GSM_Error test = GE_NONE;
@@ -135,7 +137,6 @@
m->MessageCenter.No = 0;
strcpy(m->Sender, "(sender unknown)");
m->UDHType = GSM_NoUDH;
-
return test;
}
@@ -155,23 +156,20 @@
{
return (GE_NOTIMPLEMENTED);
}
+#endif
/*
-----------------------------------------------------------------------------------
*/
-static GSM_Error Initialise(char *port_device, char *initlength,
- GSM_ConnectionType connection,
- void (*rlp_callback)(RLP_F96Frame *frame))
+static GSM_Error Initialise(GSM_Statemachine *state)
{
/* char model[10]; */
- strncpy(link.PortDevice, port_device, 20);
- link.InitLength = atoi(initlength);
- link.ConnectionType = connection;
+ memcpy(&(state->Phone), &phone, sizeof(GSM_Phone));
fprintf(stderr, "Initializing dancall...\n");
- switch (connection) {
+ switch (state->Link.ConnectionType) {
case GCT_Serial:
- CBUS_Initialise(&link, &phone);
+ CBUS_Initialise(state);
break;
default:
return GE_NOTSUPPORTED;
@@ -192,6 +190,7 @@
return GE_NONE;
}
+#if 0
static GSM_Error
GetSMSStatus(GSM_SMSStatus *Status)
{
@@ -203,64 +202,11 @@
Status->Number = k;
return GE_NONE;
}
+#endif
/* Here we initialise model specific functions called by 'gnokii'. */
/* This too needs fixing .. perhaps pass the link a 'request' of certain */
/* type and the link then searches the phone functions.... */
-
-GSM_Functions D2711_Functions = {
- Initialise,
- Terminate,
- UNIMPLEMENTED, /* GetMemoryLocation */
- UNIMPLEMENTED, /* WritePhonebookLocation */
- UNIMPLEMENTED, /* GetSpeedDial */
- UNIMPLEMENTED, /* SetSpeedDial */
- UNIMPLEMENTED, /* GetMemoryStatus */
- GetSMSStatus, /* GetSMSStatus */
- UNIMPLEMENTED, /* GetSMSCentre */
- UNIMPLEMENTED, /* SetSMSCentre */
- ATGSM_GetSMSMessage, /* GetSMSMessage */
- ATGSM_DeleteSMSMessage, /* DeleteSMSMessage */
- ATGSM_SendSMSMessage, /* SendSMSMessage */
- UNIMPLEMENTED, /* SaveSMSMessage */
- UNIMPLEMENTED, /* GetRFLevel */
- UNIMPLEMENTED, /* GetBatteryLevel */
- UNIMPLEMENTED, /* GetPowerSource */
- UNIMPLEMENTED, /* GetDisplayStatus */
- UNIMPLEMENTED, /* EnterSecurityCode */
- UNIMPLEMENTED, /* GetSecurityCodeStatus */
- UNIMPLEMENTED, /* GetIMEI */
- UNIMPLEMENTED, /* GetRevision */
- UNIMPLEMENTED, /* GetModel */
- UNIMPLEMENTED, /* GetManufacturer */
- UNIMPLEMENTED, /* GetDateTime */
- UNIMPLEMENTED, /* SetDateTime */
- UNIMPLEMENTED, /* GetAlarm */
- UNIMPLEMENTED, /* SetAlarm */
- UNIMPLEMENTED, /* DialVoice */
- UNIMPLEMENTED, /* DialData */
- UNIMPLEMENTED, /* GetIncomingCallNr */
- UNIMPLEMENTED, /* GetNetworkInfo */
- UNIMPLEMENTED, /* GetCalendarNote */
- UNIMPLEMENTED, /* WriteCalendarNote */
- UNIMPLEMENTED, /* DeleteCalendarNote */
- UNIMPLEMENTED, /* NetMonitor */
- UNIMPLEMENTED, /* SendDTMF */
- UNIMPLEMENTED, /* GetBitmap */
- UNIMPLEMENTED, /* SetBitmap */
- UNIMPLEMENTED, /* SetRingtone */
- UNIMPLEMENTED, /* SendRingtone */
- UNIMPLEMENTED, /* Reset */
- UNIMPLEMENTED, /* GetProfile */
- UNIMPLEMENTED, /* SetProfile */
- UNIMPLEMENTED, /* SendRLPFrame */
- UNIMPLEMENTED, /* CancelCall */
- UNIMPLEMENTED, /* EnableDisplayOutput */
- UNIMPLEMENTED, /* DisableDisplayOutput */
- UNIMPLEMENTED, /* EnableCellBroadcast */
- UNIMPLEMENTED, /* DisableCellBroadcast */
- UNIMPLEMENTED /* ReadCellBroadcast */
-};
static GSM_IncomingFunctionType D2711_IncomingFunctions[] = {
{ 0, Reply },
--
Casualities in World Trade Center: ~3k dead inside the building,
cryptography in U.S.A. and free speech in Czech Republic.
- Dancall:testers wanted,
Pavel Machek <=