aboutsummaryrefslogtreecommitdiff
path: root/src/cookie.h
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2020-02-06 19:43:57 +0300
committerAleksey Veresov <aleksey@veresov.pro>2020-02-06 19:43:57 +0300
commit83cd2267b309fa7411acaed356f88101196bb2ad (patch)
tree8ab5f2ebdfbbc5020f13329858d6364d82beabd9 /src/cookie.h
parent37cd01d27efc7988548dbfde307e41be7d4f41a9 (diff)
downloadmagi-83cd2267b309fa7411acaed356f88101196bb2ad.tar
magi-83cd2267b309fa7411acaed356f88101196bb2ad.tar.xz
magi-83cd2267b309fa7411acaed356f88101196bb2ad.zip
[magi] Broken to become better.
Diffstat (limited to 'src/cookie.h')
-rw-r--r--src/cookie.h32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/cookie.h b/src/cookie.h
deleted file mode 100644
index 7eb3e9d..0000000
--- a/src/cookie.h
+++ /dev/null
@@ -1,32 +0,0 @@
-#ifndef MAGI_INCLUDED_COOKIE
-#define MAGI_INCLUDED_COOKIE
-
-
-typedef struct magi_cookie {
- /* All pointers must be valid as 'free' arguments. */
- char *name;
- char *data;
- char *path; /* Without '/' at the end. */
- char *domain; /* With dot at the begining. */
- char *max_age; /* In seconds until discard, used only in response. */
-} magi_cookie;
-
-typedef struct magi_cookie_list {
- struct magi_cookie_list *next; /* Must be valid as 'free' arguments. */
- magi_cookie item;
-} magi_cookie_list;
-
-
-/* Addition of item to top of list. Null <=> error. */
-int magi_cookie_list_add(magi_cookie_list **list, magi_cookie *item);
-
-/* Data of last cookie in list: cookie.name == name, returns null if no such;
- * Last cookie in list is first from request, and from RFC 2109 we know that
- * first cookie is the most accurate for request's domain and path. */
-char *magi_cookie_list_get(magi_cookie_list *list, const char *name);
-
-/* Freeing and invalidation of list. */
-void magi_cookie_list_destroy(magi_cookie_list *list);
-
-
-#endif