2 * Copyright (C) 2006, 2007 OpenedHand Ltd.
4 * Author: Jorn Baayen <jorn@openedhand.com>
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This library 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 GNU
14 * Library General Public License for more details.
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library; if not, write to the
18 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
22 #ifndef __GSSDP_RESOURCE_BROWSER_H__
23 #define __GSSDP_RESOURCE_BROWSER_H__
25 #include "gssdp-client.h"
30 gssdp_resource_browser_get_type (void) G_GNUC_CONST;
32 #define GSSDP_TYPE_RESOURCE_BROWSER \
33 (gssdp_resource_browser_get_type ())
34 #define GSSDP_RESOURCE_BROWSER(obj) \
35 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
36 GSSDP_TYPE_RESOURCE_BROWSER, \
37 GSSDPResourceBrowser))
38 #define GSSDP_RESOURCE_BROWSER_CLASS(klass) \
39 (G_TYPE_CHECK_CLASS_CAST ((klass), \
40 GSSDP_TYPE_RESOURCE_BROWSER, \
41 GSSDPResourceBrowserClass))
42 #define GSSDP_IS_RESOURCE_BROWSER(obj) \
43 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
44 GSSDP_TYPE_RESOURCE_BROWSER))
45 #define GSSDP_IS_RESOURCE_BROWSER_CLASS(klass) \
46 (G_TYPE_CHECK_CLASS_TYPE ((klass), \
47 GSSDP_TYPE_RESOURCE_BROWSER))
48 #define GSSDP_RESOURCE_BROWSER_GET_CLASS(obj) \
49 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
50 GSSDP_TYPE_RESOURCE_BROWSER, \
51 GSSDPResourceBrowserClass))
53 typedef struct _GSSDPResourceBrowserPrivate GSSDPResourceBrowserPrivate;
54 typedef struct _GSSDPResourceBrowser GSSDPResourceBrowser;
55 typedef struct _GSSDPResourceBrowserClass GSSDPResourceBrowserClass;
57 struct _GSSDPResourceBrowser {
60 GSSDPResourceBrowserPrivate *priv;
63 struct _GSSDPResourceBrowserClass {
64 GObjectClass parent_class;
67 void (* resource_available) (GSSDPResourceBrowser *resource_browser,
69 const GList *locations);
71 void (* resource_unavailable) (GSSDPResourceBrowser *resource_browser,
75 void (* _gssdp_reserved1) (void);
76 void (* _gssdp_reserved2) (void);
77 void (* _gssdp_reserved3) (void);
78 void (* _gssdp_reserved4) (void);
82 * GSSDP_ALL_RESOURCES:
84 * SSDP search target for finding all possible resources.
86 #define GSSDP_ALL_RESOURCES "ssdp:all"
88 GSSDPResourceBrowser *
89 gssdp_resource_browser_new (GSSDPClient *client,
93 gssdp_resource_browser_get_client (GSSDPResourceBrowser *resource_browser);
96 gssdp_resource_browser_set_target (GSSDPResourceBrowser *resource_browser,
100 gssdp_resource_browser_get_target (GSSDPResourceBrowser *resource_browser);
103 gssdp_resource_browser_set_mx (GSSDPResourceBrowser *resource_browser,
107 gssdp_resource_browser_get_mx (GSSDPResourceBrowser *resource_browser);
110 gssdp_resource_browser_set_active (GSSDPResourceBrowser *resource_browser,
114 gssdp_resource_browser_get_active (GSSDPResourceBrowser *resource_browser);
117 gssdp_resource_browser_rescan (GSSDPResourceBrowser *resource_browser);
121 #endif /* __GSSDP_RESOURCE_BROWSER_H__ */