Debian Codegraph @

src/universal-cp/device-treeview.h

raw
1 /*
2 * Copyright (C) 2007 Zeeshan Ali (Khattak) <[email protected]>
3 *
4 * Authors: Zeeshan Ali (Khattak) <[email protected]>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 */
20
21 #ifndef __UNIVERSAL_CP_DEVICETREEVIEW_H__
22 #define __UNIVERSAL_CP_DEVICETREEVIEW_H__
23
24 #include <string.h>
25 #include <stdlib.h>
26 #ifdef HAVE_CONFIG_H
27 #include <config.h>
28 #endif
29
30 gboolean
31 find_device (GtkTreeModel *model,
32 const char *udn,
33 GtkTreeIter *root_iter,
34 GtkTreeIter *iter);
35
36 GUPnPDeviceInfo *
37 get_service_device (GUPnPServiceInfo *service_info);
38
39 void
40 remove_device (GUPnPDeviceInfo *info);
41
42 void
43 append_device (GUPnPDeviceInfo *info);
44
45 void
46 setup_device_treeview (GtkBuilder *builder);
47
48 GUPnPServiceProxy *
49 get_selected_service (void);
50
51 GUPnPServiceActionInfo *
52 get_selected_action (GUPnPServiceProxy **ret_proxy,
53 GUPnPServiceIntrospection **ret_introspection);
54
55 #endif /* __UNIVERSAL_CP_DEVICETREEVIEW_H__ */