summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2011-10-12 13:51:03 +0200
committerAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2011-10-12 13:51:03 +0200
commit3272e8e16749b58d13e72e9a3fcadab16550ea71 (patch)
tree402caed8cabaffb667d8b51f6c145fca21c3c23d /include
parent98280f75c07d574a2776558c4fec2797c2b21450 (diff)
downloadDLT-daemon-3272e8e16749b58d13e72e9a3fcadab16550ea71.tar.gz
Implemented new DLT user library function dlt_get_log_state.
Diffstat (limited to 'include')
-rwxr-xr-xinclude/dlt/dlt_user.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/dlt/dlt_user.h b/include/dlt/dlt_user.h
index 6f64255..6fb95a3 100755
--- a/include/dlt/dlt_user.h
+++ b/include/dlt/dlt_user.h
@@ -238,6 +238,8 @@ typedef struct
int8_t enable_local_print; /**< Local printing of log messages: 1 enabled, 0 disabled */
int8_t local_print_mode; /**< Local print mode, controlled by environment variable */
+ int8_t log_state; /**< Log state of external connection: 1 client connected, 0 not connected, -1 unknown */
+
DltShm dlt_shm;
} DltUser;
@@ -446,6 +448,16 @@ int dlt_unregister_context(DltContext *handle);
int dlt_set_log_mode(DltUserLogMode mode);
/**
+ * Get the state of the connected client to the daemon.
+ * The user application gets a message, when client is connected or disconnected.
+ * This value contains the last state.
+ * It needs some time until the application gets state from the daemon.
+ * Until then the state is "unknown state".
+ * @return -1 = unknown state, 0 = client not connected, 1 = client connected
+ */
+int dlt_get_log_state();
+
+/**
* Register callback function called when injection message was received
* @param handle pointer to an object containing information about one special logging context
* @param service_id the service id to be waited for