aboutsummarylogtreecommitdiffstats
path: root/api.h
diff options
context:
space:
mode:
authorAntony Kellermann2018-07-25 17:49:44 -0400
committerAntony Kellermann2018-07-25 17:49:44 -0400
commit8e6ef6d757df7f361e1a5c2ad1d1ccf18616bc01 (patch)
treee5bde06f15f3729e5a9cce54845223cef2d9531c /api.h
parent1a3686a43418c4739e7d1d7e9c23f113baf9e5da (diff)
downloadaur-8e6ef6d757df7f361e1a5c2ad1d1ccf18616bc01.tar.gz
Replaced manual info_array allocs with new function
Diffstat (limited to 'api.h')
-rw-r--r--api.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/api.h b/api.h
index 274f718ba867..7f154f0e6727 100644
--- a/api.h
+++ b/api.h
@@ -149,6 +149,13 @@ Info* api_info_init(void);
Info_Array* api_info_array_init(void);
/**
+ * Allocates an Info_Array struct with allocated length.
+ * @param length number of Info pointers to allocate
+ * @return Info_Array*
+ */
+Info_Array* api_info_array_init_from_length(size_t length);
+
+/**
* writefunction for cURL HTTP GET/POST
* stolen from a nice man on stackoverflow
*/