aboutsummaryrefslogtreecommitdiff
path: root/include/download.h
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2023-10-26 19:53:29 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2023-10-26 19:53:29 -0400
commit17178535cc9df5e834dfd43e3b2b919e02e5798d (patch)
tree5e55e8b2c2453ccf6271b190cf45e90d2c25179d /include/download.h
downloadstasis-17178535cc9df5e834dfd43e3b2b919e02e5798d.tar.gz
Initial commit
Diffstat (limited to 'include/download.h')
-rw-r--r--include/download.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/download.h b/include/download.h
new file mode 100644
index 0000000..0522aee
--- /dev/null
+++ b/include/download.h
@@ -0,0 +1,13 @@
+//
+// Created by jhunk on 10/5/23.
+//
+
+#ifndef OHMYCAL_DOWNLOAD_H
+#define OHMYCAL_DOWNLOAD_H
+
+#include <curl/curl.h>
+
+size_t download_writer(void *fp, size_t size, size_t nmemb, void *stream);
+int download(char *url, const char *filename);
+
+#endif //OHMYCAL_DOWNLOAD_H