diff options
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 |