From 1c14ca7262403ef6dc30319e3dc2aaa3ba47a225 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 2 Apr 2019 11:17:21 -0500 Subject: libwmc: remove it The WMC protocol was only present on older Panasonic/Verizon devices from the 2006 - 2011 timeframe. The last device to support WMC was the UML290 which also supported QMI (which is much more functional). ModemManager also never used WMC support and it was never significantly reverse engineered. So remove WMC code from git; it'll still be in the history if anyone cares in the future. --- libwmc/src/errors.c | 58 ----------------------------------------------------- 1 file changed, 58 deletions(-) delete mode 100644 libwmc/src/errors.c (limited to 'libwmc/src/errors.c') diff --git a/libwmc/src/errors.c b/libwmc/src/errors.c deleted file mode 100644 index 0403b229..00000000 --- a/libwmc/src/errors.c +++ /dev/null @@ -1,58 +0,0 @@ -/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * Copyright (C) 2011 Red Hat, Inc. - * - * This program is free software: you can redistribute it and/or - * modify it under the terms of version 2 of the GNU General Public - * License as published by the Free Software Foundation - * - * 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. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -#include "errors.h" -#include -#include - -void -_wmc_log (const char *file, - int line, - const char *func, - int level, - int domain, - const char *format, - ...) -{ - va_list args; - char *message = NULL; - int n; - const char *prefix = "info"; - - wmc_return_if_fail (format != NULL); - wmc_return_if_fail (format[0] != '\0'); - - /* level & domain ignored for now */ - - if (getenv ("WMC_DEBUG") == NULL) - return; - - va_start (args, format); - n = vasprintf (&message, format, args); - va_end (args); - - if (level & LOGL_ERR) - prefix = "err"; - else if (level & LOGL_DEBUG) - prefix = "dbg"; - - if (n >= 0) { - fprintf (stderr, "<%s> [%s:%u] %s(): %s\n", prefix, file, line, func, message); - free (message); - } -} - -- cgit v1.2.3-70-g09d2