4 * Copyright (C) 2013 Intel Corporation. All rights reserved.
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.
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
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.
19 * Ludovic Ferrandis <ludovic.ferrandis@intel.com>
23 #ifndef DLR_MANAGER_H__
24 #define DLR_MANAGER_H__
26 #include <libdleyna/core/connector.h>
27 #include <libdleyna/core/settings.h>
28 #include <libgupnp/gupnp-context-manager.h>
32 typedef struct dlr_manager_t_ dlr_manager_t;
33 typedef void (*dlr_manager_task_complete_t)(dlr_task_t *task, GError *error);
35 dlr_manager_t *dlr_manager_new(dleyna_connector_id_t connection,
36 GUPnPContextManager *connection_manager);
38 void dlr_manager_delete(dlr_manager_t *manager);
40 dleyna_white_list_t *dlr_manager_get_white_list(dlr_manager_t *manager);
42 void dlr_manager_get_all_props(dlr_manager_t *manager,
43 dleyna_settings_t *settings,
45 dlr_manager_task_complete_t cb);
47 void dlr_manager_get_prop(dlr_manager_t *manager,
48 dleyna_settings_t *settings,
50 dlr_manager_task_complete_t cb);
52 void dlr_manager_set_prop(dlr_manager_t *manager,
53 dleyna_settings_t *settings,
55 dlr_manager_task_complete_t cb);
57 #endif /* DLR_MANAGER_H__ */