X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gio%2Fgnetworkaddress.h;h=a9800f40d1993adca9fe70ce8a060e301043ae6c;hb=e608ec7b2e47d29fa189fca6e97f484f41c115a4;hp=0111f70a4060538f93ccc3f4763209c4898a73d4;hpb=a4e38786750d538b334b8a7a7cc9f5a3ff48bc33;p=platform%2Fupstream%2Fglib.git diff --git a/gio/gnetworkaddress.h b/gio/gnetworkaddress.h index 0111f70..a9800f4 100644 --- a/gio/gnetworkaddress.h +++ b/gio/gnetworkaddress.h @@ -13,18 +13,16 @@ * 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 . */ +#ifndef __G_NETWORK_ADDRESS_H__ +#define __G_NETWORK_ADDRESS_H__ + #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) #error "Only can be included directly." #endif -#ifndef __G_NETWORK_ADDRESS_H__ -#define __G_NETWORK_ADDRESS_H__ - #include G_BEGIN_DECLS @@ -53,15 +51,26 @@ struct _GNetworkAddressClass }; +GLIB_AVAILABLE_IN_ALL GType g_network_address_get_type (void) G_GNUC_CONST; +GLIB_AVAILABLE_IN_ALL GSocketConnectable *g_network_address_new (const gchar *hostname, guint16 port); +GLIB_AVAILABLE_IN_ALL GSocketConnectable *g_network_address_parse (const gchar *host_and_port, guint16 default_port, GError **error); +GLIB_AVAILABLE_IN_ALL +GSocketConnectable *g_network_address_parse_uri (const gchar *uri, + guint16 default_port, + GError **error); +GLIB_AVAILABLE_IN_ALL const gchar *g_network_address_get_hostname (GNetworkAddress *addr); +GLIB_AVAILABLE_IN_ALL guint16 g_network_address_get_port (GNetworkAddress *addr); +GLIB_AVAILABLE_IN_ALL +const gchar *g_network_address_get_scheme (GNetworkAddress *addr); G_END_DECLS