summaryrefslogtreecommitdiffstats
path: root/src/libserver/maps/map_helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libserver/maps/map_helpers.h')
-rw-r--r--src/libserver/maps/map_helpers.h60
1 files changed, 30 insertions, 30 deletions
diff --git a/src/libserver/maps/map_helpers.h b/src/libserver/maps/map_helpers.h
index 82c62b637..41e352c01 100644
--- a/src/libserver/maps/map_helpers.h
+++ b/src/libserver/maps/map_helpers.h
@@ -53,9 +53,9 @@ typedef void (*rspamd_map_insert_func)(gpointer st, gconstpointer key,
/**
* Radix list is a list like ip/mask
*/
-gchar *rspamd_radix_read(
- gchar *chunk,
- gint len,
+char *rspamd_radix_read(
+ char *chunk,
+ int len,
struct map_cb_data *data,
gboolean final);
@@ -66,9 +66,9 @@ void rspamd_radix_dtor(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,
+char *rspamd_kv_list_read(
+ char *chunk,
+ int len,
struct map_cb_data *data,
gboolean final);
@@ -80,9 +80,9 @@ void rspamd_kv_list_dtor(struct map_cb_data *data);
* Cdb is a cdb mapped file with shared data
* chunk must be filename!
*/
-gchar *rspamd_cdb_list_read(
- gchar *chunk,
- gint len,
+char *rspamd_cdb_list_read(
+ char *chunk,
+ int len,
struct map_cb_data *data,
gboolean final);
void rspamd_cdb_list_fin(struct map_cb_data *data, void **target);
@@ -92,27 +92,27 @@ void rspamd_cdb_list_dtor(struct map_cb_data *data);
* Regexp list is a list of regular expressions
*/
-gchar *rspamd_regexp_list_read_single(
- gchar *chunk,
- gint len,
+char *rspamd_regexp_list_read_single(
+ char *chunk,
+ int len,
struct map_cb_data *data,
gboolean final);
-gchar *rspamd_regexp_list_read_multiple(
- gchar *chunk,
- gint len,
+char *rspamd_regexp_list_read_multiple(
+ char *chunk,
+ int len,
struct map_cb_data *data,
gboolean final);
-gchar *rspamd_glob_list_read_single(
- gchar *chunk,
- gint len,
+char *rspamd_glob_list_read_single(
+ char *chunk,
+ int len,
struct map_cb_data *data,
gboolean final);
-gchar *rspamd_glob_list_read_multiple(
- gchar *chunk,
- gint len,
+char *rspamd_glob_list_read_multiple(
+ char *chunk,
+ int len,
struct map_cb_data *data,
gboolean final);
@@ -123,13 +123,13 @@ void rspamd_regexp_list_dtor(struct map_cb_data *data);
/**
* FSM for lists parsing (support comments, blank lines and partial replies)
*/
-gchar *
+char *
rspamd_parse_kv_list(
- gchar *chunk,
- gint len,
+ char *chunk,
+ int len,
struct map_cb_data *data,
rspamd_map_insert_func func,
- const gchar *default_value,
+ const char *default_value,
gboolean final);
/**
@@ -141,7 +141,7 @@ rspamd_parse_kv_list(
* @return
*/
gconstpointer rspamd_match_regexp_map_single(struct rspamd_regexp_map_helper *map,
- const gchar *in, gsize len);
+ const char *in, gsize len);
/**
* Find a multiple (all) matching regexp for the specified text or NULL if
@@ -152,7 +152,7 @@ gconstpointer rspamd_match_regexp_map_single(struct rspamd_regexp_map_helper *ma
* @return
*/
GPtrArray *rspamd_match_regexp_map_all(struct rspamd_regexp_map_helper *map,
- const gchar *in, gsize len);
+ const char *in, gsize len);
/**
* Find value matching specific key in a hash map
@@ -162,7 +162,7 @@ GPtrArray *rspamd_match_regexp_map_all(struct rspamd_regexp_map_helper *map,
* @return
*/
gconstpointer rspamd_match_hash_map(struct rspamd_hash_map_helper *map,
- const gchar *in, gsize len);
+ const char *in, gsize len);
/**
* Find value matching specific key in a cdb map
@@ -172,7 +172,7 @@ gconstpointer rspamd_match_hash_map(struct rspamd_hash_map_helper *map,
* @return rspamd_ftok_t pointer (allocated in a static buffer!)
*/
gconstpointer rspamd_match_cdb_map(struct rspamd_cdb_map_helper *map,
- const gchar *in, gsize len);
+ const char *in, gsize len);
/**
* Find value matching specific key in a hash map
@@ -182,7 +182,7 @@ gconstpointer rspamd_match_cdb_map(struct rspamd_cdb_map_helper *map,
* @return
*/
gconstpointer rspamd_match_radix_map(struct rspamd_radix_map_helper *map,
- const guchar *in, gsize inlen);
+ const unsigned char *in, gsize inlen);
gconstpointer rspamd_match_radix_map_addr(struct rspamd_radix_map_helper *map,
const rspamd_inet_addr_t *addr);