aboutsummaryrefslogtreecommitdiff
path: root/src/netaddr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/netaddr.cpp')
-rw-r--r--src/netaddr.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/netaddr.cpp b/src/netaddr.cpp
index 1803629..3c2618a 100644
--- a/src/netaddr.cpp
+++ b/src/netaddr.cpp
@@ -5,6 +5,9 @@
extern "C" {
netaddr_t *netaddr_new() { return new netaddr_t(); }
+
+void netaddr_free(const netaddr_t *self) { delete self; }
+
netaddr_t *netaddr_new_from_ip_port(uint32_t ip, uint16_t port) {
return new netaddr_t(ip, port);
}