libonion
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
sessions.h File Reference
#include "types.h"

Functions

onion_sessionsonion_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_dictonion_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.

Function Documentation

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.