projects
/
blerg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add forgot password UI
[blerg.git]
/
common
/
app.h
diff --git
a/common/app.h
b/common/app.h
index
8156274
..
04d8fa5
100644
(file)
--- a/
common/app.h
+++ b/
common/app.h
@@
-4,9
+4,9
@@
#ifndef _APP_H
#define _APP_H
#ifndef _APP_H
#define _APP_H
-#include <yajl/yajl_gen.h>
#include "database.h"
#include "config.h"
#include "database.h"
#include "config.h"
+#include "auth.h"
#define REALM "Blerg"
#define REALM "Blerg"
@@
-29,7
+29,13
@@
struct url_info {
uint64_t record_to;
};
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_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 */
uint64_t *make_sequential_list(uint64_t from, uint64_t to);
#endif /* _APP_H */