r1317 - trunk/src/target/gsm/src/gsmd

laforge at sita.openmoko.org laforge at sita.openmoko.org
Sat Mar 10 23:08:06 CET 2007


Author: laforge
Date: 2007-03-10 23:08:06 +0100 (Sat, 10 Mar 2007)
New Revision: 1317

Modified:
   trunk/src/target/gsm/src/gsmd/vendor_ti.c
Log:
* add CTZV stub
* dont escape % sign in non-format strings


Modified: trunk/src/target/gsm/src/gsmd/vendor_ti.c
===================================================================
--- trunk/src/target/gsm/src/gsmd/vendor_ti.c	2007-03-10 22:05:17 UTC (rev 1316)
+++ trunk/src/target/gsm/src/gsmd/vendor_ti.c	2007-03-10 22:08:06 UTC (rev 1317)
@@ -143,6 +143,13 @@
 	return 0;
 }
 
+static int ctzv_parse(char *buf, int len, const char *param, struct gsmd *gsmd)
+{
+	/* FIXME: decide what to do with it.  send as event to clients? or keep
+	 * locally? Offer option to sync system RTC? */
+	return 0;
+}
+
 /* Call Progress Information */
 static int cpi_parse(char *buf, int len, const char *param, struct gsmd *gsmd)
 {
@@ -223,16 +230,16 @@
 }
 
 static const struct gsmd_unsolicit ticalypso_unsolicit[] = {
-	{ "\%CSQ",	&csq_parse },	/* Signal Quality */
-	{ "\%CPRI",	&cpri_parse },	/* Ciphering Indication */
-	{ "\%CPI",	&cpi_parse },	/* Call Progress Information */
+	{ "%CSQ",	&csq_parse },	/* Signal Quality */
+	{ "%CPRI",	&cpri_parse },	/* Ciphering Indication */
+	{ "%CPI",	&cpi_parse },	/* Call Progress Information */
+	{ "%CTZV",	&ctzv_parse },	/* network time and data */
 
 	/* FIXME: parse all the below and generate the respective events */
 
 	/* %CPROAM: CPHS Home Country Roaming Indicator */
 	/* %CPVWI: CPHS Voice Message Waiting */
 	/* %CGREG: reports extended information about GPRS registration state */
-	/* %CTZV: reports network time and date information */
 	/* %CNIV: reports network name information */
 	/* %CPKY: Press Key */
 	/* %CMGRS: Message Retransmission Service */





More information about the commitlog mailing list