From 244c56f9ba0c412b20d2bd9590ae6d07a799cbc9 Mon Sep 17 00:00:00 2001 From: Alexander Wenzel Date: Wed, 24 Jul 2013 11:26:21 +0200 Subject: Bug 84 - Adding utf8 support to dlt-daemon, dlt-viewer. Modified patch, originally provided by Stefan Vacek. Signed-off-by: Alexander Wenzel --- include/dlt/dlt_user.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/dlt/dlt_user.h') diff --git a/include/dlt/dlt_user.h b/include/dlt/dlt_user.h index 0523da2..b548707 100644 --- a/include/dlt/dlt_user.h +++ b/include/dlt/dlt_user.h @@ -345,6 +345,16 @@ int dlt_user_log_write_int64(DltContextData *log, int64_t data); */ int dlt_user_log_write_string( DltContextData *log, const char *text); + /** + * Write a null terminated UTF8 string into a DLT log message. + * dlt_user_log_write_start has to be called before adding any attributes to the log message. + * Finish sending log message by calling dlt_user_log_write_finish. + * @param log pointer to an object containing information about logging context data + * @param text pointer to the parameter written into log message containing null termination. + * @return negative value if there was an error + */ +int dlt_user_log_write_utf8_string(DltContextData *log, const char *text); + /** * Write a binary memory block into a DLT log message. * dlt_user_log_write_start has to be called before adding any attributes to the log message. -- cgit v1.2.1