summaryrefslogtreecommitdiff
path: root/src/daemon/dlt_daemon_client.h
diff options
context:
space:
mode:
authorVo Trung Chi <Chi.VoTrung@vn.bosch.com>2019-08-05 15:26:47 +0700
committerSaya Sugiura <39760799+ssugiura@users.noreply.github.com>2019-09-13 08:49:36 +0900
commit0ca94151777a560209fe063a7f02474e3a0ff47d (patch)
treec62c6a9a613fe03fdadbb4961d73ecfe709799b5 /src/daemon/dlt_daemon_client.h
parent677a246366465af96d254b211d56e950f5563d1b (diff)
downloadDLT-daemon-0ca94151777a560209fe063a7f02474e3a0ff47d.tar.gz
shm: Resend dlt msg when client connect
After dlt-client connects to dlt-daemon successfully, all the stored dlt messages in daemon was not flushed to dlt client when using shared memory as IPC. It is harmonized with dlt_daemon_process_user_message_log(). Signed-off-by: Vo Trung Chi <chi.votrung@vn.bosch.com>
Diffstat (limited to 'src/daemon/dlt_daemon_client.h')
-rw-r--r--src/daemon/dlt_daemon_client.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/daemon/dlt_daemon_client.h b/src/daemon/dlt_daemon_client.h
index 80821d2..75e1211 100644
--- a/src/daemon/dlt_daemon_client.h
+++ b/src/daemon/dlt_daemon_client.h
@@ -65,15 +65,6 @@
#include <sys/time.h>
/**
- * Send out message to all the clients.
- * @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 transfer succeed, 0 otherwise.
- */
-int dlt_daemon_client_send_all(DltDaemon *daemon, DltDaemonLocal *daemon_local, int verbose);
-
-/**
* 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
@@ -97,7 +88,16 @@ int dlt_daemon_client_send(int sock,
void *data2,
int size2,
int verbose);
-
+/**
+ * Send out message to all client or store message in offline trace.
+ * @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 0 if success, less than 0 if there is an error or buffer is full
+ */
+int dlt_daemon_client_send_message_to_all_client(DltDaemon *daemon,
+ DltDaemonLocal *daemon_local,
+ int verbose);
/**
* Send out response message to dlt client
* @param sock connection handle used for sending response