summaryrefslogtreecommitdiff
path: root/sakisafecli/sakisafecli.h
diff options
context:
space:
mode:
authorTyler Hoang <tyler@tylerhoang.xyz>2024-01-13 01:10:07 -0800
committerTyler Hoang <tyler@tylerhoang.xyz>2024-01-13 01:10:07 -0800
commitc39de958ace0d6dc0abdf5667bb50a43d9930927 (patch)
treef756c50e9ed36a79b76eef911969cd76285093ea /sakisafecli/sakisafecli.h
initial
Diffstat (limited to 'sakisafecli/sakisafecli.h')
-rw-r--r--sakisafecli/sakisafecli.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/sakisafecli/sakisafecli.h b/sakisafecli/sakisafecli.h
new file mode 100644
index 0000000..6b17f60
--- /dev/null
+++ b/sakisafecli/sakisafecli.h
@@ -0,0 +1,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 */