aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-18 18:11:11 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-18 18:11:32 +0000
commit538335a717faeed3093ebedb0066fe8fbaa0c93e (patch)
tree1167e667cb1c0ab44e78362a1dfb65fa5e5cfcfd /contrib
parent402233b9110286daa1ad92c24f279bbbca35e8b7 (diff)
downloadrspamd-538335a717faeed3093ebedb0066fe8fbaa0c93e.tar.gz
rspamd-538335a717faeed3093ebedb0066fe8fbaa0c93e.zip
Fix some compiler warnings
Diffstat (limited to 'contrib')
-rw-r--r--contrib/libucl/ucl_internal.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/contrib/libucl/ucl_internal.h b/contrib/libucl/ucl_internal.h
index 31d6b1361..64938592a 100644
--- a/contrib/libucl/ucl_internal.h
+++ b/contrib/libucl/ucl_internal.h
@@ -524,6 +524,34 @@ void ucl_emitter_print_key_msgpack (bool print_key,
const ucl_object_t *obj);
/**
+ * Fetch URL into a buffer
+ * @param url url to fetch
+ * @param buf pointer to buffer (must be freed by callee)
+ * @param buflen pointer to buffer length
+ * @param err pointer to error argument
+ * @param must_exist fail if cannot find a url
+ */
+bool ucl_fetch_url (const unsigned char *url,
+ unsigned char **buf,
+ size_t *buflen,
+ UT_string **err,
+ bool must_exist);
+
+/**
+ * Fetch a file and save results to the memory buffer
+ * @param filename filename to fetch
+ * @param len length of filename
+ * @param buf target buffer
+ * @param buflen target length
+ * @return
+ */
+bool ucl_fetch_file (const unsigned char *filename,
+ unsigned char **buf,
+ size_t *buflen,
+ UT_string **err,
+ bool must_exist);
+
+/**
* Add new element to an object using the current merge strategy and priority
* @param parser
* @param nobj