aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/map.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-04-23 13:19:35 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-04-23 13:19:35 +0100
commit3856d40776b033e4f9b249b87bc97b66be40b30e (patch)
tree261919556b124a398e5a88b91db4ddc3a46f048f /src/libutil/map.h
parentfc23f700aa82df48915a117d3c6d823f5ad82332 (diff)
downloadrspamd-3856d40776b033e4f9b249b87bc97b66be40b30e.tar.gz
rspamd-3856d40776b033e4f9b249b87bc97b66be40b30e.zip
[Project] Start map helpers project
Diffstat (limited to 'src/libutil/map.h')
-rw-r--r--src/libutil/map.h93
1 files changed, 0 insertions, 93 deletions
diff --git a/src/libutil/map.h b/src/libutil/map.h
index 0523c2a20..171c0c55f 100644
--- a/src/libutil/map.h
+++ b/src/libutil/map.h
@@ -77,97 +77,4 @@ void rspamd_map_watch (struct rspamd_config *cfg, struct event_base *ev_base,
*/
void rspamd_map_remove_all (struct rspamd_config *cfg);
-typedef void (*insert_func) (gpointer st, gconstpointer key,
- gconstpointer value);
-
-/**
- * Common callbacks for frequent types of lists
- */
-
-/**
- * Radix list is a list like ip/mask
- */
-gchar * rspamd_radix_read (
- gchar *chunk,
- gint len,
- struct map_cb_data *data,
- gboolean final);
-void rspamd_radix_fin (struct map_cb_data *data);
-
-/**
- * Host list is an ordinal list of hosts or domains
- */
-gchar * rspamd_hosts_read (
- gchar *chunk,
- gint len,
- struct map_cb_data *data,
- gboolean final);
-void rspamd_hosts_fin (struct map_cb_data *data);
-
-/**
- * Kv list is an ordinal list of keys and values separated by whitespace
- */
-gchar * rspamd_kv_list_read (
- gchar *chunk,
- gint len,
- struct map_cb_data *data,
- gboolean final);
-void rspamd_kv_list_fin (struct map_cb_data *data);
-
-/**
- * Regexp list is a list of regular expressions
- */
-struct rspamd_regexp_map;
-
-gchar * rspamd_regexp_list_read_single (
- gchar *chunk,
- gint len,
- struct map_cb_data *data,
- gboolean final);
-gchar * rspamd_regexp_list_read_multiple (
- gchar *chunk,
- gint len,
- struct map_cb_data *data,
- gboolean final);
-gchar * rspamd_glob_list_read_single (
- gchar *chunk,
- gint len,
- struct map_cb_data *data,
- gboolean final);
-void rspamd_regexp_list_fin (struct map_cb_data *data);
-
-/**
- * FSM for lists parsing (support comments, blank lines and partial replies)
- */
-gchar *
-rspamd_parse_kv_list (
- gchar * chunk,
- gint len,
- struct map_cb_data *data,
- insert_func func,
- const gchar *default_value,
- gboolean final);
-
-/**
- * Find a single (any) matching regexp for the specified text or NULL if
- * no matches found
- * @param map
- * @param in
- * @param len
- * @return
- */
-gpointer rspamd_match_regexp_map_single (struct rspamd_regexp_map *map,
- const gchar *in, gsize len);
-
-/**
- * Find a multiple (all) matching regexp for the specified text or NULL if
- * no matches found. Returns GPtrArray that *must* be freed by a caller if not NULL
- * @param map
- * @param in
- * @param len
- * @return
- */
-gpointer rspamd_match_regexp_map_all (struct rspamd_regexp_map *map,
- const gchar *in, gsize len);
-
#endif