2 * Copyright (C) 2008 Martin Willi
3 * Copyright (C) 2008 Philip Boetschi, Adrian Doerig
4 * Hochschule fuer Technik Rapperswil
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20 * @defgroup peer_controller_server peer_controller
21 * @{ @ingroup controller_server
24 #ifndef PEER_CONTROLLER_H_
25 #define PEER_CONTROLLER_H_
29 #include <controller.h>
30 #include <database/database.h>
32 typedef struct peer_controller_t peer_controller_t
;
35 * Peer controller. Manages peers associated to a user.
37 struct peer_controller_t
{
40 * Implements controller_t interface.
42 controller_t controller
;
46 * Create a peer_controller controller instance.
48 controller_t
*peer_controller_create(user_t
*user
, database_t
*db
);
50 #endif /* PEER_CONTROLLER_H_ @} */