From cc4517dcffc6e5fd66791fca486586ae9b948174 Mon Sep 17 00:00:00 2001 From: Christoph Lipka Date: Wed, 20 Jan 2016 14:57:57 +0900 Subject: 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 Change-Id: I0ae4501449bf264c2d6f32724b0f035926115611 --- src/gateway/dlt_gateway.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/gateway/dlt_gateway.h') diff --git a/src/gateway/dlt_gateway.h b/src/gateway/dlt_gateway.h index eacdf0b..255f855 100644 --- a/src/gateway/dlt_gateway.h +++ b/src/gateway/dlt_gateway.h @@ -163,6 +163,19 @@ int dlt_gateway_process_on_demand_request(DltGateway *g, int connection_status, int verbose); +/** + * Send control message to passive node. + * + * @param con DltGatewayConnection + * @param g DltGateway + * @param daemon_local DltDaemonLocal + * @param verbose verbose flag + */ +void dlt_gateway_send_control_message(DltGatewayConnection *con, + DltGateway *g, + DltDaemonLocal *daemon_local, + int verbose); + /* _ONLY_ for development purposes */ void print_gateway_connection_details(const DltGateway *g); -- cgit v1.2.1