aboutsummaryrefslogtreecommitdiffstats
path: root/epan/plugin_if.c
diff options
context:
space:
mode:
authorRoland Knall <rknall@gmail.com>2017-03-03 11:53:39 +0100
committerRoland Knall <rknall@gmail.com>2017-03-03 15:13:13 +0000
commit85aa48cef2d6334a05963bf36711d47eceb3d209 (patch)
treea99443e60b1c7d8367e09e1d0a63baff8fbb7871 /epan/plugin_if.c
parent9eca0390e70bf72573189c6f4d20d352ace8b814 (diff)
pluginIf: Add/Remove single entries from selector
Allow to add and remove single items from a selector list and also fixing the selection of items in a selector list Change-Id: I0c69ea97db6ca1a6932939f0df9049c6fb720f77 Reviewed-on: https://code.wireshark.org/review/20363 Petri-Dish: Roland Knall <rknall@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'epan/plugin_if.c')
-rw-r--r--epan/plugin_if.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/epan/plugin_if.c b/epan/plugin_if.c
index 841d93c16f..a24587698d 100644
--- a/epan/plugin_if.c
+++ b/epan/plugin_if.c
@@ -499,6 +499,18 @@ void ext_toolbar_update_data_by_index(ext_toolbar_t * entry, gpointer data, gpoi
ext_toolbar_update_entry( EXT_TOOLBAR_UPDATE_DATABYINDEX, entry, data, idx, silent );
}
+void ext_toolbar_update_data_add_entry(ext_toolbar_t * entry, gpointer data, gpointer idx, gboolean silent)
+{
+ if ( entry->item_type == EXT_TOOLBAR_SELECTOR )
+ ext_toolbar_update_entry( EXT_TOOLBAR_UPDATE_DATA_ADD, entry, data, idx, silent );
+}
+
+void ext_toolbar_update_data_remove_entry(ext_toolbar_t * entry, gpointer data, gpointer idx, gboolean silent)
+{
+ if ( entry->item_type == EXT_TOOLBAR_SELECTOR )
+ ext_toolbar_update_entry( EXT_TOOLBAR_UPDATE_DATA_REMOVE, entry, data, idx, silent );
+}
+
/* Implementation of GUI callback methods follows.
* This is a necessity, as using modern UI systems, gui interfaces often operate
* in different threads then the calling application. Even more so, if the calling