glib/tests: Clean up inclusion of unistd.h
[platform/upstream/glib.git] / gio / ginetsocketaddress.h
index b455ac5..1865a3b 100644 (file)
  *          Samuel Cormier-Iijima <sciyoshi@gmail.com>
  */
 
+#ifndef __G_INET_SOCKET_ADDRESS_H__
+#define __G_INET_SOCKET_ADDRESS_H__
+
 #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
 #error "Only <gio/gio.h> can be included directly."
 #endif
 
-#ifndef __G_INET_SOCKET_ADDRESS_H__
-#define __G_INET_SOCKET_ADDRESS_H__
-
 #include <gio/gsocketaddress.h>
 
 G_BEGIN_DECLS
@@ -55,14 +55,22 @@ struct _GInetSocketAddressClass
   GSocketAddressClass parent_class;
 };
 
-GType           g_inet_socket_address_get_type    (void) G_GNUC_CONST;
+GLIB_AVAILABLE_IN_ALL
+GType           g_inet_socket_address_get_type     (void) G_GNUC_CONST;
 
-GSocketAddress *g_inet_socket_address_new         (GInetAddress       *address,
-                                                  guint16             port);
+GLIB_AVAILABLE_IN_ALL
+GSocketAddress *g_inet_socket_address_new          (GInetAddress       *address,
+                                                   guint16             port);
 
-GInetAddress *  g_inet_socket_address_get_address (GInetSocketAddress *address);
+GLIB_AVAILABLE_IN_ALL
+GInetAddress *  g_inet_socket_address_get_address  (GInetSocketAddress *address);
+GLIB_AVAILABLE_IN_ALL
+guint16         g_inet_socket_address_get_port     (GInetSocketAddress *address);
 
-guint16         g_inet_socket_address_get_port    (GInetSocketAddress *address);
+GLIB_AVAILABLE_IN_2_32
+guint32         g_inet_socket_address_get_flowinfo (GInetSocketAddress *address);
+GLIB_AVAILABLE_IN_2_32
+guint32         g_inet_socket_address_get_scope_id (GInetSocketAddress *address);
 
 G_END_DECLS