2 * Copyright (C) 2009 Nokia Corporation, all rights reserved.
3 * Copyright (C) 2006, 2007, 2008 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., 59 Temple Place - Suite 330,
21 * Boston, MA 02111-1307, USA.
24 #ifndef __GUPNP_CONTEXT_MANAGER_H__
25 #define __GUPNP_CONTEXT_MANAGER_H__
33 gupnp_context_manager_get_type (void) G_GNUC_CONST;
35 #define GUPNP_TYPE_CONTEXT_MANAGER \
36 (gupnp_context_manager_get_type ())
37 #define GUPNP_CONTEXT_MANAGER(obj) \
38 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
39 GUPNP_TYPE_CONTEXT_MANAGER, \
41 #define GUPNP_CONTEXT_MANAGER_CLASS(obj) \
42 (G_TYPE_CHECK_CLASS_CAST ((obj), \
43 GUPNP_TYPE_CONTEXT_MANAGER, \
44 GUPnPContextManagerClass))
45 #define GUPNP_IS_CONTEXT_MANAGER(obj) \
46 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
47 GUPNP_TYPE_CONTEXT_MANAGER))
48 #define GUPNP_IS_CONTEXT_MANAGER_CLASS(obj) \
49 (G_TYPE_CHECK_CLASS_TYPE ((obj), \
50 GUPNP_TYPE_CONTEXT_MANAGER))
51 #define GUPNP_CONTEXT_MANAGER_GET_CLASS(obj) \
52 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
53 GUPNP_TYPE_CONTEXT_MANAGER, \
54 GUPnPContextManagerClass))
56 typedef struct _GUPnPContextManagerPrivate GUPnPContextManagerPrivate;
59 * GUPnPContextManager:
61 * This struct contains private data only, and should be accessed using the
67 GUPnPContextManagerPrivate *priv;
68 } GUPnPContextManager;
71 GObjectClass parent_class;
74 void (* _gupnp_reserved1) (void);
75 void (* _gupnp_reserved2) (void);
76 void (* _gupnp_reserved3) (void);
77 void (* _gupnp_reserved4) (void);
78 } GUPnPContextManagerClass;
81 gupnp_context_manager_new (GMainContext *main_context,
85 gupnp_context_manager_manage_control_point
86 (GUPnPContextManager *manager,
87 GUPnPControlPoint *control_point);
90 gupnp_context_manager_manage_root_device
91 (GUPnPContextManager *manager,
92 GUPnPRootDevice *root_device);
96 #endif /* __GUPNP_CONTEXT_MANAGER_H__ */