sakisafe/sakisafecli/sakisafecli.h
diego d5da9a9574 I started addressing the issue I created 2 years ago about this shit
being unreadable. Hopefully this makes the thing more clear and
readable.

Some improvements could be done to the upload_file_* thing. As there's
really no need to pass argc and argv to those. And passing argv to
that is an overkill

Solution: To create a const char* variable and save the filename in
there and pass that to the functions. Simple as that. But i'm a lazy
motherfucker and I'm tired. Boss.
2025-01-21 23:04:41 +01:00

31 lines
426 B
C

#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();
void
parse_config_file(FILE *config);
int
get_protocol(char *server);
#endif /* SAKISAFECLI_H */