diff options
author | Alexander Wenzel <Alexander.AW.Wenzel@bmw.de> | 2013-12-02 09:02:28 +0100 |
---|---|---|
committer | Alexander Wenzel <Alexander.AW.Wenzel@bmw.de> | 2014-01-10 07:15:47 +0100 |
commit | e387e0d12020f7159dc2b3c53e24dc6bb58de4b9 (patch) | |
tree | 75695e8c05d078816c00970e67a7c1cd8f025407 /include | |
parent | 67c51523071c338b9d800d47683a9a3417348508 (diff) | |
download | DLT-daemon-e387e0d12020f7159dc2b3c53e24dc6bb58de4b9.tar.gz |
Added conntection info and unregister context control messages.
Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
Diffstat (limited to 'include')
-rwxr-xr-x | include/dlt/dlt_common.h | 23 | ||||
-rwxr-xr-x | include/dlt/dlt_protocol.h | 8 |
2 files changed, 31 insertions, 0 deletions
diff --git a/include/dlt/dlt_common.h b/include/dlt/dlt_common.h index b0b62eb..7f205c9 100755 --- a/include/dlt/dlt_common.h +++ b/include/dlt/dlt_common.h @@ -490,6 +490,29 @@ typedef struct } PACKED DltServiceGetSoftwareVersionResponse; /** + * The structure of the DLT Service Unregister Context. + */ +typedef struct +{ + uint32_t service_id; /**< service ID */ + uint8_t status; /**< reponse status */ + char apid[DLT_ID_SIZE]; /**< application id */ + char ctid[DLT_ID_SIZE]; /**< context id */ + char comid[DLT_ID_SIZE]; /**< communication interface */ +} PACKED DltServiceUnregisterContext; + +/** + * The structure of the DLT Service Connection Info + */ +typedef struct +{ + uint32_t service_id; /**< service ID */ + uint8_t status; /**< reponse status */ + uint8_t state; /**< new state */ + char comid[DLT_ID_SIZE]; /**< communication interface */ +} PACKED DltServiceConnectionInfo; + +/** * Structure to store filter parameters. * ID are maximal four characters. Unused values are filled with zeros. * If every value as filter is valid, the id should be empty by having only zero values. diff --git a/include/dlt/dlt_protocol.h b/include/dlt/dlt_protocol.h index c2e91d7..7e941fe 100755 --- a/include/dlt/dlt_protocol.h +++ b/include/dlt/dlt_protocol.h @@ -187,6 +187,8 @@ #define DLT_SERVICE_ID_SET_DEFAULT_TRACE_STATUS 0x12 /**< Service ID: Set default trace status */
#define DLT_SERVICE_ID_GET_SOFTWARE_VERSION 0x13 /**< Service ID: Get software version */
#define DLT_SERVICE_ID_MESSAGE_BUFFER_OVERFLOW 0x14 /**< Service ID: Message buffer overflow */
+#define DLT_SERVICE_ID_UNREGISTER_CONTEXT 0xf01 /**< Service ID: Message unregister context */
+#define DLT_SERVICE_ID_CONNECTION_INFO 0xf02 /**< Service ID: Message connection info */
#define DLT_SERVICE_ID_CALLSW_CINJECTION 0xFFF /**< Service ID: Message Injection (minimal ID) */
/*
@@ -196,6 +198,12 @@ #define DLT_SERVICE_RESPONSE_NOT_SUPPORTED 0x01 /**< Control message response: Not supported */
#define DLT_SERVICE_RESPONSE_ERROR 0x02 /**< Control message response: Error */
+/*
+ * Definitions of DLT service connection state
+ */
+#define DLT_CONNECTION_STATUS_DISCONNECTED 0x01 /**< Client is disconnected */
+#define DLT_CONNECTION_STATUS_CONNECTED 0x02 /**< Client is connected */
+
/**
\}
*/
|