@@ -271,6 +271,11 @@ typedef struct
271271typedef int (* dlt_injection_callback_id )(uint32_t , void * , uint32_t , void * );
272272typedef int (* dlt_injection_callback )(uint32_t , void * , uint32_t );
273273
274+ typedef union {
275+ int (* with_id )(uint32_t , void * , uint32_t , void * );
276+ int (* without_id )(uint32_t , void * , uint32_t );
277+ } dlt_injection_callback_internal ;
278+
274279/**************************************************************************************************
275280* The following API functions define a low level function interface for DLT
276281**************************************************************************************************/
@@ -851,7 +856,7 @@ DltReturnValue dlt_user_trace_network_segmented(DltContext *handle,
851856 * This function has to be called first, before using any DLT user lib functions.
852857 * @return Value from DltReturnValue enum
853858 */
854- DltReturnValue dlt_init ();
859+ DltReturnValue dlt_init (void );
855860
856861/**
857862 * Initialize the user lib writing only to file.
@@ -874,7 +879,7 @@ DltReturnValue dlt_set_filesize_max(unsigned int filesize);
874879 * This function has to be called when finishing using the DLT user lib.
875880 * @return Value from DltReturnValue enum
876881 */
877- DltReturnValue dlt_free ();
882+ DltReturnValue dlt_free (void );
878883
879884/**
880885 * Check the library version of DLT library.
@@ -989,7 +994,7 @@ DltReturnValue dlt_set_log_mode(DltUserLogMode mode);
989994 * Until then the state is "unknown state".
990995 * @return -1 = unknown state, 0 = client not connected, 1 = client connected
991996 */
992- int dlt_get_log_state ();
997+ int dlt_get_log_state (void );
993998
994999/**
9951000 * Register callback function called when injection message was received
@@ -1207,7 +1212,7 @@ DltReturnValue dlt_log_raw(DltContext *handle, DltLogLevelType loglevel, void *d
12071212 * Write marker message to DLT.
12081213 * @return Value from DltReturnValue enum
12091214 */
1210- DltReturnValue dlt_log_marker ();
1215+ DltReturnValue dlt_log_marker (void );
12111216
12121217/**
12131218 * Get the total size and available size of the shared memory buffer between daemon and applications.
@@ -1241,7 +1246,7 @@ DltReturnValue dlt_user_log_resend_buffer(void);
12411246 * @param loglevel this is the current log level of the log message to be sent
12421247 * @return Value from DltReturnValue enum, DLT_RETURN_TRUE if log level is enabled
12431248 */
1244- inline DltReturnValue dlt_user_is_logLevel_enabled (DltContext * handle , DltLogLevelType loglevel );
1249+ DltReturnValue dlt_user_is_logLevel_enabled (DltContext * handle , DltLogLevelType loglevel );
12451250
12461251
12471252# ifdef DLT_TEST_ENABLE
0 commit comments