2011-01-24 15:46:58 -05:00
|
|
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
|
2010-12-15 19:22:15 +00:00
|
|
|
*
|
|
|
|
* Copyright (C) 2010 Richard Hughes <richard@hughsie.com>
|
|
|
|
*
|
|
|
|
* Licensed under the GNU General Public License Version 2
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
|
|
|
|
2018-11-01 00:19:21 -03:00
|
|
|
#pragma once
|
2010-12-15 19:22:15 +00:00
|
|
|
|
2011-02-21 10:05:22 +00:00
|
|
|
#include <NetworkManager.h>
|
2012-07-17 16:00:40 +01:00
|
|
|
#include <gtk/gtk.h>
|
2010-12-15 19:22:15 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2019-10-01 12:50:30 +13:00
|
|
|
gchar *panel_device_status_to_localized_string (NMDevice *nm_device,
|
2019-01-27 18:06:05 +01:00
|
|
|
const gchar *speed);
|
2019-10-01 14:26:51 +13:00
|
|
|
gboolean panel_set_device_widget_details (GtkLabel *heading,
|
|
|
|
GtkLabel *widget,
|
2012-07-17 16:00:40 +01:00
|
|
|
const gchar *value);
|
2019-10-02 11:00:21 +13:00
|
|
|
void panel_set_device_widgets (GtkLabel *heading_ipv4, GtkLabel *label_ipv4,
|
|
|
|
GtkLabel *heading_ipv6, GtkLabel *label_ipv6,
|
|
|
|
GtkLabel *heading_dns, GtkLabel *label_dns,
|
|
|
|
GtkLabel *heading_route, GtkLabel *label_route,
|
2012-07-18 14:57:26 +01:00
|
|
|
NMDevice *device);
|
2016-04-29 16:05:54 +02:00
|
|
|
gchar *panel_get_ip4_address_as_string (NMIPConfig *config, const gchar *what);
|
|
|
|
gchar *panel_get_ip4_dns_as_string (NMIPConfig *config);
|
|
|
|
gchar *panel_get_ip6_address_as_string (NMIPConfig *config);
|
2010-12-15 19:22:15 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|