summaryrefslogtreecommitdiff
path: root/src/lib/dlt_user.c
diff options
context:
space:
mode:
authorMartin Willers <M.Willers@gmx.net>2021-05-31 07:45:48 +0200
committerGitHub <noreply@github.com>2021-05-31 14:45:48 +0900
commit3bb7eb24092ff771ccfd1119f8c1088f3f78f981 (patch)
tree58ef9ed71736b72f929eaa508c088184654e4701 /src/lib/dlt_user.c
parentd40ecef57050a48ca2abf9c307793d183972658e (diff)
downloadDLT-daemon-3bb7eb24092ff771ccfd1119f8c1088f3f78f981.tar.gz
Add missing string functions (#309)
Signed-off-by: Martin Willers <M.Willers@gmx.net>
Diffstat (limited to 'src/lib/dlt_user.c')
-rw-r--r--src/lib/dlt_user.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/lib/dlt_user.c b/src/lib/dlt_user.c
index 98c896e..20392a6 100644
--- a/src/lib/dlt_user.c
+++ b/src/lib/dlt_user.c
@@ -2367,6 +2367,30 @@ DltReturnValue dlt_user_log_write_sized_utf8_string_attr(DltContextData *log, co
return dlt_user_log_write_sized_string_utils_attr(log, text, length, UTF8_STRING, name, true);
}
+DltReturnValue dlt_user_log_write_constant_utf8_string(DltContextData *log, const char *text)
+{
+ /* Send parameter only in verbose mode */
+ return is_verbose_mode(dlt_user.verbose_mode, log) ? dlt_user_log_write_utf8_string(log, text) : DLT_RETURN_OK;
+}
+
+DltReturnValue dlt_user_log_write_constant_utf8_string_attr(DltContextData *log, const char *text, const char *name)
+{
+ /* Send parameter only in verbose mode */
+ return is_verbose_mode(dlt_user.verbose_mode, log) ? dlt_user_log_write_utf8_string_attr(log, text, name) : DLT_RETURN_OK;
+}
+
+DltReturnValue dlt_user_log_write_sized_constant_utf8_string(DltContextData *log, const char *text, uint16_t length)
+{
+ /* Send parameter only in verbose mode */
+ return is_verbose_mode(dlt_user.verbose_mode, log) ? dlt_user_log_write_sized_utf8_string(log, text, length) : DLT_RETURN_OK;
+}
+
+DltReturnValue dlt_user_log_write_sized_constant_utf8_string_attr(DltContextData *log, const char *text, uint16_t length, const char *name)
+{
+ /* Send parameter only in verbose mode */
+ return is_verbose_mode(dlt_user.verbose_mode, log) ? dlt_user_log_write_sized_utf8_string_attr(log, text, length, name) : DLT_RETURN_OK;
+}
+
static DltReturnValue dlt_user_log_write_sized_string_utils_attr(DltContextData *log, const char *text, uint16_t length, const enum StringType type, const char *name, bool with_var_info)
{
if ((log == NULL) || (text == NULL))