tizen 2.3.1 release
[external/gupnp.git] / libgupnp / gupnp-network-manager.h
1 /*
2  * Copyright (C) 2009 Nokia Corporation, all rights reserved.
3  *
4  * Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
5  *                               <zeeshan.ali@nokia.com>
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Library General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Library General Public License for more details.
16  *
17  * You should have received a copy of the GNU Library General Public
18  * License along with this library; if not, write to the
19  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20  * Boston, MA 02111-1307, USA.
21  */
22
23 #ifndef __GUPNP_NETWORK_MANAGER_H__
24 #define __GUPNP_NETWORK_MANAGER_H__
25
26 #include "gupnp-context-manager.h"
27
28 G_BEGIN_DECLS
29
30 GType
31 gupnp_network_manager_get_type (void) G_GNUC_CONST;
32
33 #define GUPNP_TYPE_NETWORK_MANAGER \
34                 (gupnp_network_manager_get_type ())
35 #define GUPNP_NETWORK_MANAGER(obj) \
36                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
37                  GUPNP_TYPE_NETWORK_MANAGER, \
38                  GUPnPNetworkManager))
39 #define GUPNP_NETWORK_MANAGER_CLASS(obj) \
40                 (G_TYPE_CHECK_CLASS_CAST ((obj), \
41                  GUPNP_TYPE_NETWORK_MANAGER, \
42                  GUPnPNetworkManagerClass))
43 #define GUPNP_IS_NETWORK_MANAGER(obj) \
44                 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
45                  GUPNP_TYPE_NETWORK_MANAGER))
46 #define GUPNP_IS_NETWORK_MANAGER_CLASS(obj) \
47                 (G_TYPE_CHECK_CLASS_TYPE ((obj), \
48                  GUPNP_TYPE_NETWORK_MANAGER))
49 #define GUPNP_NETWORK_MANAGER_GET_CLASS(obj) \
50                 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
51                  GUPNP_TYPE_NETWORK_MANAGER, \
52                  GUPnPNetworkManagerClass))
53
54 typedef struct _GUPnPNetworkManagerPrivate GUPnPNetworkManagerPrivate;
55
56 typedef struct {
57         GUPnPContextManager parent;
58
59         GUPnPNetworkManagerPrivate *priv;
60 } GUPnPNetworkManager;
61
62 typedef struct {
63         GUPnPContextManagerClass parent_class;
64
65         /* future padding */
66         void (* _gupnp_reserved1) (void);
67         void (* _gupnp_reserved2) (void);
68         void (* _gupnp_reserved3) (void);
69         void (* _gupnp_reserved4) (void);
70 } GUPnPNetworkManagerClass;
71
72 gboolean
73 gupnp_network_manager_is_available                      (GMainContext *main_context);
74
75 G_END_DECLS
76
77 #endif /* __GUPNP_NETWORK_MANAGER_H__ */