modem-helpers: new method to get common CUSD regex
This commit is contained in:
@@ -488,6 +488,17 @@ mm_3gpp_ciev_regex_get (void)
|
|||||||
|
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
|
GRegex *
|
||||||
|
mm_3gpp_cusd_regex_get (void)
|
||||||
|
{
|
||||||
|
return g_regex_new ("\\r\\n\\+CUSD:\\s*(.*)\\r\\n",
|
||||||
|
G_REGEX_RAW | G_REGEX_OPTIMIZE,
|
||||||
|
0,
|
||||||
|
NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*************************************************************************/
|
||||||
|
|
||||||
static gulong
|
static gulong
|
||||||
parse_uint (char *str, int base, glong nmin, glong nmax, gboolean *valid)
|
parse_uint (char *str, int base, glong nmin, glong nmax, gboolean *valid)
|
||||||
{
|
{
|
||||||
|
@@ -66,6 +66,8 @@ gboolean mm_3gpp_parse_creg_response (GMatchInfo *info,
|
|||||||
|
|
||||||
GRegex *mm_3gpp_ciev_regex_get (void);
|
GRegex *mm_3gpp_ciev_regex_get (void);
|
||||||
|
|
||||||
|
GRegex *mm_3gpp_cusd_regex_get (void);
|
||||||
|
|
||||||
const char *mm_strip_tag (const char *str, const char *cmd);
|
const char *mm_strip_tag (const char *str, const char *cmd);
|
||||||
|
|
||||||
gboolean mm_cdma_parse_spservice_response (const char *reply,
|
gboolean mm_cdma_parse_spservice_response (const char *reply,
|
||||||
|
Reference in New Issue
Block a user