aboutsummaryrefslogtreecommitdiff
path: root/src/mm-modem-gsm-ussd.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2011-08-07 01:47:27 +0200
committerGuido Günther <agx@sigxcpu.org>2014-02-05 08:38:27 +0100
commit95e75c9fd39d5c16c79add762ca578e0360509d6 (patch)
tree2f09dec06f41503d32a3deade89123ba3ce267c2 /src/mm-modem-gsm-ussd.c
parent59ed3390b9a798ff8bf9133cbc28c4539ad99f42 (diff)
parenta09050a7f63a262bf90dcb1c7a41f9cfd205db43 (diff)
Imported Debian patch 0.5-1debian/0.5-1
Diffstat (limited to 'src/mm-modem-gsm-ussd.c')
-rw-r--r--src/mm-modem-gsm-ussd.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/mm-modem-gsm-ussd.c b/src/mm-modem-gsm-ussd.c
index f90a845..614999c 100644
--- a/src/mm-modem-gsm-ussd.c
+++ b/src/mm-modem-gsm-ussd.c
@@ -137,6 +137,32 @@ mm_modem_gsm_ussd_cancel (MMModemGsmUssd *self,
}
+char*
+mm_modem_gsm_ussd_encode (MMModemGsmUssd *self,
+ const char* command,
+ guint *schema)
+{
+ if (MM_MODEM_GSM_USSD_GET_INTERFACE (self)->encode)
+ return MM_MODEM_GSM_USSD_GET_INTERFACE (self)->encode(self,
+ command,
+ schema);
+ else
+ return NULL;
+}
+
+char*
+mm_modem_gsm_ussd_decode (MMModemGsmUssd *self,
+ const char* reply,
+ guint schema)
+{
+ if (MM_MODEM_GSM_USSD_GET_INTERFACE (self)->decode)
+ return MM_MODEM_GSM_USSD_GET_INTERFACE (self)->decode(self,
+ reply,
+ schema);
+ else
+ return NULL;
+}
+
/*****************************************************************************/
typedef struct {