aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dfilter/dfilter-macro.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-08-21 17:12:39 -0700
committerGerald Combs <gerald@wireshark.org>2015-08-22 01:51:04 +0000
commitee80be6dac02979bc10b7c1ccc8735525a983f63 (patch)
tree6958bf9fda0fca462da8e1b316ebbc46bcae78fd /epan/dfilter/dfilter-macro.h
parent97014f6d6b1b3994f44421fc28ed2c151977f6a0 (diff)
Add the display filter macros dialog.
Add some missing functionality to UatDialog. Remove what appears to be unused dfilter macro code. Change-Id: I8a8d6358523f24d5ddfe953d7741fe9af25d98eb Reviewed-on: https://code.wireshark.org/review/10187 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'epan/dfilter/dfilter-macro.h')
-rw-r--r--epan/dfilter/dfilter-macro.h22
1 files changed, 10 insertions, 12 deletions
diff --git a/epan/dfilter/dfilter-macro.h b/epan/dfilter/dfilter-macro.h
index 68462529ac..89622529ab 100644
--- a/epan/dfilter/dfilter-macro.h
+++ b/epan/dfilter/dfilter-macro.h
@@ -27,6 +27,9 @@
#define DFILTER_MACRO_FILENAME "dfilter_macros"
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
typedef struct _dfilter_macro_t {
gchar* name; /* the macro id */
@@ -38,26 +41,21 @@ typedef struct _dfilter_macro_t {
void* priv; /* a copy of text that contains every c-string in parts */
} dfilter_macro_t;
-/* loop over the macros list */
-typedef void (*dfilter_macro_cb_t)(dfilter_macro_t*, void*);
-WS_DLL_PUBLIC
-void dfilter_macro_foreach(dfilter_macro_cb_t, void*);
-
-/* save dfilter macros to a file */
-void dfilter_macro_save(const gchar*, gchar**);
-
-/* dumps the macros in the list (debug info, not formated as in the macros file) */
-void dfilter_macro_dump(void);
-
/* applies all macros to the given text and returns the resulting string or NULL on failure */
const gchar* dfilter_macro_apply(const gchar* text, gchar** error);
void dfilter_macro_init(void);
+struct epan_uat;
+
WS_DLL_PUBLIC
-void dfilter_macro_get_uat(void**);
+void dfilter_macro_get_uat(struct epan_uat **dfmu_ptr_ptr);
WS_DLL_PUBLIC
void dfilter_macro_build_ftv_cache(void* tree_root);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* _DFILTER_MACRO_H */