1 #ifndef G_INET6_ADDRESS_H
2 #define G_INET6_ADDRESS_H
4 #include <glib-object.h>
5 #include <ginetaddress.h>
9 #define G_TYPE_INET6_ADDRESS (g_inet6_address_get_type ())
10 #define G_INET6_ADDRESS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_INET6_ADDRESS, GInet6Address))
11 #define G_INET6_ADDRESS_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_INET6_ADDRESS, GInet6AddressClass))
12 #define G_IS_INET6_ADDRESS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_INET6_ADDRESS))
13 #define G_IS_INET6_ADDRESS_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_INET6_ADDRESS))
14 #define G_INET6_ADDRESS_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_INET6_ADDRESS, GInet6AddressClass))
16 typedef struct _GInet6Address GInet6Address;
17 typedef struct _GInet6AddressClass GInet6AddressClass;
18 typedef struct _GInet6AddressPrivate GInet6AddressPrivate;
20 struct _GInet6Address {
24 GInet6AddressPrivate *priv;
27 struct _GInet6AddressClass {
29 GInetAddressClass parent_class;
33 GType g_inet6_address_get_type (void) G_GNUC_CONST;
35 GInet6Address * g_inet6_address_from_string (const char *string);
36 char * g_inet6_address_to_string (GInet6Address *address);
38 GInet6Address * g_inet6_address_from_bytes (guint8 bytes[]);
39 const guint8 * g_inet6_address_to_bytes (GInet6Address *address);
41 GInetAddress * g_inet6address_new_loopback (void);
42 GInetAddress * g_inet6address_new_any (void);
45 #endif /* G_INET6_ADDRESS_H */