got rid of duplicate catalog libmbus/libmbus

This commit is contained in:
Robert
2012-04-15 10:51:15 +09:00
parent a7b6f180a3
commit c10b37e53d
89 changed files with 0 additions and 0 deletions

41
mbus/mbus-tcp.h Normal file
View File

@ -0,0 +1,41 @@
//------------------------------------------------------------------------------
// Copyright (C) 2011, Robert Johansson, Raditex AB
// All rights reserved.
//
// rSCADA
// http://www.rSCADA.se
// info@rscada.se
//
//------------------------------------------------------------------------------
/**
* @file mbus-tcp.h
*
* @brief Functions and data structures for sending M-Bus data via TCP.
*
*/
#ifndef MBUS_TCP_H
#define MBUS_TCP_H
#include <mbus/mbus.h>
typedef struct _mbus_tcp_handle {
char *host;
int port;
int sock;
} mbus_tcp_handle;
mbus_tcp_handle *mbus_tcp_connect(char *host, int port);
int mbus_tcp_disconnect(mbus_tcp_handle *handle);
int mbus_tcp_send_frame(mbus_tcp_handle *handle, mbus_frame *frame);
int mbus_tcp_recv_frame(mbus_tcp_handle *handle, mbus_frame *frame);
#endif /* MBUS_TCP_H */