summaryrefslogtreecommitdiff
path: root/src/gateway/dlt_gateway_types.h
diff options
context:
space:
mode:
authorChristoph Lipka <clipka@jp.adit-jv.com>2016-01-20 14:57:57 +0900
committerGernot Wirschal <gernot.wirschal@bmw.de>2016-04-26 16:01:26 +0200
commitcc4517dcffc6e5fd66791fca486586ae9b948174 (patch)
tree4cea5f06acd0fd50823e66f758b6df51d38c79fd /src/gateway/dlt_gateway_types.h
parentc75c984cfb1c6d154b14ebfca64c8222c4013c6b (diff)
downloadDLT-daemon-cc4517dcffc6e5fd66791fca486586ae9b948174.tar.gz
MultiNode: Send control messages after connection
A list of control messages can be specified in the dlt_gateway.conf. These messages then are send immediately to the passive node after the connection has been established. Currently supported control messages are - GET_LOG_INFO - GET_SOFTWARE_VERSION Having the "SendControl" property is now mandatory for a passive node configuration, but the list of control messages might be empty. Signed-off-by: Christoph Lipka <clipka@jp.adit-jv.com> Change-Id: I0ae4501449bf264c2d6f32724b0f035926115611
Diffstat (limited to 'src/gateway/dlt_gateway_types.h')
-rw-r--r--src/gateway/dlt_gateway_types.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gateway/dlt_gateway_types.h b/src/gateway/dlt_gateway_types.h
index ad841c1..a328a0b 100644
--- a/src/gateway/dlt_gateway_types.h
+++ b/src/gateway/dlt_gateway_types.h
@@ -65,6 +65,10 @@
#define DLT_GATEWAY_RECONNECT_MAX 1 /* reconnect once after connection loss */
+/* maximum number of control messages that can be send after connection is
+ * established */
+#define DLT_GATEWAY_MAX_STARTUP_CTRL_MSG 10
+
typedef enum
{
DLT_GATEWAY_UNINITIALIZED,
@@ -95,7 +99,7 @@ typedef struct {
int timeout; /* connection timeout */
int timeout_cnt; /* connection timeout counter */
int reconnect_cnt; /* reconnection counter */
-
+ int control_msgs[DLT_GATEWAY_MAX_STARTUP_CTRL_MSG]; /* msg IDs send on startup */
DltClient client; /* DltClient structure */
} DltGatewayConnection;