treebird/src/session.h
nekobit ded0b83151 3rd clause
FossilOrigin-Name: 8766275cac121ced2142c9dee80f2c21a0337e9eb65501961807aba8fca0f252
2022-11-14 15:36:33 +00:00

37 lines
760 B
C

/*
* Treebird - Lightweight frontend for Pleroma
*
* Licensed under the BSD 3-Clause License
*/
#ifndef SESSION_H
#define SESSION_H
#include <mastodont.h>
#include "global_perl.h"
#include "query.h"
#include "local_config.h"
#include "cookie.h"
struct session
{
struct post_values post;
struct get_values query;
struct cookie_values cookies;
struct local_config config;
int logged_in;
struct mstdnt_account acct;
struct mstdnt_storage acct_storage;
char* cookies_str;
char* post_str;
char* get_str;
};
const char* const get_instance(struct session* ssn);
const char* const get_token(struct session* ssn);
HV* perlify_session(struct session* ssn);
void session_cleanup(struct session* ssn);
#endif // SESSION_H