diff options
author | Onkar Palkar <onkar.palkar@wipro.com> | 2017-02-02 17:49:34 +0900 |
---|---|---|
committer | Christoph Lipka <clipka@jp.adit-jv.com> | 2017-02-06 11:51:52 +0900 |
commit | 859802afd10d159b9e370058bca53c8c12bba2f5 (patch) | |
tree | c0d21e00fb567120deac8f3911f8f958716f7e7a /include/dlt/dlt_client.h | |
parent | a961dba0013ed2119aa719546c63212459753549 (diff) | |
download | DLT-daemon-859802afd10d159b9e370058bca53c8c12bba2f5.tar.gz |
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 <clipka@jp.adit-jv.com>
Diffstat (limited to 'include/dlt/dlt_client.h')
-rw-r--r-- | include/dlt/dlt_client.h | 24 |
1 files changed, 24 insertions, 0 deletions
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 |