-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pcap: Move declarations to a separate header
Signed-off-by: Siddharth Chandrasekaran <[email protected]>
- Loading branch information
Siddharth Chandrasekaran
committed
Feb 20, 2024
1 parent
231bc79
commit 7750be2
Showing
6 changed files
with
45 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright (c) 2024 Siddharth Chandrasekaran <[email protected]> | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#ifndef _OSDP_PCAP_H_ | ||
#define _OSDP_PCAP_H_ | ||
|
||
#include "osdp_common.h" | ||
|
||
#if defined(CONFIG_OSDP_PACKET_TRACE) || defined(CONFIG_OSDP_DATA_TRACE) | ||
|
||
void osdp_packet_capture_init(struct osdp_pd *pd); | ||
void osdp_packet_capture_finish(struct osdp_pd *pd); | ||
void osdp_capture_packet(struct osdp_pd *pd, uint8_t *buf, int len); | ||
|
||
#else | ||
|
||
static inline void osdp_packet_capture_init(struct osdp_pd *pd) | ||
{ | ||
ARG_UNUSED(pd); | ||
} | ||
|
||
static inline void osdp_packet_capture_finish(struct osdp_pd *pd) | ||
{ | ||
ARG_UNUSED(pd); | ||
} | ||
|
||
static inline void osdp_capture_packet(struct osdp_pd *pd, | ||
uint8_t *buf, int len) | ||
{ | ||
ARG_UNUSED(pd); | ||
ARG_UNUSED(buf); | ||
ARG_UNUSED(len); | ||
} | ||
|
||
#endif | ||
|
||
#endif /* _OSDP_PCAP_H_ */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters