summaryrefslogtreecommitdiff
path: root/src/daemon/dlt_daemon_connection_types.h
diff options
context:
space:
mode:
authorFrederic Berat <fberat@de.adit-jv.com>2015-12-01 11:13:12 +0100
committerGernot Wirschal <gernot.wirschal@bmw.de>2016-04-28 13:17:43 +0200
commita9a43701138c99b3211ded8d388666161f7cde67 (patch)
tree4d63ee965a87395b470c624033a08e2856526522 /src/daemon/dlt_daemon_connection_types.h
parent3563d0c799fb24153dfa8ed3f425deb24d56274a (diff)
downloadDLT-daemon-a9a43701138c99b3211ded8d388666161f7cde67.tar.gz
dlt-daemon: receiver rework
The receiver structures have been removed from the dlt-daemon structure, they are now part of the connection. The overall usage of the receiver structrure has also been reviewed in the daemon. Signed-off-by: Frederic Berat <fberat@de.adit-jv.com> Change-Id: I7cf80d79ed73bd6d4f370bb3f278d26ccc9d8d7a
Diffstat (limited to 'src/daemon/dlt_daemon_connection_types.h')
-rw-r--r--src/daemon/dlt_daemon_connection_types.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/daemon/dlt_daemon_connection_types.h b/src/daemon/dlt_daemon_connection_types.h
index 5edb875..353889c 100644
--- a/src/daemon/dlt_daemon_connection_types.h
+++ b/src/daemon/dlt_daemon_connection_types.h
@@ -32,6 +32,14 @@
#include "dlt_common.h"
typedef enum {
+ UNDEFINED, /* Undefined status */
+ INACTIVE, /* Connection is inactive, excluded from epoll handling */
+ ACTIVE, /* Connection is actively handled by epoll */
+ DEACTIVATE,/* Request for deactivation of the connection */
+ ACTIVATE /* Request for activation of the connection */
+} DltConnectionStatus;
+
+typedef enum {
DLT_CONNECTION_CLIENT_CONNECT = 0,
DLT_CONNECTION_CLIENT_MSG_TCP,
DLT_CONNECTION_CLIENT_MSG_SERIAL,
@@ -63,9 +71,9 @@ typedef enum {
* and remove any other duplicates of FDs
*/
typedef struct DltConnection {
- int fd; /**< File descriptor */
+ DltReceiver *receiver; /**< Receiver structure for this connection */
DltConnectionType type; /**< Represents what type of handle is this (like FIFO, serial, client, server) */
- DltReceiver *receiver; /**< Pointer to the affected receiver structure */
+ DltConnectionStatus status; /**< Status of connection */
struct DltConnection *next; /**< For multiple client connection using linked list */
} DltConnection;