network: Use #pragma once on headers

Another low hanging fruit that reduces even more the
number of lines of code of the headers.
This commit is contained in:
Georges Basile Stavracas Neto 2018-11-01 00:19:21 -03:00
parent f1347132d9
commit 120eb2f59e
No known key found for this signature in database
GPG key ID: 886C17EE170D1385
11 changed files with 11 additions and 52 deletions

View file

@ -17,9 +17,7 @@
*
*/
#ifndef _CC_NETWORK_PANEL_H
#define _CC_NETWORK_PANEL_H
#pragma once
#include <shell/cc-panel.h>
@ -32,5 +30,3 @@ G_DECLARE_FINAL_TYPE (CcNetworkPanel, cc_network_panel, CC, NETWORK_PANEL, CcPan
GPtrArray *cc_network_panel_get_devices (CcNetworkPanel *panel);
G_END_DECLS
#endif /* _CC_NETWORK_PANEL_H */

View file

@ -17,8 +17,7 @@
*
*/
#ifndef CC_WIFI_PANEL_H
#define CC_WIFI_PANEL_H
#pragma once
#include <shell/cc-panel.h>
@ -31,6 +30,3 @@ G_DECLARE_FINAL_TYPE (CcWifiPanel, cc_wifi_panel, CC, WIFI_PANEL, CcPanel)
void cc_wifi_panel_static_init_func (void);
G_END_DECLS
#endif /* CC_WIFI_PANEL_H */

View file

@ -19,8 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef __NET_DEVICE_ETHERNET_H
#define __NET_DEVICE_ETHERNET_H
#pragma once
#include <glib-object.h>
@ -32,6 +31,3 @@ G_BEGIN_DECLS
G_DECLARE_FINAL_TYPE (NetDeviceEthernet, net_device_ethernet, NET, DEVICE_ETHERNET, NetDeviceSimple)
G_END_DECLS
#endif /* __NET_DEVICE_ETHERNET_H */

View file

@ -19,8 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef __NET_DEVICE_MOBILE_H
#define __NET_DEVICE_MOBILE_H
#pragma once
#include <glib-object.h>
#include <NetworkManager.h>
@ -33,6 +32,3 @@ G_BEGIN_DECLS
G_DECLARE_FINAL_TYPE (NetDeviceMobile, net_device_mobile, NET, DEVICE_MOBILE, NetDevice)
G_END_DECLS
#endif /* __NET_DEVICE_MOBILE_H */

View file

@ -20,8 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef __NET_DEVICE_SIMPLE_H
#define __NET_DEVICE_SIMPLE_H
#pragma once
#include <glib-object.h>
@ -49,6 +48,3 @@ void net_device_simple_set_show_separator (NetDeviceSimple *device_simple,
gboolean show_separator);
G_END_DECLS
#endif /* __NET_DEVICE_SIMPLE_H */

View file

@ -19,8 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef __NET_DEVICE_WIFI_H
#define __NET_DEVICE_WIFI_H
#pragma once
#include <glib-object.h>
@ -36,5 +35,3 @@ GtkWidget *net_device_wifi_get_title_widget (NetDeviceWifi *device_wifi);
G_END_DECLS
#endif /* __NET_DEVICE_WIFI_H */

View file

@ -19,8 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef __NET_DEVICE_H
#define __NET_DEVICE_H
#pragma once
#include <glib-object.h>
@ -47,6 +46,3 @@ NMConnection *net_device_get_find_connection (NetDevice *device)
GSList *net_device_get_valid_connections (NetDevice *device);
G_END_DECLS
#endif /* __NET_DEVICE_H */

View file

@ -19,8 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef __NET_PROXY_H
#define __NET_PROXY_H
#pragma once
#include <glib-object.h>
@ -34,6 +33,3 @@ G_DECLARE_FINAL_TYPE (NetProxy, net_proxy, NET, PROXY, NetObject)
NetProxy *net_proxy_new (void);
G_END_DECLS
#endif /* __NET_PROXY_H */

View file

@ -19,8 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef __NET_VPN_H
#define __NET_VPN_H
#pragma once
#include <glib-object.h>
#include <NetworkManager.h>
@ -36,6 +35,3 @@ void net_vpn_set_show_separator (NetVpn *self,
gboolean show_separator);
G_END_DECLS
#endif /* __NET_VPN_H */

View file

@ -17,8 +17,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef _NETWORK_DIALOGS_H
#define _NETWORK_DIALOGS_H
#pragma once
#include <NetworkManager.h>
#include <gtk/gtk.h>
@ -37,5 +36,3 @@ void cc_network_panel_connect_to_8021x_network (GtkWidget *toplevel,
void cc_network_panel_connect_to_3g_network (GtkWidget *toplevel,
NMClient *client,
NMDevice *device);
#endif /* _NETWORK_DIALOGS_H */

View file

@ -19,8 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef PANEL_COMMON_H
#define PANEL_COMMON_H
#pragma once
#include <glib-object.h>
#include <NetworkManager.h>
@ -51,5 +50,3 @@ gchar *panel_get_ip4_dns_as_string (NMIPConfig *conf
gchar *panel_get_ip6_address_as_string (NMIPConfig *config);
G_END_DECLS
#endif /* PANEL_COMMON_H */