~ubuntu-branches/ubuntu/vivid/modemmanager/vivid-proposed

« back to all changes in this revision

Viewing changes to src/mm-modem-base.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2011-06-16 17:12:41 UTC
  • mfrom: (16.1.1 oneiric)
  • Revision ID: james.westby@ubuntu.com-20110616171241-k8vgsdmbpsvx467q
Tags: 0.4.997-1
* debian/watch: Switch to .bz2 tarballs.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
493
493
    mm_callback_info_chain_complete_one (info);
494
494
}
495
495
 
496
 
#define GET_INFO_RESP_FN(func_name, tag, tag2, desc) \
497
 
static void \
498
 
func_name (MMAtSerialPort *port, \
499
 
           GString *response, \
500
 
           GError *error, \
501
 
           gpointer user_data) \
502
 
{ \
503
 
    info_item_done ((MMCallbackInfo *) user_data, response, error, tag, tag2, desc ); \
504
 
}
 
496
#define GET_INFO_RESP_FN(func_name, tag, tag2, desc)                    \
 
497
    static void                                                         \
 
498
    func_name (MMAtSerialPort *port,                                    \
 
499
               GString *response,                                       \
 
500
               GError *error,                                           \
 
501
               gpointer user_data)                                      \
 
502
    {                                                                   \
 
503
        if (mm_callback_info_check_modem_removed ((MMCallbackInfo *) user_data)) \
 
504
            return;                                                     \
 
505
        info_item_done ((MMCallbackInfo *) user_data, response, error, tag, tag2, desc ); \
 
506
    }
505
507
 
506
508
GET_INFO_RESP_FN(get_revision_done, "+GMR:", "AT+GMR", "card-info-revision")
507
509
GET_INFO_RESP_FN(get_model_done, "+GMM:", "AT+GMM", "card-info-model")