diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/console/dlt-control.c | 2 | ||||
-rw-r--r-- | src/offlinelogstorage/dlt_offline_logstorage.h | 5 | ||||
-rw-r--r-- | src/shared/dlt_user_shared.h | 22 |
3 files changed, 12 insertions, 17 deletions
diff --git a/src/console/dlt-control.c b/src/console/dlt-control.c index b0ecbf1..d1edba9 100644 --- a/src/console/dlt-control.c +++ b/src/console/dlt-control.c @@ -78,7 +78,7 @@ typedef struct { uint32_t service_id; /**< service ID */ uint8_t status; /**< response status */ -} PACKED DltServiceHeader; +} DLT_PACKED DltServiceHeader; DltClient g_dltclient; diff --git a/src/offlinelogstorage/dlt_offline_logstorage.h b/src/offlinelogstorage/dlt_offline_logstorage.h index d9465d2..1f7396d 100644 --- a/src/offlinelogstorage/dlt_offline_logstorage.h +++ b/src/offlinelogstorage/dlt_offline_logstorage.h @@ -210,11 +210,6 @@ typedef struct { int is_opt; /* If configuration is optional or not */ } DltLogstorageGeneralConf; -typedef enum { - DLT_LOGSTORAGE_GENERAL_CONF_BLOCKMODE = 0, - DLT_LOGSTORAGE_GENERAL_CONF_COUNT -} DltLogstorageGeneralConfType; - typedef struct { char *key; /* Configuration key */ int (*func)(DltLogStorageFilterConfig *config, char *value); /* conf handler */ diff --git a/src/shared/dlt_user_shared.h b/src/shared/dlt_user_shared.h index 38c5dbf..5a82cee 100644 --- a/src/shared/dlt_user_shared.h +++ b/src/shared/dlt_user_shared.h @@ -80,7 +80,7 @@ typedef struct { char pattern[DLT_ID_SIZE]; /**< This pattern should be DUH0x01 */ uint32_t message; /**< messsage info */ -} PACKED DltUserHeader; +} DLT_PACKED DltUserHeader; /** * This is the internal message content to exchange control msg register app information between application and daemon. @@ -90,7 +90,7 @@ typedef struct char apid[DLT_ID_SIZE]; /**< application id */ pid_t pid; /**< process id of user application */ uint32_t description_length; /**< length of description */ -} PACKED DltUserControlMsgRegisterApplication; +} DLT_PACKED DltUserControlMsgRegisterApplication; /** * This is the internal message content to exchange control msg unregister app information between application and daemon. @@ -99,7 +99,7 @@ typedef struct { char apid[DLT_ID_SIZE]; /**< application id */ pid_t pid; /**< process id of user application */ -} PACKED DltUserControlMsgUnregisterApplication; +} DLT_PACKED DltUserControlMsgUnregisterApplication; /** * This is the internal message content to exchange control msg register information between application and daemon. @@ -113,7 +113,7 @@ typedef struct int8_t trace_status; /**< trace status */ pid_t pid; /**< process id of user application */ uint32_t description_length; /**< length of description */ -} PACKED DltUserControlMsgRegisterContext; +} DLT_PACKED DltUserControlMsgRegisterContext; /** * This is the internal message content to exchange control msg unregister information between application and daemon. @@ -123,7 +123,7 @@ typedef struct char apid[DLT_ID_SIZE]; /**< application id */ char ctid[DLT_ID_SIZE]; /**< context id */ pid_t pid; /**< process id of user application */ -} PACKED DltUserControlMsgUnregisterContext; +} DLT_PACKED DltUserControlMsgUnregisterContext; /** * This is the internal message content to exchange control msg log level information between application and daemon. @@ -133,7 +133,7 @@ typedef struct uint8_t log_level; /**< log level */ uint8_t trace_status; /**< trace status */ int32_t log_level_pos; /**< offset in management structure on user-application side */ -} PACKED DltUserControlMsgLogLevel; +} DLT_PACKED DltUserControlMsgLogLevel; /** * This is the internal message content to exchange control msg injection information between application and daemon. @@ -143,7 +143,7 @@ typedef struct int32_t log_level_pos; /**< offset in management structure on user-application side */ uint32_t service_id; /**< service id of injection */ uint32_t data_length_inject; /**< length of injection message data field */ -} PACKED DltUserControlMsgInjection; +} DLT_PACKED DltUserControlMsgInjection; /** * This is the internal message content to exchange information about application log level and trace stats between @@ -154,7 +154,7 @@ typedef struct char apid[DLT_ID_SIZE]; /**< application id */ uint8_t log_level; /**< log level */ uint8_t trace_status; /**< trace status */ -} PACKED DltUserControlMsgAppLogLevelTraceStatus; +} DLT_PACKED DltUserControlMsgAppLogLevelTraceStatus; /** * This is the internal message content to set the logging mode: off, external, internal, both. @@ -162,7 +162,7 @@ typedef struct typedef struct { int8_t log_mode; /**< the mode to be used for logging: off, external, internal, both */ -} PACKED DltUserControlMsgLogMode; +} DLT_PACKED DltUserControlMsgLogMode; /** * This is the internal message content to get the logging state: 0 = off, 1 = external client connected. @@ -170,7 +170,7 @@ typedef struct typedef struct { int8_t log_state; /**< the state to be used for logging state: 0 = off, 1 = external client connected */ -} PACKED DltUserControlMsgLogState; +} DLT_PACKED DltUserControlMsgLogState; /** * This is the internal message content to get the number of lost messages reported to the daemon. @@ -179,7 +179,7 @@ typedef struct { uint32_t overflow_counter; /**< counts the number of lost messages */ char apid[4]; /**< application which lost messages */ -} PACKED DltUserControlMsgBufferOverflow; +} DLT_PACKED DltUserControlMsgBufferOverflow; /************************************************************************************************** * The folowing functions are used shared between the user lib and the daemon implementation |