X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=gnio%2Fginet6address.h;h=d6154263a4aac689be3ff59e8ac3d4cbfdd8826e;hb=6ab527e0c7a63c5ffd925120dcb8b8b6cbd6c6ca;hp=146b98df70b547514924b1bf600512c047a090ba;hpb=a780f9f40dc92a97680a401fbe0812e1bab067a5;p=cascardo%2Fgnio.git diff --git a/gnio/ginet6address.h b/gnio/ginet6address.h index 146b98d..d615426 100644 --- a/gnio/ginet6address.h +++ b/gnio/ginet6address.h @@ -1,8 +1,31 @@ +/* GNIO - GLib Network Layer of GIO + * + * Copyright (C) 2008 Christian Kellner, Samuel Cormier-Iijima + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * 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. + * + * Authors: Christian Kellner + * Samuel Cormier-Iijima + */ + #ifndef G_INET6_ADDRESS_H #define G_INET6_ADDRESS_H #include -#include +#include G_BEGIN_DECLS @@ -17,29 +40,30 @@ typedef struct _GInet6Address GInet6Address; typedef struct _GInet6AddressClass GInet6AddressClass; typedef struct _GInet6AddressPrivate GInet6AddressPrivate; -struct _GInet6Address { - - GInetAddress parent; +struct _GInet6Address +{ + GInetAddress parent; - GInet6AddressPrivate *priv; + GInet6AddressPrivate *priv; }; -struct _GInet6AddressClass { - - GInetAddressClass parent_class; +struct _GInet6AddressClass +{ + GInetAddressClass parent_class; }; +GType g_inet6_address_get_type (void) G_GNUC_CONST; + +GInet6Address * g_inet6_address_from_string (const char *string); + +GInet6Address * g_inet6_address_from_bytes (guint8 bytes[]); -GType g_inet6_address_get_type (void) G_GNUC_CONST; +const guint8 * g_inet6_address_to_bytes (GInet6Address *address); -GInet6Address * g_inet6_address_from_string (const char *string); -char * g_inet6_address_to_string (GInet6Address *address); +GInet6Address * g_inet6_address_new_loopback (void); -GInet6Address * g_inet6_address_from_bytes (guint8 bytes[]); -const guint8 * g_inet6_address_to_bytes (GInet6Address *address); +GInet6Address * g_inet6_address_new_any (void); -GInetAddress * g_inet6address_new_loopback (void); -GInetAddress * g_inet6address_new_any (void); G_END_DECLS #endif /* G_INET6_ADDRESS_H */