summaryrefslogtreecommitdiff
path: root/AudioManagerDaemon/src/CAmDltWrapper.cpp
diff options
context:
space:
mode:
authorchristian mueller <christian.ei.mueller@bmw.de>2012-03-06 20:11:13 +0100
committerchristian mueller <christian.ei.mueller@bmw.de>2012-03-06 20:11:13 +0100
commitf23f9c3ecf40636f176107f6098c308f72fdbd5d (patch)
tree56343b3086da79c629ee58655a7f6886f1f85676 /AudioManagerDaemon/src/CAmDltWrapper.cpp
parente553e5bc869df63d2e8d3fa0c581b3798db9b439 (diff)
downloadaudiomanager-f23f9c3ecf40636f176107f6098c308f72fdbd5d.tar.gz
* removed all documentation to new place
* removed GENIVI copyright from headers * [GDLT-41] changed DLT dependency to 2.5.0
Diffstat (limited to 'AudioManagerDaemon/src/CAmDltWrapper.cpp')
-rw-r--r--AudioManagerDaemon/src/CAmDltWrapper.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/AudioManagerDaemon/src/CAmDltWrapper.cpp b/AudioManagerDaemon/src/CAmDltWrapper.cpp
index 7890e64..6b9e6a5 100644
--- a/AudioManagerDaemon/src/CAmDltWrapper.cpp
+++ b/AudioManagerDaemon/src/CAmDltWrapper.cpp
@@ -1,5 +1,4 @@
/**
- * Copyright (C) 2012, GENIVI Alliance, Inc.
* Copyright (C) 2012, BMW AG
*
* This file is part of GENIVI Project AudioManager.
@@ -25,6 +24,7 @@
#include <string>
#include <sstream>
#include <iostream>
+#include <string.h>
namespace am
{
@@ -46,6 +46,8 @@ void CAmDltWrapper::unregisterContext(DltContext & handle)
{
#ifdef WITH_DLT
dlt_unregister_context(&handle);
+#else
+ (void) handle;
#endif
}
@@ -68,6 +70,9 @@ void CAmDltWrapper::registerApp(const char *appid, const char *description)
dlt_register_app(appid, description);
//register a default context
dlt_register_context(&mDltContext, "def", "default Context registered by DLTWrapper CLass");
+#else
+ (void) appid;
+ (void) description;
#endif
}
@@ -76,8 +81,8 @@ void CAmDltWrapper::registerContext(DltContext& handle, const char *contextid, c
#ifdef WITH_DLT
dlt_register_context(&handle, contextid, description);
#else
+ (void) handle;
memcpy(&mDltContext.contextID,contextid,4);
- strlen(description);
const size_t str_len = strlen(description);
if(str_len < 2000)
{
@@ -89,6 +94,7 @@ void CAmDltWrapper::registerContext(DltContext& handle, const char *contextid, c
void CAmDltWrapper::init(DltLogLevelType loglevel, DltContext* context)
{
+ (void) loglevel;
if (!context)
context = &mDltContext;
#ifdef WITH_DLT