diff options
author | Simon Rozman <simon@rozman.si> | 2020-10-25 10:01:35 +0100 |
---|---|---|
committer | Simon Rozman <simon@rozman.si> | 2020-10-31 10:15:15 +0100 |
commit | 2439b05212df1539ad7a130b69315e0c4ca43abd (patch) | |
tree | 95afb7d3bbbbac58ae78d1cf2bb650aa4fb2d97e /api/exports.def | |
parent | api: update README.md (diff) | |
download | wintun-2439b05212df1539ad7a130b69315e0c4ca43abd.tar.xz wintun-2439b05212df1539ad7a130b69315e0c4ca43abd.zip |
api: upgrade ring management
- Return pointer to ring buffer with packet data allowing clients to
read/write directly. This eliminates one memcpy().
- Make sending/receiving packets thread-safe.
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'api/exports.def')
-rw-r--r-- | api/exports.def | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/api/exports.def b/api/exports.def index 85e4453..6dbd89a 100644 --- a/api/exports.def +++ b/api/exports.def @@ -1,4 +1,5 @@ EXPORTS + WintunAllocateSendPacket WintunCreateAdapter WintunDeleteAdapter WintunEndSession @@ -11,8 +12,9 @@ EXPORTS WintunGetAdapterName WintunGetVersion WintunIsPacketAvailable - WintunReceivePackets - WintunSendPackets + WintunReceivePacket + WintunReceiveRelease + WintunSendPacket WintunSetAdapterName WintunSetLogger WintunStartSession |