From 9483c8f1dbde014432c7a99416fcda3a6ccb3563 Mon Sep 17 00:00:00 2001 From: Anna Figueiredo Gomes Date: Mon, 20 Feb 2023 17:12:32 -0300 Subject: initial Signed-off-by: Anna Figueiredo Gomes --- src/curl.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/curl.h (limited to 'src/curl.h') diff --git a/src/curl.h b/src/curl.h new file mode 100644 index 0000000..d496962 --- /dev/null +++ b/src/curl.h @@ -0,0 +1,24 @@ +#ifndef _CURL_H_ +#define _CURL_H_ + +#include +#include +#include +#include "feed.h" + +#define MAX_URL 2048 +static CURL *curl; +static char *api_header; + +struct reply { + size_t size; + char *data; +}; + +bool curl_init(); +void curl_clean(); +struct feed *get_remote_feeds(); +bool create_category(char *title); +void remote_add_feed(struct feed feed); + +#endif -- cgit v1.2.3