Skip to content

Commit

Permalink
Added remmina 1.1 compatibility for the API change
Browse files Browse the repository at this point in the history
  • Loading branch information
muflone committed Apr 23, 2016
1 parent 3a04f1a commit bfeff87
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
10 changes: 7 additions & 3 deletions remmina/plugin.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Remmina - The GTK+ Remote Desktop Client
* Copyright (C) 2010-2011 Vic Lee
* Copyright (C) 2014-2015 Antenore Gatta, Fabio Castelli, Giovanni Panozzo
* Copyright (C) 2014-2016 Antenore Gatta, Fabio Castelli, Giovanni Panozzo
*
* 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
Expand Down Expand Up @@ -81,7 +81,9 @@ typedef struct _RemminaProtocolPlugin
gboolean (* query_feature) (RemminaProtocolWidget *gp, const RemminaProtocolFeature *feature);
void (* call_feature) (RemminaProtocolWidget *gp, const RemminaProtocolFeature *feature);
void (* send_keystrokes) (RemminaProtocolWidget *gp, const guint keystrokes[], const gint keylen);
#ifndef REMMINA_VER_1_1
gboolean (* get_plugin_screenshot)(RemminaProtocolWidget *gp, RemminaPluginScreenshotData *rpsd);
#endif
} RemminaProtocolPlugin;

typedef struct _RemminaEntryPlugin
Expand Down Expand Up @@ -133,6 +135,7 @@ typedef struct _RemminaPrefPlugin
GtkWidget* (* get_pref_body) (void);
} RemminaPrefPlugin;

#ifndef REMMINA_VER_1_1
typedef struct _RemminaSecretPlugin
{
RemminaPluginType type;
Expand All @@ -146,6 +149,7 @@ typedef struct _RemminaSecretPlugin
gchar* (* get_password) (RemminaFile *remminafile, const gchar *key);
void (* delete_password) (RemminaFile *remminafile, const gchar *key);
} RemminaSecretPlugin;
#endif

/* Plugin Service is a struct containing a list of function pointers,
* which is passed from Remmina main program to the plugin module
Expand Down Expand Up @@ -197,9 +201,9 @@ typedef struct _RemminaPluginService
void (* protocol_plugin_chat_close) (RemminaProtocolWidget *gp);
void (* protocol_plugin_chat_receive) (RemminaProtocolWidget *gp, const gchar *text);
void (* protocol_plugin_send_keys_signals) (GtkWidget *widget, const guint *keyvals, int length, GdkEventType action);

#ifndef REMMINA_VER_1_1
gchar* (* file_get_user_datadir) (void);

#endif
RemminaFile* (* file_new) (void);
const gchar* (* file_get_path) (RemminaFile *remminafile);
void (* file_set_string) (RemminaFile *remminafile, const gchar *setting, const gchar *value);
Expand Down
14 changes: 7 additions & 7 deletions remmina/remmina_plugin.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Remmina - The GTK+ Remote Desktop Client
* Copyright (C) 2010 Vic Lee
* Copyright (C) 2014-2015 Antenore Gatta, Fabio Castelli, Giovanni Panozzo
* Copyright (C) 2014-2016 Antenore Gatta, Fabio Castelli, Giovanni Panozzo
*
* 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
Expand Down Expand Up @@ -47,22 +47,22 @@
#include <signal.h>
#include <pthread.h>
#ifdef HAVE_NETDB_H
#include <netdb.h>
#include <netdb.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#include <netinet/in.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#include <sys/socket.h>
#endif
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#include <fcntl.h>
#endif
#ifdef HAVE_ERRNO_H
#include <errno.h>
#include <errno.h>
#endif
#include "remmina/remmina_trace_calls.h"

Expand Down
2 changes: 1 addition & 1 deletion remmina/remmina_trace_calls.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Remmina - The GTK+ Remote Desktop Client
* Copyright (C) 2014-2015 Antenore Gatta, Fabio Castelli, Giovanni Panozzo
* Copyright (C) 2014-2016 Antenore Gatta, Fabio Castelli, Giovanni Panozzo
*
* 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
Expand Down
2 changes: 1 addition & 1 deletion remmina/types.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Remmina - The GTK+ Remote Desktop Client
* Copyright (C) 2010 Vic Lee
* Copyright (C) 2014-2015 Antenore Gatta, Fabio Castelli, Giovanni Panozzo
* Copyright (C) 2014-2016 Antenore Gatta, Fabio Castelli, Giovanni Panozzo
*
* 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
Expand Down

0 comments on commit bfeff87

Please # to comment.