Modify C header files to include from C++ code
This commit is contained in:
@ -21,6 +21,11 @@
|
||||
#include "mbus-protocol.h"
|
||||
#include "mbus-protocol-aux.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
typedef struct _mbus_tcp_data
|
||||
{
|
||||
char *host;
|
||||
@ -33,6 +38,10 @@ int mbus_tcp_send_frame(mbus_handle *handle, mbus_frame *frame);
|
||||
int mbus_tcp_recv_frame(mbus_handle *handle, mbus_frame *frame);
|
||||
void mbus_tcp_data_free(mbus_handle *handle);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* MBUS_TCP_H */
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user