aboutsummaryrefslogtreecommitdiffstats
path: root/src/map.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-10-06 20:03:57 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-10-06 20:03:57 +0400
commit6b306ab8752befc28d259be55495f8249cc2df24 (patch)
tree0fa3d471aef61925563709e0f8ee5667b57c7a9d /src/map.h
parent8d0053734fb5a4ccd8c3bda731e6b7c8261c6f67 (diff)
downloadrspamd-6b306ab8752befc28d259be55495f8249cc2df24.tar.gz
rspamd-6b306ab8752befc28d259be55495f8249cc2df24.zip
Fixes types (use glib ones) no functional change.
Now all comments in commit logs beginning with '*' would be included in changelog, so important changes would be separated from small ones.
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/map.h b/src/map.h
index fe3a2b36b..d07b40cc2 100644
--- a/src/map.h
+++ b/src/map.h
@@ -11,27 +11,27 @@ enum fetch_proto {
};
struct map_cb_data {
- int state;
+ gint state;
void *prev_data;
void *cur_data;
};
struct file_map_data {
- const char *filename;
+ const gchar *filename;
struct stat st;
};
struct http_map_data {
struct in_addr addr;
- uint16_t port;
- char *path;
- char *host;
+ guint16 port;
+ gchar *path;
+ gchar *host;
time_t last_checked;
gboolean chunked;
u_char read_buf[BUFSIZ];
- uint32_t rlen;
- uint32_t chunk;
- uint32_t chunk_read;
+ guint32 rlen;
+ guint32 chunk;
+ guint32 chunk_read;
};
typedef u_char* (*map_cb_t)(memory_pool_t *pool, u_char *chunk, size_t len, struct map_cb_data *data);
@@ -48,7 +48,7 @@ struct rspamd_map {
void *map_data;
};
-gboolean add_map (const char *map_line, map_cb_t read_callback, map_fin_cb_t fin_callback, void **user_data);
+gboolean add_map (const gchar *map_line, map_cb_t read_callback, map_fin_cb_t fin_callback, void **user_data);
void start_map_watch (void);
void remove_all_maps (void);