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

« back to all changes in this revision

Viewing changes to src/mm-modem-gsm-ussd.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2011-08-07 01:47:27 UTC
  • mfrom: (16.1.3 oneiric)
  • Revision ID: james.westby@ubuntu.com-20110807014727-ssze4jx65jrjltg9
Tags: 0.5-1
debian/rules: override dh_autoreconf in a nicer way so we don't have to
clean up manually afterwards.

Show diffs side-by-side

added added

removed removed

Lines of Context:
137
137
 
138
138
}
139
139
 
 
140
char*
 
141
mm_modem_gsm_ussd_encode (MMModemGsmUssd *self,
 
142
                          const char* command,
 
143
                          guint *schema)
 
144
{
 
145
    if (MM_MODEM_GSM_USSD_GET_INTERFACE (self)->encode)
 
146
        return MM_MODEM_GSM_USSD_GET_INTERFACE (self)->encode(self,
 
147
                                                              command,
 
148
                                                              schema);
 
149
    else
 
150
        return NULL;
 
151
}
 
152
 
 
153
char*
 
154
mm_modem_gsm_ussd_decode (MMModemGsmUssd *self,
 
155
                          const char* reply,
 
156
                          guint schema)
 
157
{
 
158
    if (MM_MODEM_GSM_USSD_GET_INTERFACE (self)->decode)
 
159
        return MM_MODEM_GSM_USSD_GET_INTERFACE (self)->decode(self,
 
160
                                                              reply,
 
161
                                                              schema);
 
162
    else
 
163
        return NULL;
 
164
}
 
165
 
140
166
/*****************************************************************************/
141
167
 
142
168
typedef struct {