aboutsummaryrefslogtreecommitdiff
path: root/src/netaddr.cpp
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-06-04 23:00:55 -0400
committerDeterminant <[email protected]>2019-06-04 23:00:55 -0400
commitfad6446ce15bcd1303fdd162d6938ab30046467e (patch)
tree524e713d3574042176c1021bbfd610a885e950a2 /src/netaddr.cpp
parentdab48a1825aed9c810ce83ea8054fa435ecb41be (diff)
finish the minimal working example
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);
}