diff options
author | Christoph Lipka <clipka@jp.adit-jv.com> | 2015-11-18 19:19:22 +0900 |
---|---|---|
committer | Lutz Helwing <lutz_helwing@mentor.com> | 2015-11-24 09:48:41 +0100 |
commit | da4ac57d87108d8b2690979c273c000a798a59f5 (patch) | |
tree | 45f79c0c90d3b4c9a6804d6794da5485a5f05ed3 /src/daemon/dlt_daemon_connection_types.h | |
parent | 188772ea0b3479352ae93552014d45fd1bc8e804 (diff) | |
download | DLT-daemon-da4ac57d87108d8b2690979c273c000a798a59f5.tar.gz |
Unix socket control interface
Control applications running in the same Linux OS should be able to communicate
with the DLT Daemon via a socket connection.
To be able to do that, the DLT Client library need to be extended. DLT
Clients connected via this UNIX socket are not handled as normal DLT
Clients and no log messages will be forwarded to them. This avoids
problems in situations when a control application is connected to the
DLT Daemon before any other 'real' DLT Client (e.g. DLT Viewer) is
connected. In this situations, all already stored log messages are
flushed to the control application and therefore lost, because the
control application most likely ignore all incoming messages besides the
one in which it is interested in.
Signed-off-by: Christoph Lipka <clipka@jp.adit-jv.com>
Diffstat (limited to 'src/daemon/dlt_daemon_connection_types.h')
-rw-r--r-- | src/daemon/dlt_daemon_connection_types.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/daemon/dlt_daemon_connection_types.h b/src/daemon/dlt_daemon_connection_types.h index 4f4bb1c..c35b43e 100644 --- a/src/daemon/dlt_daemon_connection_types.h +++ b/src/daemon/dlt_daemon_connection_types.h @@ -39,6 +39,8 @@ typedef enum { DLT_CONNECTION_ONE_S_TIMER, DLT_CONNECTION_SIXTY_S_TIMER, DLT_CONNECTION_SYSTEMD_TIMER, + DLT_CONNECTION_CONTROL_CONNECT, + DLT_CONNECTION_CONTROL_MSG, DLT_CONNECTION_TYPE_MAX } DltConnectionType; @@ -49,6 +51,8 @@ typedef enum { #define DLT_CON_MASK_ONE_S_TIMER (1 << DLT_CONNECTION_ONE_S_TIMER) #define DLT_CON_MASK_SIXTY_S_TIMER (1 << DLT_CONNECTION_SIXTY_S_TIMER) #define DLT_CON_MASK_SYSTEMD_TIMER (1 << DLT_CONNECTION_SYSTEMD_TIMER) +#define DLT_CON_MASK_CONTROL_CONNECT (1 << DLT_CONNECTION_CONTROL_CONNECT) +#define DLT_CON_MASK_CONTROL_MSG (1 << DLT_CONNECTION_CONTROL_MSG) #define DLT_CON_MASK_ALL (0xff) /* TODO: squash the DltReceiver structure in there |