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

@ -22,6 +22,11 @@
#include "mbus-protocol-aux.h"
#include "mbus-protocol.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _mbus_serial_data
{
char *device;
@ -34,6 +39,11 @@ int mbus_serial_send_frame(mbus_handle *handle, mbus_frame *fram
int mbus_serial_recv_frame(mbus_handle *handle, mbus_frame *frame);
int mbus_serial_set_baudrate(mbus_handle *handle, int baudrate);
void mbus_serial_data_free(mbus_handle *handle);
#ifdef __cplusplus
}
#endif
#endif /* MBUS_SERIAL_H */