aboutsummaryrefslogtreecommitdiff
path: root/plugins/linktop/mm-modem-helpers-linktop.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksandermj@chromium.org>2022-12-08 13:37:55 +0000
committerAleksander Morgado <aleksander@aleksander.es>2023-01-03 13:56:25 +0000
commite14b904cbd6816cb0227d519d308ae71ddaf6e07 (patch)
tree4997ab68cc606fdf4d72a571e821cec0c8df42ef /plugins/linktop/mm-modem-helpers-linktop.c
parent072d7ac9065f444e83b390a1e2af5471ac0d48f6 (diff)
build: move plugins directory to src/plugins
We are going to allow including the plugin sources built within the ModemManager daemon binary; moving the sources within the daemon sources directory makes it easier.
Diffstat (limited to 'plugins/linktop/mm-modem-helpers-linktop.c')
-rw-r--r--plugins/linktop/mm-modem-helpers-linktop.c54
1 files changed, 0 insertions, 54 deletions
diff --git a/plugins/linktop/mm-modem-helpers-linktop.c b/plugins/linktop/mm-modem-helpers-linktop.c
deleted file mode 100644
index 2ca46bb6..00000000
--- a/plugins/linktop/mm-modem-helpers-linktop.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/* -*- 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>
- */
-
-#include "mm-modem-helpers.h"
-#include "mm-modem-helpers-linktop.h"
-
-/*****************************************************************************/
-
-gboolean
-mm_linktop_parse_cfun_query_current_modes (const gchar *response,
- MMModemMode *allowed,
- GError **error)
-{
- guint state;
-
- g_assert (allowed);
-
- if (!mm_3gpp_parse_cfun_query_response (response, &state, error))
- return FALSE;
-
- switch (state) {
- case LINKTOP_MODE_OFFLINE:
- case LINKTOP_MODE_LOW_POWER:
- *allowed = MM_MODEM_MODE_NONE;
- return TRUE;
- case LINKTOP_MODE_2G:
- *allowed = MM_MODEM_MODE_2G;
- return TRUE;
- case LINKTOP_MODE_3G:
- *allowed = MM_MODEM_MODE_3G;
- return TRUE;
- case LINKTOP_MODE_ANY:
- *allowed = (MM_MODEM_MODE_2G | MM_MODEM_MODE_3G);
- return TRUE;
- default:
- g_set_error (error, MM_CORE_ERROR, MM_CORE_ERROR_FAILED,
- "Unknown linktop +CFUN current mode: %u", state);
- return FALSE;
- }
-}