modem-helpers: new common CMTI regex getter

This commit is contained in:
Aleksander Morgado
2012-03-15 14:15:00 +01:00
parent 1eb7f60e4c
commit 3912bf062e
2 changed files with 13 additions and 0 deletions
+11
View File
@@ -556,6 +556,17 @@ mm_3gpp_cusd_regex_get (void)
/*************************************************************************/
GRegex *
mm_3gpp_cmti_regex_get (void)
{
return g_regex_new ("\\r\\n\\+CMTI: \"(\\S+)\",(\\d+)\\r\\n",
G_REGEX_RAW | G_REGEX_OPTIMIZE,
0,
NULL);
}
/*************************************************************************/
static gulong
parse_uint (char *str, int base, glong nmin, glong nmax, gboolean *valid)
{
+2
View File
@@ -73,6 +73,8 @@ GRegex *mm_3gpp_ciev_regex_get (void);
GRegex *mm_3gpp_cusd_regex_get (void);
GRegex *mm_3gpp_cmti_regex_get (void);
const char *mm_strip_tag (const char *str, const char *cmd);
gboolean mm_cdma_parse_spservice_response (const char *reply,