Modify C header files to include from C++ code

This commit is contained in:
aleax
2012-12-05 21:24:58 +02:00
parent ee6241c331
commit 72341baea5
5 changed files with 43 additions and 0 deletions

View File

@ -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 */