From 500d697b5c8d1afc35f1499054ac307ecc4f8079 Mon Sep 17 00:00:00 2001 From: luwenpeng Date: Wed, 28 Aug 2024 18:00:06 +0800 Subject: [PATCH] refactor(infra/packet_parser): from *.cpp to *.c --- infra/packet_parser/CMakeLists.txt | 12 ++++++------ infra/packet_parser/{checksum.cpp => checksum.c} | 0 .../{packet_builder.cpp => packet_builder.c} | 0 .../packet_parser/{packet_dump.cpp => packet_dump.c} | 0 .../{packet_filter.cpp => packet_filter.c} | 0 .../{packet_parser.cpp => packet_parser.c} | 0 .../{packet_utils.cpp => packet_utils.c} | 0 7 files changed, 6 insertions(+), 6 deletions(-) rename infra/packet_parser/{checksum.cpp => checksum.c} (100%) rename infra/packet_parser/{packet_builder.cpp => packet_builder.c} (100%) rename infra/packet_parser/{packet_dump.cpp => packet_dump.c} (100%) rename infra/packet_parser/{packet_filter.cpp => packet_filter.c} (100%) rename infra/packet_parser/{packet_parser.cpp => packet_parser.c} (100%) rename infra/packet_parser/{packet_utils.cpp => packet_utils.c} (100%) diff --git a/infra/packet_parser/CMakeLists.txt b/infra/packet_parser/CMakeLists.txt index 13e9547..5ed91e5 100644 --- a/infra/packet_parser/CMakeLists.txt +++ b/infra/packet_parser/CMakeLists.txt @@ -1,10 +1,10 @@ add_library(packet - packet_utils.cpp - packet_parser.cpp - packet_builder.cpp - packet_filter.cpp - packet_dump.cpp - checksum.cpp) + packet_utils.c + packet_parser.c + packet_builder.c + packet_filter.c + packet_dump.c + checksum.c) target_include_directories(packet PUBLIC ${CMAKE_CURRENT_LIST_DIR}) target_include_directories(packet PUBLIC ${CMAKE_SOURCE_DIR}/deps/uthash) target_include_directories(packet PUBLIC ${CMAKE_SOURCE_DIR}/include) diff --git a/infra/packet_parser/checksum.cpp b/infra/packet_parser/checksum.c similarity index 100% rename from infra/packet_parser/checksum.cpp rename to infra/packet_parser/checksum.c diff --git a/infra/packet_parser/packet_builder.cpp b/infra/packet_parser/packet_builder.c similarity index 100% rename from infra/packet_parser/packet_builder.cpp rename to infra/packet_parser/packet_builder.c diff --git a/infra/packet_parser/packet_dump.cpp b/infra/packet_parser/packet_dump.c similarity index 100% rename from infra/packet_parser/packet_dump.cpp rename to infra/packet_parser/packet_dump.c diff --git a/infra/packet_parser/packet_filter.cpp b/infra/packet_parser/packet_filter.c similarity index 100% rename from infra/packet_parser/packet_filter.cpp rename to infra/packet_parser/packet_filter.c diff --git a/infra/packet_parser/packet_parser.cpp b/infra/packet_parser/packet_parser.c similarity index 100% rename from infra/packet_parser/packet_parser.cpp rename to infra/packet_parser/packet_parser.c diff --git a/infra/packet_parser/packet_utils.cpp b/infra/packet_parser/packet_utils.c similarity index 100% rename from infra/packet_parser/packet_utils.cpp rename to infra/packet_parser/packet_utils.c