Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2021-10-02 00:53:43 +0300
committerDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2021-10-02 01:02:17 +0300
commita21040b82588e6c6892ef93776fe94a04dc39ff1 (patch)
tree275b571fd0d0c945de1fdc1055f2944d9c85aa88 /plugins/tool_hello_world
parentb53aacfbb4d9fb2bb731784e4b8967a3baf1bc34 (diff)
(All protocol-plugins): Add 2xNULL to the end of each item in basic settings (RemminaProtocolSetting array), for the validation feature.
Diffstat (limited to 'plugins/tool_hello_world')
-rw-r--r--plugins/tool_hello_world/plugin.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/plugins/tool_hello_world/plugin.c b/plugins/tool_hello_world/plugin.c
index 56171e971..793d2d8b3 100644
--- a/plugins/tool_hello_world/plugin.c
+++ b/plugins/tool_hello_world/plugin.c
@@ -75,11 +75,19 @@ static gboolean remmina_plugin_tool_close_connection(RemminaProtocolWidget *gp)
* c) Setting description
* d) Compact disposition
* e) Values for REMMINA_PROTOCOL_SETTING_TYPE_SELECT or REMMINA_PROTOCOL_SETTING_TYPE_COMBO
- * f) Setting Tooltip
+ * f) Setting tooltip
+ * g) Validation data pointer, will be passed to the validation callback method.
+ * h) Validation callback method (Can be NULL. Every entry will be valid then.)
+ * use following prototype:
+ * gboolean mysetting_validator_method(gpointer key, gpointer value,
+ * gpointer validator_data);
+ * gpointer key is a gchar* containing the setting's name,
+ * gpointer value contains the value which should be validated,
+ * gpointer validator_data contains your passed data.
*/
static const RemminaProtocolSetting remmina_plugin_tool_basic_settings[] =
{
- { REMMINA_PROTOCOL_SETTING_TYPE_END, NULL, NULL, FALSE, NULL, NULL }
+ { REMMINA_PROTOCOL_SETTING_TYPE_END, NULL, NULL, FALSE, NULL, NULL, NULL, NULL }
};
/* Protocol plugin definition and features */