Merge remote-tracking branch 'upstream/master'
Conflicts: mbus/mbus-protocol-aux.h
This commit is contained in:
commit
746e611236
2
debian/control
vendored
2
debian/control
vendored
@ -1,7 +1,7 @@
|
|||||||
Source: libmbus
|
Source: libmbus
|
||||||
Priority: extra
|
Priority: extra
|
||||||
Maintainer: Robert Johansson <rob@raditex.nu>
|
Maintainer: Robert Johansson <rob@raditex.nu>
|
||||||
Build-Depends: debhelper (>= 7.0.50~), autotools-dev, autoconf
|
Build-Depends: debhelper (>= 7.0.50~), dh-autoreconf
|
||||||
Standards-Version: 3.8.4
|
Standards-Version: 3.8.4
|
||||||
Section: libs
|
Section: libs
|
||||||
Homepage: http://www.rscada.se/libmbus
|
Homepage: http://www.rscada.se/libmbus
|
||||||
|
2
debian/files
vendored
2
debian/files
vendored
@ -1,2 +0,0 @@
|
|||||||
libmbus-dev_0.8.0_amd64.deb libdevel extra
|
|
||||||
libmbus1_0.8.0_amd64.deb libs extra
|
|
1
debian/libmbus-dev.install
vendored
1
debian/libmbus-dev.install
vendored
@ -2,3 +2,4 @@ usr/include/*
|
|||||||
usr/lib/lib*.a
|
usr/lib/lib*.a
|
||||||
usr/lib/lib*.so
|
usr/lib/lib*.so
|
||||||
usr/lib/*.la
|
usr/lib/*.la
|
||||||
|
usr/lib/pkgconfig/libmbus.pc
|
||||||
|
2
debian/rules
vendored
2
debian/rules
vendored
@ -3,7 +3,7 @@
|
|||||||
#export DH_VERBOSE=1
|
#export DH_VERBOSE=1
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@
|
dh --with autoreconf $@
|
||||||
|
|
||||||
#override_dh_auto_configure:
|
#override_dh_auto_configure:
|
||||||
# dh_auto_configure -- --prefix=/usr/local/freescada
|
# dh_auto_configure -- --prefix=/usr/local/freescada
|
||||||
|
@ -67,6 +67,10 @@
|
|||||||
|
|
||||||
#include "mbus-protocol.h"
|
#include "mbus-protocol.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#define MBUS_PROBE_NOTHING 0
|
#define MBUS_PROBE_NOTHING 0
|
||||||
#define MBUS_PROBE_SINGLE 1
|
#define MBUS_PROBE_SINGLE 1
|
||||||
#define MBUS_PROBE_COLLISION 2
|
#define MBUS_PROBE_COLLISION 2
|
||||||
@ -467,4 +471,8 @@ int mbus_scan_2nd_address_range(mbus_handle * handle, int pos, char *addr_mask);
|
|||||||
*/
|
*/
|
||||||
size_t mbus_hex2bin(u_char * dst, size_t dst_len, const u_char * src, size_t src_len);
|
size_t mbus_hex2bin(u_char * dst, size_t dst_len, const u_char * src, size_t src_len);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // __MBUS_PROTOCOL_AUX_H__
|
#endif // __MBUS_PROTOCOL_AUX_H__
|
||||||
|
@ -21,6 +21,10 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// Packet formats:
|
// Packet formats:
|
||||||
//
|
//
|
||||||
@ -632,5 +636,9 @@ u_char mbus_dif_datalength_lookup(u_char dif);
|
|||||||
char *mbus_frame_get_secondary_address(mbus_frame *frame);
|
char *mbus_frame_get_secondary_address(mbus_frame *frame);
|
||||||
int mbus_frame_select_secondary_pack(mbus_frame *frame, char *address);
|
int mbus_frame_select_secondary_pack(mbus_frame *frame, char *address);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* _MBUS_PROTOCOL_H_ */
|
#endif /* _MBUS_PROTOCOL_H_ */
|
||||||
|
|
||||||
|
@ -22,6 +22,11 @@
|
|||||||
#include "mbus-protocol-aux.h"
|
#include "mbus-protocol-aux.h"
|
||||||
#include "mbus-protocol.h"
|
#include "mbus-protocol.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
typedef struct _mbus_serial_data
|
typedef struct _mbus_serial_data
|
||||||
{
|
{
|
||||||
char *device;
|
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_recv_frame(mbus_handle *handle, mbus_frame *frame);
|
||||||
int mbus_serial_set_baudrate(mbus_handle *handle, int baudrate);
|
int mbus_serial_set_baudrate(mbus_handle *handle, int baudrate);
|
||||||
void mbus_serial_data_free(mbus_handle *handle);
|
void mbus_serial_data_free(mbus_handle *handle);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* MBUS_SERIAL_H */
|
#endif /* MBUS_SERIAL_H */
|
||||||
|
|
||||||
|
|
||||||
|
@ -21,6 +21,11 @@
|
|||||||
#include "mbus-protocol.h"
|
#include "mbus-protocol.h"
|
||||||
#include "mbus-protocol-aux.h"
|
#include "mbus-protocol-aux.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
typedef struct _mbus_tcp_data
|
typedef struct _mbus_tcp_data
|
||||||
{
|
{
|
||||||
char *host;
|
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);
|
int mbus_tcp_recv_frame(mbus_handle *handle, mbus_frame *frame);
|
||||||
void mbus_tcp_data_free(mbus_handle *handle);
|
void mbus_tcp_data_free(mbus_handle *handle);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* MBUS_TCP_H */
|
#endif /* MBUS_TCP_H */
|
||||||
|
|
||||||
|
|
||||||
|
@ -38,9 +38,17 @@
|
|||||||
#include <mbus/mbus-tcp.h>
|
#include <mbus/mbus-tcp.h>
|
||||||
#include <mbus/mbus-serial.h>
|
#include <mbus/mbus-serial.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
int mbus_init();
|
int mbus_init();
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* _MBUS_H_ */
|
#endif /* _MBUS_H_ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user