Ignore:
Timestamp:
08/17/07 10:29:08 (6 years ago)
Author:
laforge
Message:

From: Andrzej Zaborowski <balrog@…>
Date: Thu, 26 Jul 2007 00:32:38 +0200
Subject: [PATCH] SMSC and Preferred Storage operations.

This adds setting and retrieval of SMS storage stats (memory type, used
entries, all entries), and of the default service centre (SMSC) number for
outgoing messages. The operation of setting a new SMSC number is untested
because my SIM doesn't seem to allow this (that or I did something wrong). New
"libgmsd-tool -m shell" commands for testing are also added.

Other changes in this patch:

  • The third, optional, parameter to +CMGL: is a string, not an integer as I

wrongly assumed earlier, this is now corrected.

  • Rename libgsmd API functions starting with lgsmd_.. to lgsm_.. for

consistency with all other identifiers.

  • Move lgsm_send_simple() to libgsmd.c and add a prototype in

lgsm_internals.h, this eliminates some compile-time warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/target/gsm/src/libgsmd/libgsmd_voicecall.c

    r1282 r2720  
    2828 
    2929#include "lgsm_internals.h" 
    30  
    31 int lgsm_send_simple(struct lgsm_handle *lh, int type, int sub_type) 
    32 { 
    33         struct gsmd_msg_hdr *gmh; 
    34         int rc; 
    35  
    36         gmh = lgsm_gmh_fill(type, sub_type, 0); 
    37         if (!gmh) 
    38                 return -ENOMEM; 
    39         rc = lgsm_send(lh, gmh); 
    40         if (rc < gmh->len + sizeof(*gmh)) { 
    41                 lgsm_gmh_free(gmh); 
    42                 return -EIO; 
    43         } 
    44         lgsm_gmh_free(gmh); 
    45  
    46         return 0; 
    47 } 
    4830 
    4931int lgsm_voice_out_init(struct lgsm_handle *lh, 
Note: See TracChangeset for help on using the changeset viewer.