diff options
author | Onkar Palkar <onkar.palkar@wipro.com> | 2016-10-12 15:02:49 +0900 |
---|---|---|
committer | Christoph Lipka <clipka@jp.adit-jv.com> | 2016-10-24 13:39:56 +0900 |
commit | 438e9c2f1928928d37902d5e274e0e392fde951e (patch) | |
tree | a96d22dac38d298171fbb6b591ddd62d87e8c68d /src/gateway/dlt_gateway.h | |
parent | 45a9314989ecd5c07d37364f3d7d09b19d1e33f6 (diff) | |
download | DLT-daemon-438e9c2f1928928d37902d5e274e0e392fde951e.tar.gz |
Unit Test: MultiNode
Unit test for DLT MultiNode extension
Signed-off-by: Christoph Lipka <clipka@jp.adit-jv.com>
Diffstat (limited to 'src/gateway/dlt_gateway.h')
-rw-r--r-- | src/gateway/dlt_gateway.h | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/src/gateway/dlt_gateway.h b/src/gateway/dlt_gateway.h index 255f855..9fa2d6a 100644 --- a/src/gateway/dlt_gateway.h +++ b/src/gateway/dlt_gateway.h @@ -60,7 +60,6 @@ #include "dlt-daemon.h" #include "dlt_gateway_types.h" - /** * Initialize the gateway to passive nodes * @@ -178,5 +177,33 @@ void dlt_gateway_send_control_message(DltGatewayConnection *con, /* _ONLY_ for development purposes */ void print_gateway_connection_details(const DltGateway *g); - +#ifdef DLT_UNIT_TESTS +typedef enum { + GW_CONF_IP_ADDRESS = 0, + GW_CONF_PORT, + GW_CONF_ECUID, + GW_CONF_CONNECT, + GW_CONF_TIMEOUT, + GW_CONF_SEND_CONTROL, + GW_CONF_SEND_SERIAL_HEADER, + GW_CONF_COUNT +} DltGatewayConfType; +int dlt_gateway_check_ip(DltGatewayConnection *con, char *value); +int dlt_gateway_check_port(DltGatewayConnection *con, char *value); +int dlt_gateway_check_ecu(DltGatewayConnection *con, char *value); +int dlt_gateway_check_connect_trigger(DltGatewayConnection *con, + char *value); +int dlt_gateway_check_timeout(DltGatewayConnection *con, char *value); +int dlt_gateway_check_send_serial(DltGatewayConnection *con, char *value); +int dlt_gateway_check_control_messages(DltGatewayConnection *con, + char *value); +int dlt_gateway_check_param(DltGateway *gateway, + DltGatewayConnection *con, + DltGatewayConfType ctype, + char *value); +int dlt_gateway_configure(DltGateway *gateway, char *config_file, int verbose); +int dlt_gateway_store_connection(DltGateway *gateway, + DltGatewayConnection *tmp, + int verbose); +#endif #endif |