X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gio%2Fginetsocketaddress.h;h=745936e68cc03f9caf3da427f61b61e114bcb13f;hb=2a53b4d0e2c98a14aedf31e38f0ad1fb2e8fe26f;hp=b455ac57d026d7e4c604b5065fb3f1c4d63204aa;hpb=1b033919845cef366842373da9f1cfb56f522d01;p=platform%2Fupstream%2Fglib.git diff --git a/gio/ginetsocketaddress.h b/gio/ginetsocketaddress.h index b455ac5..745936e 100644 --- a/gio/ginetsocketaddress.h +++ b/gio/ginetsocketaddress.h @@ -13,21 +13,19 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place, Suite 330, - * Boston, MA 02111-1307, USA. + * Public License along with this library; if not, see . * * Authors: Christian Kellner * Samuel Cormier-Iijima */ +#ifndef __G_INET_SOCKET_ADDRESS_H__ +#define __G_INET_SOCKET_ADDRESS_H__ + #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) #error "Only can be included directly." #endif -#ifndef __G_INET_SOCKET_ADDRESS_H__ -#define __G_INET_SOCKET_ADDRESS_H__ - #include G_BEGIN_DECLS @@ -55,14 +53,25 @@ 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); +GLIB_AVAILABLE_IN_2_40 +GSocketAddress *g_inet_socket_address_new_from_string (const char *address, + guint 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