libonion
|
#include "types.h"
Functions | |
onion_sessions * | onion_sessions_new () |
Initializes the sessions object. | |
void | onion_sessions_free (onion_sessions *sessions) |
Frees the sessions object. | |
char * | onion_sessions_create (onion_sessions *sessions) |
Creates a session. Returns the session name. | |
onion_dict * | onion_sessions_get (onion_sessions *sessions, const char *sessionId) |
Returns the session object. | |
void | onion_sessions_save (onion_sessions *sessions, const char *sessionId, onion_dict *data) |
Store session. | |
void | onion_sessions_remove (onion_sessions *sessions, const char *sessionId) |
Removes a session from the storage. |
char* onion_sessions_create | ( | onion_sessions * | sessions | ) |
Creates a session. Returns the session name.
void onion_sessions_free | ( | onion_sessions * | sessions | ) |
Frees the sessions object.
onion_dict* onion_sessions_get | ( | onion_sessions * | sessions, |
const char * | sessionId | ||
) |
Returns the session object.
onion_sessions* onion_sessions_new | ( | ) |
Initializes the sessions object.
void onion_sessions_remove | ( | onion_sessions * | sessions, |
const char * | sessionId | ||
) |
Removes a session from the storage.