projects
/
libeap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make peer headers build with C++ sources
[libeap.git]
/
src
/
utils
/
wpa_debug.h
diff --git
a/src/utils/wpa_debug.h
b/src/utils/wpa_debug.h
index
9dace70
..
0f7bf28
100644
(file)
--- a/
src/utils/wpa_debug.h
+++ b/
src/utils/wpa_debug.h
@@
-17,6
+17,10
@@
#include "wpabuf.h"
#include "wpabuf.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Debugging function - conditional printf and hex dump. Driver wrappers can
* use these for debugging purposes. */
/* Debugging function - conditional printf and hex dump. Driver wrappers can
* use these for debugging purposes. */
@@
-81,7
+85,7
@@
void wpa_hexdump(int level, const char *title, const u8 *buf, size_t len);
static inline void wpa_hexdump_buf(int level, const char *title,
const struct wpabuf *buf)
{
static inline void wpa_hexdump_buf(int level, const char *title,
const struct wpabuf *buf)
{
- wpa_hexdump(level, title, wpabuf_head(buf), wpabuf_len(buf));
+ wpa_hexdump(level, title,
(const u8 *)
wpabuf_head(buf), wpabuf_len(buf));
}
/**
}
/**
@@
-102,7
+106,7
@@
void wpa_hexdump_key(int level, const char *title, const u8 *buf, size_t len);
static inline void wpa_hexdump_buf_key(int level, const char *title,
const struct wpabuf *buf)
{
static inline void wpa_hexdump_buf_key(int level, const char *title,
const struct wpabuf *buf)
{
- wpa_hexdump_key(level, title, wpabuf_head(buf), wpabuf_len(buf));
+ wpa_hexdump_key(level, title,
(const u8 *)
wpabuf_head(buf), wpabuf_len(buf));
}
/**
}
/**
@@
-255,4
+259,8
@@
static inline void wpa_debug_close_syslog(void)
#define WPA_ASSERT(a) do { } while (0)
#endif
#define WPA_ASSERT(a) do { } while (0)
#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif /* WPA_DEBUG_H */
#endif /* WPA_DEBUG_H */