Added #ifdef __cplusplus / extern "C" { ... } / #endif to ~65 headers
in src/ and lib/, enabling the C library to be linked into C++ code (chatgui).
Fixed packet_dump.h (added missing header guard) and etcp_bbr.h
(#pragma once guard).
22 lines
317 B
C
22 lines
317 B
C
#ifndef ETCP_DEBUG_H
|
|
#define ETCP_DEBUG_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
#include "etcp_connections.h"
|
|
|
|
typedef struct { char a[16]; } IP_STR;
|
|
|
|
IP_STR ip_to_string(uint32_t ip);
|
|
|
|
void etcp_dump_pkt_sections(struct ETCP_DGRAM* pkt, struct ETCP_LINK* link, int is_send);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|