2 * Copyright (C) 2007 Martin Willi
3 * Hochschule fuer Technik Rapperswil
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 * @defgroup session session
25 #include "controller.h"
28 typedef struct session_t session_t
;
31 * Session handling class, instanciated for each user session.
36 * Get the session ID of the session.
40 char* (*get_sid
)(session_t
*this);
43 * Add a controller instance to the session.
45 * @param controller controller to add
47 void (*add_controller
)(session_t
*this, controller_t
*controller
);
50 * Add a filter instance to the session.
52 * @param filter filter to add
54 void (*add_filter
)(session_t
*this, filter_t
*filter
);
57 * Process a request in this session.
59 * @param request request to process
61 void (*process
)(session_t
*this, request_t
*request
);
64 * Destroy the session_t.
66 void (*destroy
) (session_t
*this);
70 * Create a session new session.
72 * @param context user defined session context instance
74 session_t
*session_create(context_t
*context
);
76 #endif /** SESSION_H_ @}*/