diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-11-05 13:01:41 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-11-05 16:58:43 +0100 |
commit | e9e790605a606d7d2aea8fbfaf38f336c1492b79 (patch) | |
tree | 4a572e179fcde5e157d0fd15ba4b434eae1acb42 /example/example.c | |
parent | README: improve code example (diff) | |
download | wintun-e9e790605a606d7d2aea8fbfaf38f336c1492b79.tar.xz wintun-e9e790605a606d7d2aea8fbfaf38f336c1492b79.zip |
api: rename ReceiveRelease to ReleaseReceivePacket
This makes the API parallel:
Wintun*Allocate*SendPacket -> WintunSendPacket
WintunReceivePacket -> Wintun*Release*ReceivePacket
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r-- | example/example.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/example/example.c b/example/example.c index 550bd77..731bc38 100644 --- a/example/example.c +++ b/example/example.c @@ -28,7 +28,7 @@ static WINTUN_START_SESSION_FUNC WintunStartSession; static WINTUN_END_SESSION_FUNC WintunEndSession;
static WINTUN_GET_READ_WAIT_EVENT_FUNC WintunGetReadWaitEvent;
static WINTUN_RECEIVE_PACKET_FUNC WintunReceivePacket;
-static WINTUN_RECEIVE_RELEASE_FUNC WintunReceiveRelease;
+static WINTUN_RELEASE_RECEIVE_PACKET_FUNC WintunReleaseReceivePacket;
static WINTUN_ALLOCATE_SEND_PACKET_FUNC WintunAllocateSendPacket;
static WINTUN_SEND_PACKET_FUNC WintunSendPacket;
@@ -50,7 +50,8 @@ InitializeWintun(void) X(WintunGetRunningDriverVersion, WINTUN_GET_RUNNING_DRIVER_VERSION_FUNC) ||
X(WintunSetLogger, WINTUN_SET_LOGGER_FUNC) || X(WintunStartSession, WINTUN_START_SESSION_FUNC) ||
X(WintunEndSession, WINTUN_END_SESSION_FUNC) || X(WintunGetReadWaitEvent, WINTUN_GET_READ_WAIT_EVENT_FUNC) ||
- X(WintunReceivePacket, WINTUN_RECEIVE_PACKET_FUNC) || X(WintunReceiveRelease, WINTUN_RECEIVE_RELEASE_FUNC) ||
+ X(WintunReceivePacket, WINTUN_RECEIVE_PACKET_FUNC) ||
+ X(WintunReleaseReceivePacket, WINTUN_RELEASE_RECEIVE_PACKET_FUNC) ||
X(WintunAllocateSendPacket, WINTUN_ALLOCATE_SEND_PACKET_FUNC) || X(WintunSendPacket, WINTUN_SEND_PACKET_FUNC))
#undef X
{
@@ -250,7 +251,7 @@ ReceivePackets(_Inout_ DWORD_PTR SessionPtr) if (Packet)
{
PrintPacket(Packet, PacketSize);
- WintunReceiveRelease(Session, Packet);
+ WintunReleaseReceivePacket(Session, Packet);
}
else
{
|