summaryrefslogtreecommitdiff
path: root/sakisafecli/sakisafecli.h
blob: 6b17f60e8f74d3111c6bee6a2164a12eff5833d0 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef SAKISAFECLI_H
#define SAKISAFECLI_H
#include <stdlib.h>
#include <stdio.h>
#include <curl/curl.h>

struct progress
{
	char *_private;
	size_t size;
};

size_t
write_data(void *buffer, size_t size, size_t nmemb, void *userp);

void
print_usage();

int
store_link(const char *path, const char *buf);

void
print_help();

size_t
progress(void *clientp,
	    curl_off_t dltotal,
	    curl_off_t dlnow,
	    curl_off_t ultotal,
	    curl_off_t ulnow);

void
parse_config_file(FILE *config);
int
get_protocol(char *server);

#endif /* SAKISAFECLI_H */