summaryrefslogtreecommitdiff
path: root/PluginCommandInterfaceCAPI/src/CAmCommandSenderCommon.cpp
diff options
context:
space:
mode:
authorJens Lorenz <jlorenz@de.adit-jv.com>2014-06-11 18:14:58 +0200
committerChristian Linke <christian.linke@bmw.de>2014-06-23 14:05:37 +0200
commit20491c0f31d70e254c56f171c69b95f3d4ad2813 (patch)
tree5409ce980ecf4285a21cf0f1b38ba19dafe3129a /PluginCommandInterfaceCAPI/src/CAmCommandSenderCommon.cpp
parentb0bc6ede2d23dde9a177483aa9470871422fe9aa (diff)
downloadaudiomanager-20491c0f31d70e254c56f171c69b95f3d4ad2813.tar.gz
* Bug #100 - removed projecttypes.h which causes compiling conflicts5.1
Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
Diffstat (limited to 'PluginCommandInterfaceCAPI/src/CAmCommandSenderCommon.cpp')
-rw-r--r--PluginCommandInterfaceCAPI/src/CAmCommandSenderCommon.cpp39
1 files changed, 5 insertions, 34 deletions
diff --git a/PluginCommandInterfaceCAPI/src/CAmCommandSenderCommon.cpp b/PluginCommandInterfaceCAPI/src/CAmCommandSenderCommon.cpp
index 58816ce..06383ad 100644
--- a/PluginCommandInterfaceCAPI/src/CAmCommandSenderCommon.cpp
+++ b/PluginCommandInterfaceCAPI/src/CAmCommandSenderCommon.cpp
@@ -21,34 +21,24 @@
/**
* Utility functions
*/
-void CAmConvertAvailablility(const am_Availability_s & amAavailability, org::genivi::am::am_Availability_s & result)
+void CAmConvertAvailablility(const am_Availability_s & amAvailability, org::genivi::am::am_Availability_s & result)
{
- result.availability = CAmConvert2CAPIType(amAavailability.availability);
- result.availabilityReason = CAmConvert2CAPIType(amAavailability.availabilityReason);
+ result.availability = CAmConvert2CAPIType(amAvailability.availability);
+ result.availabilityReason = amAvailability.availabilityReason;
}
void CAmConvertMainSoundProperty(const am_MainSoundProperty_s & amMainSoundProperty, org::genivi::am::am_MainSoundProperty_s & result)
{
- result.type = CAmConvert2CAPIType(amMainSoundProperty.type);
+ result.type = amMainSoundProperty.type;
result.value = amMainSoundProperty.value;
}
void CAmConvertSystemProperty(const am_SystemProperty_s & amSystemProperty, org::genivi::am::am_SystemProperty_s & result)
{
- result.type = CAmConvert2CAPIType(amSystemProperty.type);
+ result.type = amSystemProperty.type;
result.value = amSystemProperty.value;
}
-org::genivi::am::am_ClassProperty_pe CAmConvert2CAPIType(const am_ClassProperty_e & property)
-{
- return static_cast<org::genivi::am::am_ClassProperty_pe>(property);
-}
-
-org::genivi::am::am_SystemPropertyType_pe CAmConvert2CAPIType(const am_SystemPropertyType_e & property)
-{
- return static_cast<org::genivi::am::am_SystemPropertyType_pe>(property);
-}
-
org::genivi::am::am_Availability_e CAmConvert2CAPIType(const am_Availability_e & availability)
{
return (A_MAX==availability)?org::genivi::am::am_Availability_e::A_MAX
@@ -56,11 +46,6 @@ org::genivi::am::am_Availability_e CAmConvert2CAPIType(const am_Availability_e &
static_cast<org::genivi::am::am_Availability_e>(availability);
}
-org::genivi::am::am_AvailabilityReason_pe CAmConvert2CAPIType(const am_AvailabilityReason_e & availabilityReason)
-{
- return static_cast<org::genivi::am::am_AvailabilityReason_pe>(availabilityReason);
-}
-
org::genivi::am::am_MuteState_e CAmConvert2CAPIType(const am_MuteState_e & muteState)
{
return MS_MAX==muteState?
@@ -75,15 +60,6 @@ am_MuteState_e CAmConvertFromCAPIType(const org::genivi::am::am_MuteState_e & mu
MS_MAX:static_cast<am_MuteState_e>(muteState);
}
-org::genivi::am::am_MainSoundPropertyType_pe CAmConvert2CAPIType(const am_MainSoundPropertyType_e & type)
-{
- return static_cast<org::genivi::am::am_MainSoundPropertyType_pe>(type);
-}
-am_MainSoundPropertyType_e CAmConvertFromCAPIType(const org::genivi::am::am_MainSoundPropertyType_pe & type)
-{
- return static_cast<am_MainSoundPropertyType_e>(type);
-}
-
org::genivi::am::am_ConnectionState_e CAmConvert2CAPIType(const am_ConnectionState_e & connectionState)
{
return CS_MAX==connectionState?
@@ -97,11 +73,6 @@ am_ConnectionState_e CAmConvertFromCAPIType(const org::genivi::am::am_Connection
CS_MAX:static_cast<am_ConnectionState_e>(connectionState);
}
-org::genivi::am::am_NotificationType_pe CAmConvert2CAPIType(const am_NotificationType_e & notificationType)
-{
- return static_cast<org::genivi::am::am_NotificationType_pe>(notificationType);
-}
-
org::genivi::am::am_NotificationStatus_e CAmConvert2CAPIType(const am_NotificationStatus_e & notificationStatus)
{
return NS_MAX==notificationStatus?