X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=common%2Fapp.h;h=04d8fa5fbe064099218c4342c7c460d160baab30;hb=948ce5be6ef6bba36edfb544565ca22e316afb0a;hp=8156274d99fde45df8431bb00ba76132f1fe787d;hpb=28a7ca12adefd4a4db25ad0534638e085a9f0e12;p=blerg.git diff --git a/common/app.h b/common/app.h index 8156274..04d8fa5 100644 --- a/common/app.h +++ b/common/app.h @@ -4,9 +4,9 @@ #ifndef _APP_H #define _APP_H -#include #include "database.h" #include "config.h" +#include "auth.h" #define REALM "Blerg" @@ -29,7 +29,13 @@ struct url_info { uint64_t record_to; }; +struct auth_cookie { + char name[MAX_TAG_LENGTH + 1]; + char token[TOKEN_SIZE * 2 + 1]; +}; + int parse_url_info(const char *url, struct url_info *info); +int parse_auth_cookie(const char *str, struct auth_cookie *cookie); uint64_t *make_sequential_list(uint64_t from, uint64_t to); #endif /* _APP_H */