Update to v0.4.0
[profile/ivi/dLeyna.git] / dleyna-renderer / libdleyna / renderer / manager.h
1 /*
2  * dLeyna
3  *
4  * Copyright (C) 2013 Intel Corporation. All rights reserved.
5  *
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms and conditions of the GNU Lesser General Public License,
8  * version 2.1, as published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
13  * for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
18  *
19  * Ludovic Ferrandis <ludovic.ferrandis@intel.com>
20  *
21  */
22
23 #ifndef DLR_MANAGER_H__
24 #define DLR_MANAGER_H__
25
26 #include <libdleyna/core/connector.h>
27 #include <libdleyna/core/settings.h>
28 #include <libgupnp/gupnp-context-manager.h>
29
30 #include "task.h"
31
32 typedef struct dlr_manager_t_ dlr_manager_t;
33 typedef void (*dlr_manager_task_complete_t)(dlr_task_t *task, GError *error);
34
35 dlr_manager_t *dlr_manager_new(dleyna_connector_id_t connection,
36                                GUPnPContextManager *connection_manager);
37
38 void dlr_manager_delete(dlr_manager_t *manager);
39
40 dleyna_white_list_t *dlr_manager_get_white_list(dlr_manager_t *manager);
41
42 void dlr_manager_get_all_props(dlr_manager_t *manager,
43                                dleyna_settings_t *settings,
44                                dlr_task_t *task,
45                                dlr_manager_task_complete_t cb);
46
47 void dlr_manager_get_prop(dlr_manager_t *manager,
48                           dleyna_settings_t *settings,
49                           dlr_task_t *task,
50                           dlr_manager_task_complete_t cb);
51
52 void dlr_manager_set_prop(dlr_manager_t *manager,
53                           dleyna_settings_t *settings,
54                           dlr_task_t *task,
55                           dlr_manager_task_complete_t cb);
56
57 #endif /* DLR_MANAGER_H__ */