diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-12-23 16:08:40 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-12-23 16:08:40 +0000 |
commit | 33ccd714ea9469b5b7d3b36bbe468ba1b0f31dfc (patch) | |
tree | 833e8c3331b1f2d9a3e16c131852bf7fe1a00998 /address.h | |
parent | 2095aa52444f9ab598475ddcf8ca1773a02f8e13 (diff) |
initial commit
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@3 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'address.h')
-rw-r--r-- | address.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/address.h b/address.h new file mode 100644 index 0000000..28ccb4b --- /dev/null +++ b/address.h @@ -0,0 +1,31 @@ +#ifndef fooaddresshfoo +#define fooaddresshfoo + +#include <glib.h> + +typedef struct { + guint32 address; +} flxIPv4Address; + +typedef struct { + guint8 address[16]; +} flxIPv6Address; + +typedef struct { + guint family; + + union { + flxIPv6Address ipv6; + flxIPv4Address ipv4; + guint8 data[0]; + }; +} flxAddress; + +guint flx_address_get_size(const flxAddress *a); +gint flx_address_cmp(const flxAddress *a, const flxAddress *b); + +gchar *flx_address_snprint(char *s, guint length, const flxAddress *a); + +gchar* flx_reverse_lookup_name(const flxAddress *a); + +#endif |