modem-helpers: new common regex for CIEV unsolicited messages
This commit is contained in:
@@ -491,6 +491,17 @@ mm_3gpp_creg_regex_destroy (GPtrArray *array)
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
GRegex *
|
||||
mm_3gpp_ciev_regex_get (void)
|
||||
{
|
||||
return g_regex_new ("\\r\\n\\+CIEV: (\\d+),(\\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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user