diff options
author | Antenore Gatta <antenore@simbiosi.org> | 2019-11-03 17:37:36 +0300 |
---|---|---|
committer | Antenore Gatta <antenore@simbiosi.org> | 2019-11-03 17:37:36 +0300 |
commit | 6f10ec424a0b1a60fcebe62272228cb5f83e589d (patch) | |
tree | 640565857546bad51a003061ec8aac6fdc80316a /plugins/nx | |
parent | 95a047c54acb82aa2b9ead799506b66a68edd8b3 (diff) |
Code cleaning
Diffstat (limited to 'plugins/nx')
-rw-r--r-- | plugins/nx/nx_plugin.h | 31 | ||||
-rw-r--r-- | plugins/nx/nx_session.h | 11 | ||||
-rw-r--r-- | plugins/nx/nx_session_manager.h | 1 |
3 files changed, 19 insertions, 24 deletions
diff --git a/plugins/nx/nx_plugin.h b/plugins/nx/nx_plugin.h index 1122a781d..a55849b45 100644 --- a/plugins/nx/nx_plugin.h +++ b/plugins/nx/nx_plugin.h @@ -36,7 +36,7 @@ #pragma once -#define GET_PLUGIN_DATA(gp) (RemminaPluginNxData*)g_object_get_data(G_OBJECT(gp), "plugin-data"); +#define GET_PLUGIN_DATA(gp) (RemminaPluginNxData *)g_object_get_data(G_OBJECT(gp), "plugin-data"); G_BEGIN_DECLS @@ -51,31 +51,30 @@ typedef enum { } RemminaNXEventType; typedef struct _RemminaPluginNxData { - GtkWidget *socket; - gint socket_id; + GtkWidget * socket; + gint socket_id; - pthread_t thread; + pthread_t thread; - RemminaNXSession *nx; + RemminaNXSession * nx; - Display *display; - Window window_id; + Display * display; + Window window_id; int (*orig_handler)(Display *, XErrorEvent *); /* Session Manager data */ - gboolean manager_started; - GtkWidget *manager_dialog; - gboolean manager_selected; + gboolean manager_started; + GtkWidget * manager_dialog; + gboolean manager_selected; /* Communication between the NX thread and the session manager */ - gint event_pipe[2]; - guint session_manager_start_handler; - gboolean attach_session; - GtkTreeIter iter; - gint default_response; + gint event_pipe[2]; + guint session_manager_start_handler; + gboolean attach_session; + GtkTreeIter iter; + gint default_response; } RemminaPluginNxData; extern RemminaPluginService *remmina_plugin_nx_service; G_END_DECLS - diff --git a/plugins/nx/nx_session.h b/plugins/nx/nx_session.h index d97efae43..a59efc5f3 100644 --- a/plugins/nx/nx_session.h +++ b/plugins/nx/nx_session.h @@ -51,13 +51,13 @@ typedef struct _RemminaNXSession RemminaNXSession; typedef gboolean (*RemminaNXPassphraseCallback)(gchar **passphrase, gpointer userdata); typedef void (*RemminaNXLogCallback)(const gchar *fmt, ...); -RemminaNXSession* remmina_nx_session_new(void); +RemminaNXSession *remmina_nx_session_new(void); void remmina_nx_session_free(RemminaNXSession *nx); gboolean remmina_nx_session_has_error(RemminaNXSession *nx); -const gchar* remmina_nx_session_get_error(RemminaNXSession *nx); +const gchar *remmina_nx_session_get_error(RemminaNXSession *nx); void remmina_nx_session_clear_error(RemminaNXSession *nx); @@ -67,8 +67,7 @@ void remmina_nx_session_set_localport(RemminaNXSession *nx, gint localport); void remmina_nx_session_set_log_callback(RemminaNXSession *nx, RemminaNXLogCallback log_callback); -gboolean remmina_nx_session_open(RemminaNXSession *nx, const gchar *server, guint port, const gchar *private_key_file, - RemminaNXPassphraseCallback passphrase_func, gpointer userdata); +gboolean remmina_nx_session_open(RemminaNXSession *nx, const gchar *server, guint port, const gchar *private_key_file, RemminaNXPassphraseCallback passphrase_func, gpointer userdata); gboolean remmina_nx_session_login(RemminaNXSession *nx, const gchar *username, const gchar *password); @@ -82,7 +81,7 @@ gboolean remmina_nx_session_iter_first(RemminaNXSession *nx, GtkTreeIter *iter); gboolean remmina_nx_session_iter_next(RemminaNXSession *nx, GtkTreeIter *iter); -gchar* remmina_nx_session_iter_get(RemminaNXSession *nx, GtkTreeIter *iter, gint column); +gchar *remmina_nx_session_iter_get(RemminaNXSession *nx, GtkTreeIter *iter, gint column); void remmina_nx_session_iter_set(RemminaNXSession *nx, GtkTreeIter *iter, gint column, const gchar *data); @@ -103,5 +102,3 @@ gboolean remmina_nx_session_invoke_proxy(RemminaNXSession *nx, gint display, GCh void remmina_nx_session_bye(RemminaNXSession *nx); G_END_DECLS - - diff --git a/plugins/nx/nx_session_manager.h b/plugins/nx/nx_session_manager.h index add497ffb..4a51c3bf2 100644 --- a/plugins/nx/nx_session_manager.h +++ b/plugins/nx/nx_session_manager.h @@ -40,4 +40,3 @@ G_BEGIN_DECLS void remmina_nx_session_manager_start(RemminaProtocolWidget *gp); G_END_DECLS - |