blob: efcc23f56efcac9e142e535fed21c231f054cbec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
/* -*- 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);
/*****************************************************************************/
/* VOICE CALL URC helpers */
GRegex *mm_simtech_get_voice_call_urc_regex (void);
gboolean mm_simtech_parse_voice_call_urc (GMatchInfo *match_info,
gboolean *start_or_stop,
guint *duration,
GError **error);
/*****************************************************************************/
/* MISSED_CALL URC helpers */
GRegex *mm_simtech_get_missed_call_urc_regex (void);
gboolean mm_simtech_parse_missed_call_urc (GMatchInfo *match_info,
gchar **details,
GError **error);
/*****************************************************************************/
/* Non-standard CRING URC helpers */
GRegex *mm_simtech_get_cring_urc_regex (void);
/*****************************************************************************/
/* +RXDTMF URC helpers */
GRegex *mm_simtech_get_rxdtmf_urc_regex (void);
#endif /* MM_MODEM_HELPERS_SIMTECH_H */
|