diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-18 17:50:39 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-18 17:51:26 +0100 |
commit | c2d4fc63c8c7834570c855bc7547f3437c6af6b1 (patch) | |
tree | 781ce9d5998a0aff4caafe688a9e0b7d4682248a /src/libutil/http.h | |
parent | a657aaf79e628e5c736f99c52f219ef2d5a40f6e (diff) | |
download | rspamd-c2d4fc63c8c7834570c855bc7547f3437c6af6b1.tar.gz rspamd-c2d4fc63c8c7834570c855bc7547f3437c6af6b1.zip |
[Feature] Implement refcount for messages
Diffstat (limited to 'src/libutil/http.h')
-rw-r--r-- | src/libutil/http.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/libutil/http.h b/src/libutil/http.h index 140684b79..2755638db 100644 --- a/src/libutil/http.h +++ b/src/libutil/http.h @@ -268,7 +268,7 @@ struct rspamd_http_message * rspamd_http_connection_steal_msg ( * @return */ struct rspamd_http_message * rspamd_http_connection_copy_msg ( - struct rspamd_http_connection *conn); + struct rspamd_http_message *msg); /** * Create new HTTP message @@ -278,6 +278,17 @@ struct rspamd_http_message * rspamd_http_connection_copy_msg ( struct rspamd_http_message * rspamd_http_new_message (enum http_parser_type type); /** + * Increase refcount number for an HTTP message + * @param msg message to use + * @return + */ +struct rspamd_http_message * rspamd_http_message_ref (struct rspamd_http_message *msg); +/** + * Decrease number of refcounts for http message + * @param msg + */ +void rspamd_http_message_unref (struct rspamd_http_message *msg); +/** * Create HTTP message from URL * @param url * @return new message or NULL |