Commit 54833dbe authored by Dafydd Harries's avatar Dafydd Harries

make Agent struct public so conversions to/from it are possible

darcs-hash:20070121144145-c9803-d4e4c160d314ea3604c4148f4bf16b6f38303927.gz
parent 683b1052
......@@ -11,25 +11,6 @@
/*** address ***/
typedef enum address_type AddressType;
enum address_type
{
ADDRESS_TYPE_IPV4,
ADDRESS_TYPE_IPV6,
};
struct _address
{
AddressType type;
union
{
guint32 addr_ipv4;
guchar addr_ipv6[16];
};
};
Address *
address_new_ipv4 (guint32 addr_ipv4)
......
......@@ -14,8 +14,26 @@ enum media_type
/*** address ***/
typedef enum address_type AddressType;
enum address_type
{
ADDRESS_TYPE_IPV4,
ADDRESS_TYPE_IPV6,
};
typedef struct _address Address;
/* XXX: need access to fields to convert to sockaddr_in */
struct _address
{
AddressType type;
union
{
guint32 addr_ipv4;
guchar addr_ipv6[16];
};
};
Address *
address_new_ipv4 (guint32 addr_ipv4);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment