2 * Copyright (C) 2007 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
3 * Copyright (C) 2006, 2007 OpenedHand Ltd.
5 * Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
6 * Jorn Baayen <jorn@openedhand.com>
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details.
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library; if not, write to the
20 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301, USA.
24 #ifndef __GUPNP_RESOURCE_FACTORY_H__
25 #define __GUPNP_RESOURCE_FACTORY_H__
27 #include <glib-object.h>
32 gupnp_resource_factory_get_type (void) G_GNUC_CONST;
34 #define GUPNP_TYPE_RESOURCE_FACTORY \
35 (gupnp_resource_factory_get_type ())
36 #define GUPNP_RESOURCE_FACTORY(obj) \
37 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
38 GUPNP_TYPE_RESOURCE_FACTORY, \
39 GUPnPResourceFactory))
40 #define GUPNP_RESOURCE_FACTORY_CLASS(obj) \
41 (G_TYPE_CHECK_CLASS_CAST ((obj), \
42 GUPNP_TYPE_RESOURCE_FACTORY, \
43 GUPnPResourceFactoryClass))
44 #define GUPNP_IS_RESOURCE_FACTORY(obj) \
45 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
46 GUPNP_TYPE_RESOURCE_FACTORY))
47 #define GUPNP_IS_RESOURCE_FACTORY_CLASS(obj) \
48 (G_TYPE_CHECK_CLASS_TYPE ((obj), \
49 GUPNP_TYPE_RESOURCE_FACTORY))
50 #define GUPNP_RESOURCE_FACTORY_GET_CLASS(obj) \
51 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
52 GUPNP_TYPE_RESOURCE_FACTORY, \
53 GUPnPResourceFactoryClass))
55 typedef struct _GUPnPResourceFactoryPrivate GUPnPResourceFactoryPrivate;
56 typedef struct _GUPnPResourceFactory GUPnPResourceFactory;
57 typedef struct _GUPnPResourceFactoryClass GUPnPResourceFactoryClass;
60 * GUPnPResourceFactory:
62 * This struct contains private data only, and should be accessed using the
65 struct _GUPnPResourceFactory {
68 GUPnPResourceFactoryPrivate *priv;
71 struct _GUPnPResourceFactoryClass {
72 GObjectClass parent_class;
75 void (* _gupnp_reserved1) (void);
76 void (* _gupnp_reserved2) (void);
77 void (* _gupnp_reserved3) (void);
78 void (* _gupnp_reserved4) (void);
81 GUPnPResourceFactory *
82 gupnp_resource_factory_new (void);
84 GUPnPResourceFactory *
85 gupnp_resource_factory_get_default (void);
88 gupnp_resource_factory_register_resource_type
89 (GUPnPResourceFactory *factory,
90 const char *upnp_type,
94 gupnp_resource_factory_unregister_resource_type
95 (GUPnPResourceFactory *factory,
96 const char *upnp_type);
99 gupnp_resource_factory_register_resource_proxy_type
100 (GUPnPResourceFactory *factory,
101 const char *upnp_type,
105 gupnp_resource_factory_unregister_resource_proxy_type
106 (GUPnPResourceFactory *factory,
107 const char *upnp_type);
111 #endif /* __GUPNP_RESOURCE_FACTORY_H__ */