Skip to content

Commit

Permalink
Rename osdp_pcap.* as osdp_diag.* to allow for future enhancements
Browse files Browse the repository at this point in the history
Signed-off-by: Siddharth Chandrasekaran <[email protected]>
  • Loading branch information
sidcha committed Aug 7, 2024
1 parent 0810d77 commit 3c697a1
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ LIBOSDP_SOURCES+=" utils/src/list.c utils/src/queue.c utils/src/slab.c utils/src
LIBOSDP_SOURCES+=" utils/src/disjoint_set.c utils/src/logger.c"

if [[ ! -z "${PACKET_TRACE}" ]] || [[ ! -z "${DATA_TRACE}" ]]; then
LIBOSDP_SOURCES+=" src/osdp_pcap.c utils/src/pcap_gen.c"
LIBOSDP_SOURCES+=" src/osdp_diag.c utils/src/pcap_gen.c"
fi

if [[ -z "${STATIC_PD}" ]]; then
Expand Down
6 changes: 3 additions & 3 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ def try_vendor_sources(src_dir, src_files, vendor_dir):
"src/osdp_config.h.in",

# Optional when PACKET_TRACE is enabled
"src/osdp_pcap.c",
"src/osdp_pcap.h",
"src/osdp_diag.c",
"src/osdp_diag.h",
"utils/include/utils/pcap_gen.h",
"utils/src/pcap_gen.c",
]
Expand All @@ -155,7 +155,7 @@ def try_vendor_sources(src_dir, src_files, vendor_dir):
if ("CONFIG_OSDP_PACKET_TRACE" in definitions or
"CONFIG_OSDP_DATA_TRACE" in definitions):
source_files += [
"src/osdp_pcap.c",
"src/osdp_diag.c",
"utils/src/pcap_gen.c",
]

Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ endif()

if (CONFIG_OSDP_PACKET_TRACE OR CONFIG_OSDP_DATA_TRACE)
list(APPEND LIB_OSDP_SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/osdp_pcap.c
${CMAKE_CURRENT_SOURCE_DIR}/osdp_diag.c
)
endif()

Expand Down
2 changes: 1 addition & 1 deletion src/osdp_cp.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#include "osdp_common.h"
#include "osdp_file.h"
#include "osdp_pcap.h"
#include "osdp_diag.h"

#define CMD_POLL_LEN 1
#define CMD_LSTAT_LEN 1
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/osdp_pd.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include "osdp_common.h"
#include "osdp_file.h"
#include "osdp_pcap.h"
#include "osdp_diag.h"

#ifndef CONFIG_OSDP_STATIC_PD
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/osdp_phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

#include "osdp_common.h"
#include "osdp_pcap.h"
#include "osdp_diag.h"

#define OSDP_PKT_MARK 0xFF
#define OSDP_PKT_SOM 0x53
Expand Down

0 comments on commit 3c697a1

Please sign in to comment.