diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-07-27 22:37:26 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-07-27 22:37:26 +0000 |
commit | 210507cc7660b108f991382f44a45d63a225d754 (patch) | |
tree | 78746f785a24c5bd6faa48f14f1653d41f8d44e9 /ui/recent.h | |
parent | 3663498a8b39f4159ca90eaee2fbc915df27712a (diff) |
Have separate lists of recent capture filters for all interfaces, in
addition to a "global" list. Store all of those lists in the recent
file. Maintain the lists in ui/recent.c, rather than attaching them to
widgets; have the code that populates the combo boxes get the lists from
the ui/recent.c code.
This makes a little more of the code GUI-toolkit-independent, and should
fix bug 7278.
#BACKPORT 1.10, 1.8
svn path=/trunk/; revision=50956
Diffstat (limited to 'ui/recent.h')
-rw-r--r-- | ui/recent.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ui/recent.h b/ui/recent.h index 0954e71b3b..374c4fbab7 100644 --- a/ui/recent.h +++ b/ui/recent.h @@ -182,6 +182,22 @@ extern void window_geom_save(const gchar *name, window_geometry_t *geom); /* load the desired geometry for this window from the geometry hashtable */ extern gboolean window_geom_load(const gchar *name, window_geometry_t *geom); +/** + * Returns a list of recent capture filters. + * + * @param ifname interface name; NULL refers to the global list. + */ +extern GList *recent_get_cfilter_list(const gchar *ifname); + +/** + * Add a capture filter to the global recent capture filter list or + * the recent capture filter list for an interface. + * + * @param ifname interface name; NULL refers to the global list. + * @param s text of capture filter + */ +extern void recent_add_cfilter(const gchar *ifname, const gchar *s); + #ifdef __cplusplus } #endif /* __cplusplus */ |