aboutsummaryrefslogtreecommitdiffstats
path: root/capture_ui_utils.h
diff options
context:
space:
mode:
authormorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>2007-08-22 18:56:20 +0000
committermorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>2007-08-22 18:56:20 +0000
commit53b4d3d1512fa76425c42f0bd46f8e7fb7dc5bad (patch)
tree1db43eda4da23d1b01afe37bb2167a1b97c3ac6f /capture_ui_utils.h
parent94d4a3a89ddc2982d28b43465e0e85da638f8ff9 (diff)
gcc 4 doesn't like my macro for getting the interface description: it says there's an invalid lvalue in it. I don't see what's wrong with it, but replace the macro with a function. Also: don't include the .xpm files in gtk/main.c if we're building without PCAP (as they're not used in that configuration).
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22588 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture_ui_utils.h')
-rw-r--r--capture_ui_utils.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/capture_ui_utils.h b/capture_ui_utils.h
index 637c6ccc28..8370b31d4a 100644
--- a/capture_ui_utils.h
+++ b/capture_ui_utils.h
@@ -25,6 +25,8 @@
#ifndef __CAPTURE_UI_UTILS_H__
#define __CAPTURE_UI_UTILS_H__
+#include "capture_opts.h"
+
/** @file
* GList of available capture interfaces.
*/
@@ -74,6 +76,14 @@ const char *get_if_name(const char *if_text);
*
* @return The descriptive name (must be g_free'd later)
*/
-char * build_capture_combo_name(GList *if_list, gchar *if_name);
+char *build_capture_combo_name(GList *if_list, gchar *if_name);
+
+/** Return the interface description (after setting it if not already set)
+ *
+ * @param capture_opts The capture_options structure that contains the used interface
+ *
+ * @return A pointer to capture_ops->iface_descr
+ */
+const char *get_iface_description(capture_options *capture_opts);
#endif