summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8f5a6a6)
raw | patch | inline | side by side (parent: 8f5a6a6)
author | Florian Forster <octo@noris.net> | |
Wed, 24 Mar 2010 11:09:48 +0000 (12:09 +0100) | ||
committer | Florian Forster <octo@noris.net> | |
Wed, 24 Mar 2010 11:09:48 +0000 (12:09 +0100) |
src/modbus.c | patch | blob | history |
diff --git a/src/modbus.c b/src/modbus.c
index d8e270e87828efcf0d2a01935802c56f9a342bbd..656d9c835afa138764008e2c94575884c4d62743 100644 (file)
--- a/src/modbus.c
+++ b/src/modbus.c
/*
* Data structures
*/
-enum mb_register_type_e
+enum mb_register_type_e /* {{{ */
{
REG_TYPE_UINT16,
REG_TYPE_UINT32,
REG_TYPE_FLOAT
-};
+}; /* }}} */
typedef enum mb_register_type_e mb_register_type_t;
struct mb_data_s;
typedef struct mb_data_s mb_data_t;
-struct mb_data_s
+struct mb_data_s /* {{{ */
{
char *name;
int register_base;
char instance[DATA_MAX_NAME_LEN];
mb_data_t *next;
-};
+}; /* }}} */
-struct mb_slave_s
+struct mb_slave_s /* {{{ */
{
int id;
char instance[DATA_MAX_NAME_LEN];
mb_data_t *collect;
-};
+}; /* }}} */
typedef struct mb_slave_s mb_slave_t;
-struct mb_host_s
+struct mb_host_s /* {{{ */
{
char host[DATA_MAX_NAME_LEN];
char node[NI_MAXHOST];
modbus_param_t connection;
_Bool is_connected;
_Bool have_reconnected;
-};
+}; /* }}} */
typedef struct mb_host_s mb_host_t;
struct mb_data_group_s;
typedef struct mb_data_group_s mb_data_group_t;
-struct mb_data_group_s
+struct mb_data_group_s /* {{{ */
{
mb_data_t *registers;
size_t registers_num;
mb_data_group_t *next;
-};
+}; /* }}} */
/*
* Global variables