aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/linktop/mm-modem-helpers-linktop.h
blob: 69fa7ee21cdbd737569a7a47e3be9a89d76e3adf (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
/* -*- 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) 2008 - 2009 Novell, Inc.
 * Copyright (C) 2009 - 2016 Red Hat, Inc.
 * Copyright (C) 2016 Aleksander Morgado <aleksander@aleksander.es>
 */

#ifndef MM_MODEM_HELPERS_LINKTOP_H
#define MM_MODEM_HELPERS_LINKTOP_H

#include <glib.h>

#include <ModemManager.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>

typedef enum {
    LINKTOP_MODE_OFFLINE   = 0,
    LINKTOP_MODE_ANY       = 1,
    LINKTOP_MODE_LOW_POWER = 4,
    LINKTOP_MODE_2G        = 5,
    LINKTOP_MODE_3G        = 6,
} MMLinktopMode;

/* AT+CFUN? response parsers */
gboolean mm_linktop_parse_cfun_query_current_modes (const gchar  *response,
                                                    MMModemMode  *allowed,
                                                    GError      **error);

#endif  /* MM_MODEM_HELPERS_LINKTOP_H */