Commit e6a8215a authored by Olivier Crête's avatar Olivier Crête

address: Add Boxed Type

This should make the library more easily usable for bindings
parent e0a455b4
......@@ -88,6 +88,9 @@ inet_ntop_win32 (int af, const void *src, char *dst, socklen_t cnt)
#endif
NICEAPI_EXPORT
G_DEFINE_BOXED_TYPE (NiceAddress, nice_address, nice_address_dup,
nice_address_free);
NICEAPI_EXPORT void
nice_address_init (NiceAddress *addr)
......
......@@ -51,6 +51,7 @@
#include <glib.h>
#include <glib-object.h>
#ifdef G_OS_WIN32
#include <winsock2.h>
......@@ -64,6 +65,9 @@
G_BEGIN_DECLS
#define NICE_TYPE_ADDRESS (nice_address_get_type())
GType nice_address_get_type (void);
/**
* NiceAddress:
......
......@@ -148,6 +148,9 @@ nice_address_is_private
nice_address_is_linklocal
nice_address_is_valid
nice_address_ip_version
<SUBSECTION Standard>
NICE_TYPE_ADDRESS
nice_address_get_type
</SECTION>
......
......@@ -4,6 +4,7 @@ nice_address_equal
nice_address_equal_no_port
nice_address_free
nice_address_get_port
nice_address_get_type
nice_address_init
nice_address_ip_version
nice_address_is_private
......
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