diff options
author | ToolsDevler <info@toolsdevler.net> | 2022-04-21 22:14:17 +0300 |
---|---|---|
committer | ToolsDevler <info@toolsdevler.net> | 2022-04-21 22:15:34 +0300 |
commit | 96bd992bf1bebdb3eb34fcc797e94d4b4a694153 (patch) | |
tree | 2997cca1a8537f70c30fa7164dfdb439452081be /plugins | |
parent | e40c34801a260448dac4774e5e0cc91eafe554ab (diff) |
Apply plugin api changes from Python plugin change
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/kwallet/src/kwallet_plugin.h | 3 | ||||
-rw-r--r-- | plugins/kwallet/src/kwallet_plugin_main.c | 10 |
2 files changed, 8 insertions, 5 deletions
diff --git a/plugins/kwallet/src/kwallet_plugin.h b/plugins/kwallet/src/kwallet_plugin.h index 9465d6b7f..8c4adfb25 100644 --- a/plugins/kwallet/src/kwallet_plugin.h +++ b/plugins/kwallet/src/kwallet_plugin.h @@ -33,6 +33,9 @@ * */ +#include <gtk/gtk.h> +#include "remmina/plugin.h" + #ifdef __cplusplus extern "C" { #endif diff --git a/plugins/kwallet/src/kwallet_plugin_main.c b/plugins/kwallet/src/kwallet_plugin_main.c index 5b7c593cc..25f918f3a 100644 --- a/plugins/kwallet/src/kwallet_plugin_main.c +++ b/plugins/kwallet/src/kwallet_plugin_main.c @@ -44,7 +44,7 @@ static RemminaPluginService *remmina_plugin_service = NULL; -gboolean remmina_plugin_kwallet_is_service_available() +gboolean remmina_plugin_kwallet_is_service_available(RemminaPlugin *plugin) { return rp_kwallet_is_service_available(); } @@ -68,7 +68,7 @@ static gchar *build_kwallet_key(RemminaFile *remminafile, const gchar *key) return kwkey; } -void remmina_plugin_kwallet_store_password(RemminaFile *remminafile, const gchar *key, const gchar *password) +void remmina_plugin_kwallet_store_password(RemminaPlugin *plugin, RemminaFile *remminafile, const gchar *key, const gchar *password) { TRACE_CALL(__func__); gchar *kwkey; @@ -78,7 +78,7 @@ void remmina_plugin_kwallet_store_password(RemminaFile *remminafile, const gchar } gchar* -remmina_plugin_kwallet_get_password(RemminaFile *remminafile, const gchar *key) +remmina_plugin_kwallet_get_password(RemminaPlugin *plugin, RemminaFile *remminafile, const gchar *key) { TRACE_CALL(__func__); gchar *kwkey, *password; @@ -90,7 +90,7 @@ remmina_plugin_kwallet_get_password(RemminaFile *remminafile, const gchar *key) return password; } -void remmina_plugin_kwallet_delete_password(RemminaFile *remminafile, const gchar *key) +void remmina_plugin_kwallet_delete_password(RemminaPlugin *plugin, RemminaFile *remminafile, const gchar *key) { TRACE_CALL(__func__); gchar *kwkey; @@ -99,7 +99,7 @@ void remmina_plugin_kwallet_delete_password(RemminaFile *remminafile, const gcha g_free(kwkey); } -gboolean remmina_plugin_kwallet_init() +gboolean remmina_plugin_kwallet_init(RemminaPlugin *plugin) { /* Activates only when KDE is running */ const gchar *envvar; |