diff options
Diffstat (limited to 'src/mm-util.h')
-rw-r--r-- | src/mm-util.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/mm-util.h b/src/mm-util.h new file mode 100644 index 00000000..049b5f94 --- /dev/null +++ b/src/mm-util.h @@ -0,0 +1,20 @@ +/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ + +#ifndef MM_UTIL_H +#define MM_UTIL_H + +#include <glib.h> + +typedef void (*MMUtilStripFn) (const char *str, + gpointer user_data); + +/* Applies the regexp on string and calls the callback (if provided) + with each match and user_data. After that, the matches are removed + from the string. +*/ +void mm_util_strip_string (GString *string, + GRegex *regex, + MMUtilStripFn callback, + gpointer user_data); + +#endif /* MM_UTIL_H */ |