diff options
author | Antony Kellermann | 2018-07-25 17:49:44 -0400 |
---|---|---|
committer | Antony Kellermann | 2018-07-25 17:49:44 -0400 |
commit | 8e6ef6d757df7f361e1a5c2ad1d1ccf18616bc01 (patch) | |
tree | e5bde06f15f3729e5a9cce54845223cef2d9531c /api.h | |
parent | 1a3686a43418c4739e7d1d7e9c23f113baf9e5da (diff) | |
download | aur-8e6ef6d757df7f361e1a5c2ad1d1ccf18616bc01.tar.gz |
Replaced manual info_array allocs with new function
Diffstat (limited to 'api.h')
-rw-r--r-- | api.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 */ |