[CIFIX]add extern 'C' in C++ code
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#ifdef __cpluscplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
struct stellar_session_event_data;
|
||||
|
||||
@@ -10,3 +16,6 @@ struct stellar_event
|
||||
};
|
||||
};
|
||||
|
||||
#ifdef __cpluscplus
|
||||
}
|
||||
#endif
|
||||
@@ -1,5 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
#ifdef __cpluscplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#include "session.h"
|
||||
|
||||
void http_decoder(const struct stellar_session *s, enum session_event_type event, struct stellar_packet *p, const char *payload, uint16_t len, void **pme);
|
||||
void http_decoder(const struct stellar_session *s, enum session_event_type event, struct stellar_packet *p, const char *payload, uint16_t len, void **pme);
|
||||
|
||||
#ifdef __cpluscplus
|
||||
}
|
||||
#endif
|
||||
@@ -10,10 +10,19 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cpluscplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#define log_debug(x, ...)
|
||||
|
||||
#define log_info(x, ...)
|
||||
|
||||
#define log_notice(x, ...)
|
||||
|
||||
#define log_error(x, ...)
|
||||
#define log_error(x, ...)
|
||||
|
||||
#ifdef __cpluscplus
|
||||
}
|
||||
#endif
|
||||
@@ -8,6 +8,13 @@
|
||||
***********************************************************************************************
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cpluscplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#define CASE_CODE(E) case E: return #E
|
||||
|
||||
/* ST is short for stellar */
|
||||
@@ -35,4 +42,8 @@ typedef enum {
|
||||
ST_ERR_FOPEN,
|
||||
ST_ERR_BPF,
|
||||
ST_ERR_MAX
|
||||
} error_code_t;
|
||||
} error_code_t;
|
||||
|
||||
#ifdef __cpluscplus
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user