diff options
Diffstat (limited to 'src/netaddr.cpp')
-rw-r--r-- | src/netaddr.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/netaddr.cpp b/src/netaddr.cpp index 1387b84..cb8a3d2 100644 --- a/src/netaddr.cpp +++ b/src/netaddr.cpp @@ -20,6 +20,10 @@ netaddr_t *netaddr_new_from_sipport(const char *ip_port_addr) { return new netaddr_t(ip_port_addr); } +netaddr_t *netaddr_copy(const netaddr_t *self) { + return new netaddr_t(*self); +} + bool netaddr_is_eq(const netaddr_t *a, const netaddr_t *b) { return *a == *b; } |