Imported Upstream version 0.20.12
[profile/ivi/GUPnP.git] / libgupnp / gupnp-linux-context-manager.h
1 /*
2  * Copyright (C) 2011 Jens Georg.
3  *
4  * Author: Jens Georg <mail@jensge.org>
5  *
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.
10  *
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.
15  *
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.
20  */
21
22 #ifndef __GUPNP_LINUX_CONTEXT_MANAGER_H__
23 #define __GUPNP_LINUX_CONTEXT_MANAGER_H__
24
25 #include <glib.h>
26 #include <glib-object.h>
27
28 #include "gupnp-context-manager.h"
29
30 G_BEGIN_DECLS
31
32 G_GNUC_INTERNAL GType
33 gupnp_linux_context_manager_get_type (void) G_GNUC_CONST;
34
35 #define GUPNP_TYPE_LINUX_CONTEXT_MANAGER \
36                 (gupnp_linux_context_manager_get_type ())
37 #define GUPNP_LINUX_CONTEXT_MANAGER(obj) \
38                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
39                  GUPNP_TYPE_LINUX_CONTEXT_MANAGER, \
40                  GUPnPLinuxContextManager))
41 #define GUPNP_LINUX_CONTEXT_MANAGER_CLASS(obj) \
42                 (G_TYPE_CHECK_CLASS_CAST ((obj), \
43                  GUPNP_TYPE_LINUX_CONTEXT_MANAGER, \
44                  GUPnPLinuxContextManagerClass))
45 #define GUPNP_IS_LINUX_CONTEXT_MANAGER(obj) \
46                 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
47                  GUPNP_TYPE_LINUX_CONTEXT_MANAGER))
48 #define GUPNP_IS_LINUX_CONTEXT_MANAGER_CLASS(obj) \
49                 (G_TYPE_CHECK_CLASS_TYPE ((obj), \
50                  GUPNP_TYPE_LINUX_CONTEXT_MANAGER))
51 #define GUPNP_LINUX_CONTEXT_MANAGER_GET_CLASS(obj) \
52                 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
53                  GUPNP_TYPE_LINUX_CONTEXT_MANAGER, \
54                  GUPnPLinuxContextManagerClass))
55
56 typedef struct _GUPnPLinuxContextManagerPrivate GUPnPLinuxContextManagerPrivate;
57
58 typedef struct {
59         GUPnPContextManager parent;
60
61         GUPnPLinuxContextManagerPrivate *priv;
62 } GUPnPLinuxContextManager;
63
64 typedef struct {
65         GUPnPContextManagerClass parent_class;
66
67         /* future padding */
68         void (* _gupnp_reserved1) (void);
69         void (* _gupnp_reserved2) (void);
70         void (* _gupnp_reserved3) (void);
71         void (* _gupnp_reserved4) (void);
72 } GUPnPLinuxContextManagerClass;
73
74 G_GNUC_INTERNAL gboolean gupnp_linux_context_manager_is_available (void);
75
76 G_END_DECLS
77
78 #endif /* __GUPNP_LINUX_CONTEXT_MANAGER_H__ */