Skip to content

Commit

Permalink
unify datapath_raw_winXXX
Browse files Browse the repository at this point in the history
  • Loading branch information
ami-GS committed Nov 27, 2024
1 parent f6bc45c commit f3856b7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 114 deletions.
2 changes: 1 addition & 1 deletion src/platform/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if("${CX_PLATFORM}" STREQUAL "windows")
${SYSTEM_PROCESSOR} STREQUAL "arm64ec")
set(SOURCES ${SOURCES} datapath_raw_dummy.c)
else()
set(SOURCES ${SOURCES} datapath_raw.c datapath_raw_winuser.c datapath_raw_socket.c datapath_raw_socket_win.c datapath_raw_socket_common.c datapath_raw_xdp_winuser.c)
set(SOURCES ${SOURCES} datapath_raw.c datapath_raw_win.c datapath_raw_socket.c datapath_raw_socket_win.c datapath_raw_socket_common.c datapath_raw_xdp_winuser.c)
endif()
else()
set(SOURCES ${SOURCES} inline.c platform_posix.c storage_posix.c cgroup.c datapath_unix.c)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include "datapath_raw_win.h"
#ifdef QUIC_CLOG
#include "datapath_raw_winuser.c.clog.h"
#include "datapath_raw_winkernel.c.clog.h"
#endif

#pragma warning(disable:4116) // unnamed type definition in parentheses
Expand Down Expand Up @@ -241,5 +241,7 @@ CXPLAT_THREAD_CALLBACK(CxPlatRouteResolutionWorkerThread, Context)
CXPLAT_FREE(Operation, QUIC_POOL_ROUTE_RESOLUTION_OPER);
}

#ifndef _KERNEL_MODE
return 0;
#endif
}
111 changes: 0 additions & 111 deletions src/platform/datapath_raw_winkernel.c

This file was deleted.

2 changes: 1 addition & 1 deletion src/platform/platform.kernel.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<ClCompile Include="datapath_xplat.c" />
<ClCompile Include="datapath_win.c" />
<ClCompile Include="datapath_raw.c" />
<ClCompile Include="datapath_raw_winkernel.c" />
<ClCompile Include="datapath_raw_win.c" />
<ClCompile Include="datapath_raw_socket.c" />
<ClCompile Include="datapath_raw_socket_common.c" />
<ClCompile Include="datapath_raw_socket_win.c" />
Expand Down

0 comments on commit f3856b7

Please sign in to comment.