diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-10-06 20:03:57 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-10-06 20:03:57 +0400 |
commit | 6b306ab8752befc28d259be55495f8249cc2df24 (patch) | |
tree | 0fa3d471aef61925563709e0f8ee5667b57c7a9d /src/protocol.h | |
parent | 8d0053734fb5a4ccd8c3bda731e6b7c8261c6f67 (diff) | |
download | rspamd-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/protocol.h')
-rw-r--r-- | src/protocol.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/protocol.h b/src/protocol.h index affcccd5c..b950c2681 100644 --- a/src/protocol.h +++ b/src/protocol.h @@ -47,10 +47,10 @@ enum rspamd_command { }; -typedef int (*protocol_reply_func)(struct worker_task *task); +typedef gint (*protocol_reply_func)(struct worker_task *task); struct custom_command { - const char *name; + const gchar *name; protocol_reply_func func; }; @@ -60,7 +60,7 @@ struct custom_command { * @param line line of user's input * @return 0 if line was successfully parsed and -1 if we have protocol error */ -int read_rspamd_input_line (struct worker_task *task, f_str_t *line); +gint read_rspamd_input_line (struct worker_task *task, f_str_t *line); /** * Write reply for specified task command @@ -75,9 +75,9 @@ gboolean write_reply (struct worker_task *task) G_GNUC_WARN_UNUSED_RESULT; * @param name symbolic name of custom function * @param func callback function for writing reply */ -void register_protocol_command (const char *name, protocol_reply_func func); +void register_protocol_command (const gchar *name, protocol_reply_func func); -const char *str_action_metric (enum rspamd_metric_action action); +const gchar *str_action_metric (enum rspamd_metric_action action); gint check_metric_action (double score, double required_score, struct metric *metric); #endif |