diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2019-10-14 13:47:48 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2019-10-14 15:32:20 +0200 |
commit | 89c9566ede8cd7b587d0a383bef2a3973897c4c5 (patch) | |
tree | e86a8748cc7ffc83025679b6eebcb647c6f5cf1d /plugins/simtech/mm-modem-helpers-simtech.h | |
parent | b99597b59405315e7a71a272bcbde1ebab86c5e1 (diff) |
simtech: implement +CLCC URC based call list management
Diffstat (limited to 'plugins/simtech/mm-modem-helpers-simtech.h')
-rw-r--r-- | plugins/simtech/mm-modem-helpers-simtech.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/plugins/simtech/mm-modem-helpers-simtech.h b/plugins/simtech/mm-modem-helpers-simtech.h new file mode 100644 index 00000000..66e5c467 --- /dev/null +++ b/plugins/simtech/mm-modem-helpers-simtech.h @@ -0,0 +1,39 @@ +/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details: + * + * Copyright (C) 2019 Aleksander Morgado <aleksander@aleksander.es> + */ + +#ifndef MM_MODEM_HELPERS_SIMTECH_H +#define MM_MODEM_HELPERS_SIMTECH_H + +#include <glib.h> + +#include <ModemManager.h> +#include <mm-base-bearer.h> +#define _LIBMM_INSIDE_MM +#include <libmm-glib.h> + +/*****************************************************************************/ +/* +CLCC URC helpers */ + +gboolean mm_simtech_parse_clcc_test (const gchar *response, + gboolean *clcc_urcs_supported, + GError **error); + +GRegex *mm_simtech_get_clcc_urc_regex (void); +gboolean mm_simtech_parse_clcc_list (const gchar *str, + GList **out_list, + GError **error); +void mm_simtech_call_info_list_free (GList *call_info_list); + +#endif /* MM_MODEM_HELPERS_SIMTECH_H */ |