diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-12-07 19:06:41 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-12-07 19:06:41 +0300 |
commit | 46ceb4ad592937ac210d1fcdfe5ee0f53d317b39 (patch) | |
tree | 229575849706886df9da026885bee94c9392c8eb /src/util.h | |
parent | 8f1675ae06e1aa919d92fdabdc4e0d4e19c24d50 (diff) | |
download | rspamd-46ceb4ad592937ac210d1fcdfe5ee0f53d317b39.tar.gz rspamd-46ceb4ad592937ac210d1fcdfe5ee0f53d317b39.zip |
Reorganize util.c as it should contain only common utilities.
Libkvstorage client is now deprecated as I plan to replace it with hiredis library.
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/src/util.h b/src/util.h index bbe49db67..95d5703bd 100644 --- a/src/util.h +++ b/src/util.h @@ -149,11 +149,6 @@ const gchar* calculate_check_time (struct timeval *begin, gint resolution); #endif /* - * Set counter for a symbol - */ -double set_counter (const gchar *name, guint32 value); - -/* * File locking functions */ gboolean lock_file (gint fd, gboolean async); @@ -177,12 +172,6 @@ gboolean fstr_strcase_equal (gconstpointer v, gconstpointer v2); void gperf_profiler_init (struct config_file *cfg, const gchar *descr); /* - * Get a statfile by symbol - */ -stat_file_t* get_statfile_by_symbol (statfile_pool_t *pool, struct classifier_config *ccf, - const gchar *symbol, struct statfile **st, gboolean try_create); - -/* * Workaround for older versions of glib */ #if ((GLIB_MAJOR_VERSION == 2) && (GLIB_MINOR_VERSION < 22)) @@ -228,19 +217,11 @@ gchar * escape_braces_addr_fstr (memory_pool_t *pool, f_str_t *in); #define msec_to_tv(msec, tv) do { (tv)->tv_sec = (msec) / 1000; (tv)->tv_usec = ((msec) - (tv)->tv_sec * 1000) * 1000; } while(0) #define tv_to_msec(tv) (tv)->tv_sec * 1000 + (tv)->tv_usec / 1000 -struct worker_task; -struct rspamd_worker; +/* Compare two emails for building emails tree */ +gint compare_email_func (gconstpointer a, gconstpointer b); -/** - * Construct new task for worker - */ -struct worker_task* construct_task (struct rspamd_worker *worker); -/** - * Destroy task object and remove its IO dispatcher if it exists - */ -void free_task (struct worker_task *task, gboolean is_soft); -void free_task_hard (gpointer ud); -void free_task_soft (gpointer ud); +/* Compare two urls for building emails tree */ +gint compare_url_func (gconstpointer a, gconstpointer b); /* * Find string find in string s ignoring case |