Commit 56e40d68 authored by Antenore Gatta's avatar Antenore Gatta

Using #pragma once instead of the old header definition

parent ec2c0f66
......@@ -33,8 +33,7 @@
*
*/
#ifndef __REMMINAPLUGINCOMMON_H__
#define __REMMINAPLUGINCOMMON_H__
#pragma once
#include "config.h"
#include <gtk/gtk.h>
......@@ -98,5 +97,4 @@ remmina_get_available_xdisplay (void) \
return display; \
}
#endif /* __REMMINAPLUGINCOMMON_H__ */
/*
* Remmina - The GTK+ Remote Desktop Client
* Copyright (C) 2010 Vic Lee
* Copyright (C) 2010 Vic Lee
* Copyright (C) 2014-2015 Antenore Gatta, Fabio Castelli, Giovanni Panozzo
*
* This program is free software; you can redistribute it and/or modify
......@@ -15,7 +15,7 @@
*
* 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,
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*
* In addition, as a special exception, the copyright holders give
......@@ -33,8 +33,7 @@
*
*/
#ifndef __REMMINAPLUGINNX_H__
#define __REMMINAPLUGINNX_H__
#pragma once
#define GET_PLUGIN_DATA(gp) (RemminaPluginNxData*) g_object_get_data(G_OBJECT(gp), "plugin-data");
......@@ -81,5 +80,3 @@ extern RemminaPluginService *remmina_plugin_nx_service;
G_END_DECLS
#endif
......@@ -32,8 +32,7 @@
*
*/
#ifndef __REMMINANXSESSION_H__
#define __REMMINANXSESSION_H__
#pragma once
G_BEGIN_DECLS
......@@ -105,5 +104,4 @@ void remmina_nx_session_bye(RemminaNXSession *nx);
G_END_DECLS
#endif /* __REMMINANXSESSION_H__ */
/*
* Remmina - The GTK+ Remote Desktop Client
* Copyright (C) 2010 Vic Lee
* Copyright (C) 2010 Vic Lee
*
* 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
......@@ -14,7 +14,7 @@
*
* 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,
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*
* In addition, as a special exception, the copyright holders give
......@@ -32,8 +32,7 @@
*
*/
#ifndef __REMMINANXSESSIONMANAGER_H__
#define __REMMINANXSESSIONMANAGER_H__
#pragma once
G_BEGIN_DECLS
......@@ -41,5 +40,3 @@ void remmina_nx_session_manager_start(RemminaProtocolWidget *gp);
G_END_DECLS
#endif
......@@ -33,8 +33,7 @@
*/
#ifndef __REMMINA_RDP_CHANNELS_H
#define __REMMINA_RDP_CHANNELS_H
#pragma once
#include <freerdp/freerdp.h>
#include <freerdp/client/channels.h>
......@@ -53,4 +52,3 @@ void remmina_rdp_OnChannelDisconnectedEventHandler(rdpContext* context, ChannelC
G_END_DECLS
#endif
......@@ -34,8 +34,7 @@
*
*/
#ifndef __REMMINA_RDP_CLIPRDR_H__
#define __REMMINA_RDP_CLIPRDR_H__
#pragma once
#include <freerdp/freerdp.h>
......@@ -48,5 +47,3 @@ void remmina_rdp_channel_cliprdr_process(RemminaProtocolWidget* gp, wMessage* ev
void remmina_rdp_event_process_clipboard(RemminaProtocolWidget* gp, RemminaPluginRdpUiObject* ui);
CLIPRDR_FORMAT_LIST *remmina_rdp_cliprdr_get_client_format_list(RemminaProtocolWidget* gp);
#endif
......@@ -32,8 +32,7 @@
*
*/
#ifndef __REMMINA_RDP_EVENT_H__
#define __REMMINA_RDP_EVENT_H__
#pragma once
G_BEGIN_DECLS
......@@ -50,5 +49,3 @@ void *remmina_rdp_event_queue_ui_sync_retptr(RemminaProtocolWidget* gp, RemminaP
G_END_DECLS
#endif
/*
* Remmina - The GTK+ Remote Desktop Client
* Copyright (C) 2010-2011 Vic Lee
* Copyright (C) 2010-2011 Vic Lee
*
* 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
......@@ -14,7 +14,7 @@
*
* 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,
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*
* In addition, as a special exception, the copyright holders give
......@@ -32,8 +32,7 @@
*
*/
#ifndef __REMMINA_RDP_FILE_H__
#define __REMMINA_RDP_FILE_H__
#pragma once
G_BEGIN_DECLS
......@@ -44,5 +43,3 @@ gboolean remmina_rdp_file_export(RemminaFile* remminafile, const gchar* to_file)
G_END_DECLS
#endif
/*
* Remmina - The GTK+ Remote Desktop Client
* Copyright (C) 2010-2011 Vic Lee
* Copyright (C) 2010-2011 Vic Lee
*
* 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
......@@ -14,7 +14,7 @@
*
* 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,
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*
* In addition, as a special exception, the copyright holders give
......@@ -32,12 +32,9 @@
*
*/
#ifndef __REMMINA_RDP_GRAPHICS_H__
#define __REMMINA_RDP_GRAPHICS_H__
#pragma once
#include "rdp_plugin.h"
void rf_register_graphics(rdpGraphics* graphics);
#endif
......@@ -33,8 +33,7 @@
*
*/
#ifndef __REMMINA_RDP_H__
#define __REMMINA_RDP_H__
#pragma once
#include "common/remmina_plugin.h"
#include <freerdp/freerdp.h>
......@@ -330,5 +329,3 @@ void rf_object_free(RemminaProtocolWidget* gp, RemminaPluginRdpUiObject* obj);
void remmina_rdp_event_event_push(RemminaProtocolWidget* gp, const RemminaPluginRdpEvent* e);
#endif
......@@ -32,8 +32,7 @@
*
*/
#ifndef __REMMINA_RDP_SETTINGS_H__
#define __REMMINA_RDP_SETTINGS_H__
#pragma once
G_BEGIN_DECLS
......@@ -45,5 +44,3 @@ void remmina_rdp_settings_get_orientation_scale_prefs(int *desktopOrientation, i
G_END_DECLS
#endif
......@@ -32,8 +32,7 @@
*
*/
#ifndef __REMMINA_SPICE_PLUGIN_H__
#define __REMMINA_SPICE_PLUGIN_H__
#pragma once
#include "common/remmina_plugin.h"
#include <spice-client.h>
......@@ -70,4 +69,3 @@ typedef struct _RemminaPluginSpiceData
} RemminaPluginSpiceData;
#endif /* __REMMINA_SPICE_PLUGIN_H__ */
......@@ -32,8 +32,7 @@
*
*/
#ifndef __REMMINATPCHANNELHANDLER_H__
#define __REMMINATPCHANNELHANDLER_H__
#pragma once
G_BEGIN_DECLS
......
/*
* Remmina - The GTK+ Remote Desktop Client
* Copyright (C) 2010 Vic Lee
* Copyright (C) 2010 Vic Lee
*
* 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
......@@ -14,7 +14,7 @@
*
* 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,
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*
* In addition, as a special exception, the copyright holders give
......@@ -32,8 +32,7 @@
*
*/
#ifndef __REMMINATPHANDLER_H__
#define __REMMINATPHANDLER_H__
#pragma once
G_BEGIN_DECLS
......@@ -58,5 +57,3 @@ RemminaTpHandler* remmina_tp_handler_new(void);
G_END_DECLS
#endif
......@@ -33,8 +33,7 @@
*
*/
#ifndef __REMMINA_PLUGIN_H__
#define __REMMINA_PLUGIN_H__
#pragma once
#include <remmina/types.h>
#include "remmina/remmina_trace_calls.h"
......@@ -234,5 +233,4 @@ typedef gboolean (*RemminaPluginEntryFunc) (RemminaPluginService *service);
G_END_DECLS
#endif /* __REMMINA_PLUGIN_H__ */
......@@ -32,8 +32,7 @@
*
*/
#ifndef __REMMINATRACECALLS_H__
#define __REMMINATRACECALLS_H__
#pragma once
#ifdef WITH_TRACE_CALLS
......@@ -52,4 +51,3 @@
#define TRACE_CALL(text)
#endif /* _WITH_TRACE_CALLS_ */
#endif /* __REMMINATRACECALLS_H__ */
......@@ -33,8 +33,7 @@
*
*/
#ifndef __REMMINA_TYPES_H__
#define __REMMINA_TYPES_H__
#pragma once
G_BEGIN_DECLS
......@@ -128,5 +127,4 @@ typedef enum {
G_END_DECLS
#endif /* __REMMINA_TYPES_H__ */
......@@ -33,8 +33,7 @@
*
*/
#ifndef __REMMINAABOUT_H__
#define __REMMINAABOUT_H__
#pragma once
G_BEGIN_DECLS
......@@ -42,5 +41,4 @@ void remmina_about_open(GtkWindow *parent);
G_END_DECLS
#endif /* __REMMINAABOUT_H__ */
......@@ -32,8 +32,7 @@
*
*/
#ifndef __REMMINAAPPLETMENU_H__
#define __REMMINAAPPLETMENU_H__
#pragma once
G_BEGIN_DECLS
......@@ -79,5 +78,4 @@ void remmina_applet_menu_populate(RemminaAppletMenu* menu);
G_END_DECLS
#endif /* __REMMINAAPPLETMENU_H__ */
......@@ -32,8 +32,7 @@
*
*/
#ifndef __REMMINAAPPLETMENUITEM_H__
#define __REMMINAAPPLETMENUITEM_H__
#pragma once
G_BEGIN_DECLS
......@@ -75,5 +74,4 @@ gint remmina_applet_menu_item_compare(gconstpointer a, gconstpointer b, gpointer
G_END_DECLS
#endif /* __REMMINAAPPLETMENUITEM_H__ */
......@@ -32,8 +32,7 @@
*
*/
#ifndef __REMMINAAVAHI_H__
#define __REMMINAAVAHI_H__
#pragma once
G_BEGIN_DECLS
......@@ -54,5 +53,4 @@ void remmina_avahi_free(RemminaAvahi* ga);
G_END_DECLS
#endif /* __REMMINAAVAHI_H__ */
......@@ -32,8 +32,7 @@
*
*/
#ifndef __REMMINACHATWINDOW_H__
#define __REMMINACHATWINDOW_H__
#pragma once
G_BEGIN_DECLS
......@@ -67,5 +66,4 @@ void remmina_chat_window_receive(RemminaChatWindow *window, const gchar *name, c
G_END_DECLS
#endif /* __REMMINACHATWINDOW_H__ */
......@@ -33,8 +33,7 @@
*
*/
#ifndef __REMMINACONNECTIONWINDOW_H__
#define __REMMINACONNECTIONWINDOW_H__
#pragma once
#include "remmina_file.h"
......@@ -81,5 +80,4 @@ GtkWidget* remmina_connection_window_open_from_file_full(RemminaFile* remminafil
G_END_DECLS
#endif /* __REMMINACONNECTIONWINDOW_H__ */
......@@ -32,8 +32,7 @@
*
*/
#ifndef __REMMINACRYPT_H__
#define __REMMINACRYPT_H__
#pragma once
G_BEGIN_DECLS
......@@ -42,5 +41,4 @@ gchar* remmina_crypt_decrypt(const gchar* str);
G_END_DECLS
#endif /* __REMMINACRYPT_H__ */
......@@ -32,8 +32,7 @@
*
*/
#ifndef __REMMINAEXEC_H__
#define __REMMINAEXEC_H__
#pragma once
G_BEGIN_DECLS
......@@ -65,5 +64,4 @@ void remmina_application_condexit(RemminaCondExitType why);
G_END_DECLS
#endif /* __REMMINAEXEC_H__ */
......@@ -32,8 +32,7 @@
*
*/
#ifndef __REMMINAEXTERNALTOOLS_H__
#define __REMMINAEXTERNALTOOLS_H__
#pragma once
#include <gtk/gtk.h>
#include "remmina_file.h"
......@@ -46,5 +45,4 @@ gboolean remmina_external_tools_from_filename(RemminaMain *remminamain, gchar* f
G_END_DECLS
#endif /* __REMMINAEXTERNALTOOLS_H__ */
......@@ -35,8 +35,7 @@
#include "remmina/types.h"
#ifndef __REMMINAFILE_H__
#define __REMMINAFILE_H__
#pragma once
G_BEGIN_DECLS
......@@ -96,5 +95,4 @@ void remmina_file_touch(RemminaFile *remminafilefile);
G_END_DECLS
#endif /* __REMMINAFILE_H__ */
......@@ -33,8 +33,7 @@
*
*/
#ifndef __REMMINAFILEEDITOR_H__
#define __REMMINAFILEEDITOR_H__
#pragma once
G_BEGIN_DECLS
......@@ -73,5 +72,4 @@ GtkWidget* remmina_file_editor_new_from_filename(const gchar* filename);
G_END_DECLS
#endif /* __REMMINAFILEEDITOR_H__ */
......@@ -32,8 +32,7 @@
*
*/
#ifndef __REMMINAFILEMANAGER_H__
#define __REMMINAFILEMANAGER_H__
#pragma once
#include "remmina_file.h"
......@@ -60,5 +59,4 @@ RemminaFile* remmina_file_manager_load_file(const gchar *filename);
G_END_DECLS
#endif /* __REMMINAFILEMANAGER_H__ */
......@@ -33,8 +33,7 @@
*
*/
#ifndef __REMMINAFTPCLIENT_H__
#define __REMMINAFTPCLIENT_H__
#pragma once
G_BEGIN_DECLS
......@@ -155,5 +154,4 @@ gboolean remmina_ftp_client_get_overwrite_status(RemminaFTPClient *client);
G_END_DECLS
#endif /* __REMMINAFTPCLIENT_H__ */
......@@ -32,8 +32,7 @@
*
*/
#ifndef __REMMINAICON_H__
#define __REMMINAICON_H__
#pragma once
G_BEGIN_DECLS
......@@ -46,5 +45,4 @@ gboolean remmina_icon_is_available(void);
G_END_DECLS
#endif /* __REMMINAICON_H__ */
......@@ -33,8 +33,7 @@
*
*/
#ifndef __REMMINAINITDIALG_H__
#define __REMMINAINITDIALG_H__
#pragma once
G_BEGIN_DECLS
......@@ -102,5 +101,4 @@ gint remmina_init_dialog_serverkey_confirm(RemminaInitDialog *dialog, const gcha
G_END_DECLS
#endif /* __REMMINAINITDIALG_H__ */
......@@ -32,8 +32,7 @@
*
*/
#ifndef __REMMINAKEYCHOOSER_H__
#define __REMMINAKEYCHOOSER_H__
#pragma once
#define KEY_MODIFIER_SHIFT _("Shift+")
#define KEY_MODIFIER_CTRL _("Ctrl+")
......@@ -62,5 +61,4 @@ guint remmina_key_chooser_get_keyval(const gchar *value);
G_END_DECLS
#endif /* __REMMINAKEYCHOOSER_H__ */
......@@ -32,8 +32,7 @@
*
*/
#ifndef __REMMINALOG_H__
#define __REMMINALOG_H__
#pragma once
G_BEGIN_DECLS
......@@ -44,5 +43,4 @@ void remmina_log_printf(const gchar *fmt, ...);
G_END_DECLS
#endif /* __REMMINALOG_H__ */
......@@ -35,8 +35,7 @@
#include "remmina_string_array.h"
#ifndef __REMMINAMAIN_H__
#define __REMMINAMAIN_H__
#pragma once
#include "remmina_file.h"
......@@ -116,4 +115,3 @@ void remmina_main_update_file_datetime(RemminaFile *file);
G_END_DECLS
#endif /* __REMMINAMAIN_H__ */
......@@ -36,8 +36,7 @@
#include "remmina/types.h"
#ifndef __REMMINAMPCHANGE_H__
#define __REMMINAMPCHANGE_H__
#pragma once
G_BEGIN_DECLS
......@@ -45,4 +44,3 @@ G_BEGIN_DECLS
/* Schedule the multipassword change confirmation dialog to be executed ASAP */
void remmina_mpchange_schedule(gboolean has_domain, const gchar *group, const gchar *domain, const gchar *username, const gchar *password);
#endif
......@@ -33,8 +33,7 @@
*
*/
#ifndef __REMMINAPREEXEC_H__
#define __REMMINAPREEXEC_H__
#pragma once
G_BEGIN_DECLS
......@@ -50,4 +49,3 @@ GtkDialog* remmina_plugin_cmdexec_new(RemminaFile* remminafile, const char *remm
G_END_DECLS
#endif /* __REMMINAPREEXEC_H__ */
......@@ -33,8 +33,7 @@
*
*/
#ifndef __REMMINAPLUGINMANAGER_H__
#define __REMMINAPLUGINMANAGER_H__
#pragma once
#include "remmina/plugin.h"
......@@ -58,5 +57,4 @@ extern RemminaPluginService remmina_plugin_manager_service;
G_END_DECLS
#endif /* __REMMINAPLUGINMANAGER_H__ */
......@@ -33,8 +33,7 @@
*
*/
#ifndef __REMMINAPREF_H__
#define __REMMINAPREF_H__
#pragma once
/*
* Remmina Perference Loader
......@@ -223,4 +222,3 @@ gchar* remmina_pref_get_value(const gchar *key);
G_END_DECLS
#endif /* __REMMINAPREF_H__ */
......@@ -32,8 +32,7 @@
*
*/
#ifndef __REMMINAPREFDIALOG_H__
#define __REMMINAPREFDIALOG_H__
#pragma once
/*
* Remmina Preferences Dialog
......@@ -143,4 +142,3 @@ GtkDialog* remmina_pref_dialog_get_dialog(void);
G_END_DECLS
#endif /* __REMMINAPREFDIALOG_H__ */
......@@ -33,8 +33,7 @@
*
*/
#ifndef __REMMINAPROTOCOLWIDGET_H__
#define __REMMINAPROTOCOLWIDGET_H__
#pragma once
#include "remmina_init_dialog.h"
#include "remmina_file.h"
......@@ -155,5 +154,4 @@ gboolean remmina_protocol_widget_plugin_screenshot(RemminaProtocolWidget* gp, Re
G_END_DECLS
#endif /* __REMMINAPROTOCOLWIDGET_H__ */
......@@ -33,8 +33,7 @@
*
*/
#ifndef __REMMINAPUBLIC_H__
#define __REMMINAPUBLIC_H__
#pragma once
#include "config.h"
......@@ -115,4 +114,3 @@ gchar* remmina_public_str_replace(const gchar *string, const gchar *search, cons
/* Replaces all occurences of search in a new copy of string by replacement
* and overwrites the original string */
gchar* remmina_public_str_replace_in_place(gchar *string, const gchar *search, const gchar *replacement);
#endif /* __REMMINAPUBLIC_H__ */
......@@ -32,8 +32,7 @@
*
*/
#ifndef __REMMINASCROLLEDVIEWPORT_H__
#define __REMMINASCROLLEDVIEWPORT_H__
#pragma once
G_BEGIN_DECLS
......@@ -73,5 +72,4 @@ void remmina_scrolled_viewport_remove_motion(RemminaScrolledViewport *gsv);
G_END_DECLS
#endif /* __REMMINASCROLLEDVIEWPORT_H__ */
......@@ -33,8 +33,7 @@
*
*/
#ifndef __REMMINASFTPCLIENT_H__
#define __REMMINASFTPCLIENT_H__
#pragma once
#include "config.h"
......@@ -81,5 +80,4 @@ G_END_DECLS
#endif /* HAVE_LIBSSH */
#endif /* __REMMINASFTPCLIENT_H__ */