summaryrefslogtreecommitdiff
path: root/src/daemon/dlt_daemon_client.h
diff options
context:
space:
mode:
authorAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2014-03-18 11:29:08 +0100
committerAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2014-04-01 09:45:45 +0200
commit2f105312020b9afd8364df2addab1096e2bf061e (patch)
tree143a7d24734513355425f68f84af60ba934abdd8 /src/daemon/dlt_daemon_client.h
parentac1798cbe37c2fdd4f42f05d5e38618372575e82 (diff)
downloadDLT-daemon-2f105312020b9afd8364df2addab1096e2bf061e.tar.gz
Fixed: Fixed offline trace and new send functions issues
Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
Diffstat (limited to 'src/daemon/dlt_daemon_client.h')
-rw-r--r--src/daemon/dlt_daemon_client.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/daemon/dlt_daemon_client.h b/src/daemon/dlt_daemon_client.h
index b46d8c7..34715c9 100644
--- a/src/daemon/dlt_daemon_client.h
+++ b/src/daemon/dlt_daemon_client.h
@@ -62,12 +62,25 @@
#include <dlt_offline_trace.h>
#include <sys/time.h>
+/**
+ * Send out message to client or store message in offline trace.
+ * @param sock connection handle used for sending response
+ * @param daemon pointer to dlt daemon structure
+ * @param daemon_local pointer to dlt daemon local structure
+ * @param data1 pointer to data
+ * @param size1 size of data
+ * @param data2 pointer to data
+ * @param size2 size of data
+ * @param verbose if set to true verbose information is printed out.
+ * @return unequal 0 if there is an error or buffer is full
+ */
int dlt_daemon_client_send(int sock,DltDaemon *daemon,DltDaemonLocal *daemon_local,void* data1,int size1,void* data2,int size2,int verbose);
/**
* Send out response message to dlt client
* @param sock connection handle used for sending response
* @param daemon pointer to dlt daemon structure
+ * @param daemon_local pointer to dlt daemon local structure
* @param msg pointer to response message
* @param appid pointer to application id to be used in response message
* @param contid pointer to context id to be used in response message
@@ -79,6 +92,7 @@ int dlt_daemon_client_send_control_message(int sock, DltDaemon *daemon, DltDaemo
* Process and generate response to received get log info control message
* @param sock connection handle used for sending response
* @param daemon pointer to dlt daemon structure
+ * @param daemon_local pointer to dlt daemon local structure
* @param msg pointer to received control message
* @param verbose if set to true verbose information is printed out.
*/
@@ -87,6 +101,7 @@ void dlt_daemon_control_get_log_info(int sock, DltDaemon *daemon,DltDaemonLocal
* Process and generate response to received get software version control message
* @param sock connection handle used for sending response
* @param daemon pointer to dlt daemon structure
+ * @param daemon_local pointer to dlt daemon local structure
* @param verbose if set to true verbose information is printed out.
*/
void dlt_daemon_control_get_software_version(int sock, DltDaemon *daemon, DltDaemonLocal *daemon_local, int verbose);
@@ -94,6 +109,7 @@ void dlt_daemon_control_get_software_version(int sock, DltDaemon *daemon, DltDae
* Process and generate response to received get default log level control message
* @param sock connection handle used for sending response
* @param daemon pointer to dlt daemon structure
+ * @param daemon_local pointer to dlt daemon local structure
* @param verbose if set to true verbose information is printed out.
*/
void dlt_daemon_control_get_default_log_level(int sock, DltDaemon *daemon, DltDaemonLocal *daemon_local, int verbose);
@@ -101,6 +117,7 @@ void dlt_daemon_control_get_default_log_level(int sock, DltDaemon *daemon, DltDa
* Process and generate response to message buffer overflow control message
* @param sock connection handle used for sending response
* @param daemon pointer to dlt daemon structure
+ * @param daemon_local pointer to dlt daemon local structure
* @param verbose if set to true verbose information is printed out.
* @return -1 if there is an error or buffer overflow, else 0
*/
@@ -109,6 +126,7 @@ int dlt_daemon_control_message_buffer_overflow(int sock, DltDaemon *daemon, DltD
* Generate response to control message from dlt client
* @param sock connection handle used for sending response
* @param daemon pointer to dlt daemon structure
+ * @param daemon_local pointer to dlt daemon local structure
* @param service_id service id of control message
* @param status status of response (e.g. ok, not supported, error)
* @param verbose if set to true verbose information is printed out.
@@ -118,6 +136,7 @@ void dlt_daemon_control_service_response(int sock, DltDaemon *daemon, DltDaemonL
* Send control message unregister context (add on to AUTOSAR standard)
* @param sock connection handle used for sending response
* @param daemon pointer to dlt daemon structure
+ * @param daemon_local pointer to dlt daemon local structure
* @param apid application id to be unregisteres
* @param ctid context id to be unregistered
* @param comid Communication id where apid is unregistered
@@ -128,6 +147,7 @@ int dlt_daemon_control_message_unregister_context(int sock, DltDaemon *daemon, D
* Send control message connection info (add on to AUTOSAR standard)
* @param sock connection handle used for sending response
* @param daemon pointer to dlt daemon structure
+ * @param daemon_local pointer to dlt daemon local structure
* @param state state of connection
* @param comid Communication id where connection state changed
* @param verbose if set to true verbose information is printed out.
@@ -137,6 +157,7 @@ int dlt_daemon_control_message_connection_info(int sock, DltDaemon *daemon, DltD
* Send control message connection info (add on to AUTOSAR standard)
* @param sock connection handle used for sending response
* @param daemon pointer to dlt daemon structure
+ * @param daemon_local pointer to dlt daemon local structure
* @param timezone timezone on target
* @param verbose if set to true verbose information is printed out.
*/
@@ -145,6 +166,7 @@ int dlt_daemon_control_message_timezone(int sock, DltDaemon *daemon, DltDaemonLo
* Process received control message from dlt client
* @param sock connection handle used for sending response
* @param daemon pointer to dlt daemon structure
+ * @param daemon_local pointer to dlt daemon local structure
* @param msg pointer to received control message
* @param verbose if set to true verbose information is printed out.
*/
@@ -153,6 +175,7 @@ int dlt_daemon_client_process_control(int sock, DltDaemon *daemon, DltDaemonLoca
* Process and generate response to received sw injection control message
* @param sock connection handle used for sending response
* @param daemon pointer to dlt daemon structure
+ * @param daemon_local pointer to dlt daemon local structure
* @param msg pointer to received sw injection control message
* @param verbose if set to true verbose information is printed out.
*/
@@ -161,6 +184,7 @@ void dlt_daemon_control_callsw_cinjection(int sock, DltDaemon *daemon, DltDaemon
* Process and generate response to received set log level control message
* @param sock connection handle used for sending response
* @param daemon pointer to dlt daemon structure
+ * @param daemon_local pointer to dlt daemon local structure
* @param msg pointer to received control message
* @param verbose if set to true verbose information is printed out.
*/
@@ -169,6 +193,7 @@ void dlt_daemon_control_set_log_level(int sock, DltDaemon *daemon, DltDaemonLoca
* Process and generate response to received set trace status control message
* @param sock connection handle used for sending response
* @param daemon pointer to dlt daemon structure
+ * @param daemon_local pointer to dlt daemon local structure
* @param msg pointer to received control message
* @param verbose if set to true verbose information is printed out.
*/
@@ -177,6 +202,7 @@ void dlt_daemon_control_set_trace_status(int sock, DltDaemon *daemon, DltDaemonL
* Process and generate response to received set default log level control message
* @param sock connection handle used for sending response
* @param daemon pointer to dlt daemon structure
+ * @param daemon_local pointer to dlt daemon local structure
* @param msg pointer to received control message
* @param verbose if set to true verbose information is printed out.
*/
@@ -185,6 +211,7 @@ void dlt_daemon_control_set_default_log_level(int sock, DltDaemon *daemon, DltDa
* Process and generate response to received set default trace status control message
* @param sock connection handle used for sending response
* @param daemon pointer to dlt daemon structure
+ * @param daemon_local pointer to dlt daemon local structure
* @param msg pointer to received control message
* @param verbose if set to true verbose information is printed out.
*/
@@ -193,6 +220,7 @@ void dlt_daemon_control_set_default_trace_status(int sock, DltDaemon *daemon, Dl
* Process and generate response to set timing packets control message
* @param sock connection handle used for sending response
* @param daemon pointer to dlt daemon structure
+ * @param daemon_local pointer to dlt daemon local structure
* @param msg pointer to received control message
* @param verbose if set to true verbose information is printed out.
*/
@@ -201,6 +229,7 @@ void dlt_daemon_control_set_timing_packets(int sock, DltDaemon *daemon, DltDaemo
* Send time control message
* @param sock connection handle used for sending response
* @param daemon pointer to dlt daemon structure
+ * @param daemon_local pointer to dlt daemon local structure
* @param verbose if set to true verbose information is printed out.
*/
void dlt_daemon_control_message_time(int sock, DltDaemon *daemon, DltDaemonLocal *daemon_local, int verbose);