98d7ee3ce920401cd19014fe884684affc707064
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
19 * @defgroup session session
27 #include "controller.h"
30 typedef struct session_t session_t
;
33 * Session handling class, instanciated for each user session.
38 * Get the session ID of the session.
42 char* (*get_sid
)(session_t
*this);
45 * Add a controller instance to the session.
47 * @param controller controller to add
49 void (*add_controller
)(session_t
*this, controller_t
*controller
);
52 * @brief Add a filter instance to the session.
54 * @param filter filter to add
56 void (*add_filter
)(session_t
*this, filter_t
*filter
);
59 * Process a request in this session.
61 * @param request request to process
63 void (*process
)(session_t
*this, request_t
*request
);
66 * Destroy the session_t.
68 * @param this calling object
70 void (*destroy
) (session_t
*this);
74 * Create a session new session.
76 * @param context user defined session context instance
78 session_t
*session_create(context_t
*context
);
80 #endif /* SESSION_H_ @} */