summaryrefslogtreecommitdiffstats
path: root/url.h
diff options
context:
space:
mode:
Diffstat (limited to 'url.h')
-rw-r--r--url.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/url.h b/url.h
new file mode 100644
index 0000000000..ef01c5e034
--- /dev/null
+++ b/url.h
@@ -0,0 +1,15 @@
+#ifndef URL_H
+#define URL_H
+
+typedef struct {
+ char *url;
+ char *protocol;
+ char *hostname;
+ char *path;
+ unsigned int port;
+} URL_t;
+
+URL_t* set_url(char* url);
+void free_url(URL_t* url);
+
+#endif