aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dfilter/dfilter.h
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dfilter/dfilter.h')
-rw-r--r--epan/dfilter/dfilter.h20
1 files changed, 5 insertions, 15 deletions
diff --git a/epan/dfilter/dfilter.h b/epan/dfilter/dfilter.h
index b408dc7757..1bbf907ec4 100644
--- a/epan/dfilter/dfilter.h
+++ b/epan/dfilter/dfilter.h
@@ -50,17 +50,16 @@ dfilter_cleanup(void);
* a pointer to the newly-allocated dfilter_t
* structure.
*
- * On failure, dfilter_error_msg points to an
- * appropriate error message. This error message is
- * a global string, so another invocation of
- * dfilter_compile() will clear it. The dfilter*
- * will be set to NULL after a failure.
+ * On failure, *err_msg is set to point to the error
+ * message. This error message is allocated with
+ * g_malloc(), and must be freed with g_free().
+ * The dfilter* will be set to NULL after a failure.
*
* Returns TRUE on success, FALSE on failure.
*/
WS_DLL_PUBLIC
gboolean
-dfilter_compile(const gchar *text, dfilter_t **dfp);
+dfilter_compile(const gchar *text, dfilter_t **dfp, gchar **err_msg);
/* Frees all memory used by dfilter, and frees
* the dfilter itself. */
@@ -68,15 +67,6 @@ WS_DLL_PUBLIC
void
dfilter_free(dfilter_t *df);
-
-/* dfilter_error_msg is NULL if there was no error during dfilter_compile,
- * otherwise it points to a displayable error message. With MSVC and a
- * libwireshark.dll, we need a special declaration.
- */
-
-WS_DLL_PUBLIC const gchar *dfilter_error_msg;
-
-
/* Apply compiled dfilter */
WS_DLL_PUBLIC
gboolean