From dc0249fe1a5bba609f4f57bcc91c556f6745b008 Mon Sep 17 00:00:00 2001 From: laforge Date: Sat, 10 Mar 2007 22:08:06 +0000 Subject: * add CTZV stub * dont escape % sign in non-format strings git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@1317 99fdad57-331a-0410-800a-d7fa5415bdb3 --- src/gsmd/vendor_ti.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/gsmd/vendor_ti.c b/src/gsmd/vendor_ti.c index 0cc0783..9371e1b 100644 --- a/src/gsmd/vendor_ti.c +++ b/src/gsmd/vendor_ti.c @@ -143,6 +143,13 @@ static int cpri_parse(char *buf, int len, const char *param, struct gsmd *gsmd) 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 @@ out_free_io: } 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 */ -- cgit v1.2.3