aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mm-generic-gsm.c9
-rw-r--r--src/mm-generic-gsm.h3
2 files changed, 12 insertions, 0 deletions
diff --git a/src/mm-generic-gsm.c b/src/mm-generic-gsm.c
index 27c09dbf..d24060ec 100644
--- a/src/mm-generic-gsm.c
+++ b/src/mm-generic-gsm.c
@@ -2835,6 +2835,15 @@ set_charset (MMModem *modem,
g_free (command);
}
+MMModemCharset
+mm_generic_gsm_get_charset (MMGenericGsm *self)
+{
+ g_return_val_if_fail (self != NULL, MM_MODEM_CHARSET_UNKNOWN);
+ g_return_val_if_fail (MM_IS_GENERIC_GSM (self), MM_MODEM_CHARSET_UNKNOWN);
+
+ return MM_GENERIC_GSM_GET_PRIVATE (self)->cur_charset;
+}
+
/*****************************************************************************/
/* MMModemGsmSms interface */
diff --git a/src/mm-generic-gsm.h b/src/mm-generic-gsm.h
index 2ef81c3c..41194dfd 100644
--- a/src/mm-generic-gsm.h
+++ b/src/mm-generic-gsm.h
@@ -22,6 +22,7 @@
#include "mm-modem-base.h"
#include "mm-at-serial-port.h"
#include "mm-callback-info.h"
+#include "mm-charsets.h"
#define MM_TYPE_GENERIC_GSM (mm_generic_gsm_get_type ())
#define MM_GENERIC_GSM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MM_TYPE_GENERIC_GSM, MMGenericGsm))
@@ -123,6 +124,8 @@ gint mm_generic_gsm_get_cid (MMGenericGsm *modem);
void mm_generic_gsm_set_reg_status (MMGenericGsm *modem,
MMModemGsmNetworkRegStatus status);
+MMModemCharset mm_generic_gsm_get_charset (MMGenericGsm *modem);
+
/* Called to asynchronously update the current allowed operating mode that the
* device is allowed to use when connecting to a network. This isn't the
* specific access technology the device is currently using (see