782c707fd840448513fd3f11fa078b864a139654
[cascardo/gnio.git] / gnio / ginetaddress.c
1 /* GNIO - GLib Network Layer of GIO
2  * 
3  * Copyright (C) 2008 Christian Kellner 
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General
16  * Public License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
18  * Boston, MA 02111-1307, USA.
19  *
20  * Author: Christian Kellner <gicmo@gnome.org>
21  */
22
23 #include <config.h>
24 #include <glib.h>
25
26 #include "ginetaddress.h"
27
28 /**
29  * SECTION:ginetaddress
30  * @short_description: Base class for implementing IPv4/IPv6 classes
31  *
32  * 
33  * 
34  **/
35
36 G_DEFINE_ABSTRACT_TYPE (GInetAddress, g_inet_address, G_TYPE_OBJECT);
37
38
39
40
41
42 static void
43 g_inet_address_class_init (GInetAddressClass *klass)
44 {
45   GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
46
47 }
48
49 static void
50 g_inet_address_init (GInetAddress *address)
51 {
52
53 }
54
55 /* ************************************************************************* */
56 /* Public Functions */
57
58 GInetAddress  *
59 g_inet_address_resolve (const char    *host,
60                         GCancellable  *cancellable,
61                         GError       **error)
62 {
63   return NULL;
64 }
65
66 void
67 g_inet_address_resolve_async (const char *host,
68                               GCancellable *cancellable,
69                               GAsyncReadyCallback callback,
70                               gpointer user_data)
71 {
72
73 }
74
75 GInetAddress *
76 g_inet_address_resolve_finish (GInetAddress *address,
77                                GAsyncResult *result,
78                                GError **error)
79 {
80   return NULL;
81 }
82
83 char *
84 g_inet_address_lookup_reverse (GInetAddress *address,
85                                GCancellable  *cancellable,
86                                GError       **error)
87 {
88   return NULL;
89 }
90
91 void
92 g_inet_address_lookup_reverse_async  (GInetAddress *address,
93                                       GCancellable *cancellable,
94                                       GAsyncReadyCallback callback,
95                                       gpointer user_data)
96 {
97
98 }
99
100 char *
101 g_inet_address_lookup_reverse_finish (GInetAddress *address,
102                                       GAsyncResult *result,
103                                       GError **error)
104 {
105   return NULL;
106 }
107
108 /* ******************************************* */
109 /* Getteres for properties*/
110
111 gboolean
112 g_inet_address_is_any_local (GInetAddress *address)
113 {
114     return FALSE;
115 }
116
117 gboolean
118 g_inet_address_is_link_local (GInetAddress *address)
119 {
120     return FALSE;
121 }
122
123 gboolean
124 g_inet_address_is_loopback (GInetAddress *address)
125 {
126     return FALSE;
127 }
128
129 gboolean
130 g_inet_address_is_sitelocal (GInetAddress *address)
131 {
132     return FALSE;
133 }
134
135 gboolean
136 g_inet_address_is_multicast (GInetAddress *address)
137 {
138     return FALSE;
139 }
140
141 gboolean
142 g_inet_address_is_mc_global (GInetAddress *address)
143 {
144     return FALSE;
145 }
146
147 gboolean
148 g_inet_address_is_mc_linklocal (GInetAddress *address)
149 {
150     return FALSE;
151 }
152
153 gboolean
154 g_inet_address_is_mc_nodelocal (GInetAddress *address)
155 {
156   return FALSE;
157 }
158
159 gboolean
160 g_inet_address_is_mc_orglocal  (GInetAddress *address)
161 {
162   return FALSE;
163 }
164
165 gboolean
166 g_inet_address_is_mc_sitelocal (GInetAddress *address)
167 {
168   return FALSE;
169 }
170