aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/plugin_gtk_namestore_vpn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/plugin_gtk_namestore_vpn.c')
-rw-r--r--src/namestore/plugin_gtk_namestore_vpn.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/namestore/plugin_gtk_namestore_vpn.c b/src/namestore/plugin_gtk_namestore_vpn.c
index 7b106fb5..2bd9d025 100644
--- a/src/namestore/plugin_gtk_namestore_vpn.c
+++ b/src/namestore/plugin_gtk_namestore_vpn.c
@@ -34,13 +34,13 @@
34 * @param entry editing widget 34 * @param entry editing widget
35 * @param user_data the plugin environment 35 * @param user_data the plugin environment
36 */ 36 */
37void 37static void
38GNS_edit_dialog_vpn_peer_entry_changed_cb (GtkEditable *entry, 38GNS_edit_dialog_vpn_peer_entry_changed_cb (GtkEditable *entry,
39 gpointer user_data) 39 gpointer user_data)
40{ 40{
41 struct GNUNET_GTK_NAMESTORE_PluginEnvironment *env = user_data; 41 struct GNUNET_GTK_NAMESTORE_PluginEnvironment *edc = user_data;
42 42
43 env->check_validity (env->cls); 43 edc->check_validity (edc);
44} 44}
45 45
46 46
@@ -154,7 +154,7 @@ vpn_validate (void *cls,
154/** 154/**
155 * Entry point for the plugin. 155 * Entry point for the plugin.
156 * 156 *
157 * @param cls the "struct GNUNET_GTK_NAMESTORE_PluginEnvironment*" 157 * @param cls the `struct GNUNET_GTK_NAMESTORE_PluginEnvironment`
158 * @return NULL on error, otherwise the plugin context 158 * @return NULL on error, otherwise the plugin context
159 */ 159 */
160void * 160void *
@@ -162,11 +162,17 @@ libgnunet_plugin_gtk_namestore_vpn_init (void *cls)
162{ 162{
163 struct GNUNET_GTK_NAMESTORE_PluginEnvironment *env = cls; 163 struct GNUNET_GTK_NAMESTORE_PluginEnvironment *env = cls;
164 struct GNUNET_GTK_NAMESTORE_PluginFunctions *plugin; 164 struct GNUNET_GTK_NAMESTORE_PluginFunctions *plugin;
165 static struct GNUNET_GTK_NAMESTORE_Symbol symbols[] = {
166 { "GNS_edit_dialog_vpn_peer_entry_changed_cb",
167 G_CALLBACK (GNS_edit_dialog_vpn_peer_entry_changed_cb) },
168 { NULL, NULL }
169 };
165 170
166 plugin = GNUNET_new (struct GNUNET_GTK_NAMESTORE_PluginFunctions); 171 plugin = GNUNET_new (struct GNUNET_GTK_NAMESTORE_PluginFunctions);
167 plugin->cls = env; 172 plugin->cls = env;
168 plugin->dialog_glade_filename = "gnunet_namestore_edit_vpn.glade"; 173 plugin->dialog_glade_filename = "gnunet_namestore_edit_vpn.glade";
169 plugin->dialog_widget_name = "edit_vpn_dialog"; 174 plugin->dialog_widget_name = "edit_vpn_dialog";
175 plugin->symbols = symbols;
170 plugin->load = &vpn_load; 176 plugin->load = &vpn_load;
171 plugin->store = &vpn_store; 177 plugin->store = &vpn_store;
172 plugin->validate = &vpn_validate; 178 plugin->validate = &vpn_validate;