From 859802afd10d159b9e370058bca53c8c12bba2f5 Mon Sep 17 00:00:00 2001 From: Onkar Palkar Date: Thu, 2 Feb 2017 17:49:34 +0900 Subject: dlt-client: fix dlt_client_cleanup memory handling Setter function introduced for seting up string parameters which are free'd in dlt_client_cleanup Signed-off-by: Christoph Lipka --- include/dlt/dlt_client.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'include') diff --git a/include/dlt/dlt_client.h b/include/dlt/dlt_client.h index 9af7421..587c6ca 100644 --- a/include/dlt/dlt_client.h +++ b/include/dlt/dlt_client.h @@ -249,6 +249,30 @@ DltReturnValue dlt_client_send_reset_to_factory_default(DltClient *client); */ DltReturnValue dlt_client_setbaudrate(DltClient *client, int baudrate); +/** + * Set server ip + * @param client pointer to dlt client structure + * @param pointer to command line argument + * @return negative value if there was an error + */ +int dlt_client_set_server_ip(DltClient *client, char *ipaddr); + +/** + * Set serial device + * @client pointer to dlt client structure + * @param param pointer to command line argument + * @return negative value if there was an error + */ +int dlt_client_set_serial_device(DltClient *client, char *serial_device); + +/** + * Set socket path + * @client pointer to dlt client structure + * @param param pointer to socket path string + * @return negative value if there was an error + */ +int dlt_client_set_socket_path(DltClient *client, char *socket_path); + #ifdef __cplusplus } #endif -- cgit v1.2.1