summaryrefslogtreecommitdiff
path: root/src/curl.h
blob: d49696254bfef4509db2bb08be13beea527885bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef _CURL_H_
#define _CURL_H_

#include <stdlib.h>
#include <stdbool.h>
#include <curl/curl.h>
#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