diff options
author | Determinant <[email protected]> | 2019-06-04 23:00:55 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2019-06-04 23:00:55 -0400 |
commit | fad6446ce15bcd1303fdd162d6938ab30046467e (patch) | |
tree | 524e713d3574042176c1021bbfd610a885e950a2 /src/netaddr.cpp | |
parent | dab48a1825aed9c810ce83ea8054fa435ecb41be (diff) |
finish the minimal working example
Diffstat (limited to 'src/netaddr.cpp')
-rw-r--r-- | src/netaddr.cpp | 3 |
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); } |