34 lines
565 B
C
34 lines
565 B
C
#ifndef LANDER
|
|
#define LANDER
|
|
|
|
#include "http_loop.h"
|
|
|
|
extern http_route lander_routes[4];
|
|
|
|
typedef struct lander_gctx {
|
|
const char *data_dir;
|
|
Trie *trie;
|
|
} lander_gctx;
|
|
|
|
typedef struct lander_ctx {
|
|
char *key;
|
|
} lander_ctx;
|
|
|
|
void *lander_gctx_init();
|
|
|
|
void *lander_ctx_init();
|
|
|
|
void lander_ctx_reset(lander_ctx *ctx);
|
|
|
|
void lander_ctx_free(lander_ctx *ctx);
|
|
|
|
bool lander_get_index(event_loop_conn *conn);
|
|
|
|
bool lander_get_entry(event_loop_conn *conn);
|
|
|
|
bool lander_post_redirect(event_loop_conn *conn);
|
|
|
|
bool lander_post_paste(event_loop_conn *conn);
|
|
|
|
#endif
|