summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
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