summaryrefslogtreecommitdiff
path: root/include/lib/url.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/lib/url.h')
-rw-r--r--include/lib/url.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/lib/url.h b/include/lib/url.h
new file mode 100644
index 0000000..6bb588a
--- /dev/null
+++ b/include/lib/url.h
@@ -0,0 +1,17 @@
+#ifndef URL_H
+#define URL_H
+
+#include <stddef.h>
+
+struct url {
+ char *buffer;
+ size_t len;
+};
+
+int url_init(struct url *url, char *base);
+void url_free(struct url *url);
+int url_copy(struct url *from, struct url *to);
+int url_append(struct url *url, const char *add);
+int url_append_path(struct url *url, const char *add);
+
+#endif