summaryrefslogtreecommitdiff
path: root/AudioManagerCore
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #48 from GENIVI/LoggingArchitectureMartin Koch2020-02-1014-21/+23
|\ | | | | AM-Utils: Introduce new logging architecture, providing a common DLT-independant wrapper for the 3 logging channels (DLT, file and stdout)
| * AM: Reorganize daemon, core, utilities and tests to make use of the new ↵Martin Koch2020-01-1414-21/+23
| | | | | | | | | | | | | | | | | | | | | | | | logging architecture. - Known side-effect: CAmSerializer.h and TAmPluginTemplate.h no longer indirectly include dlt_user.h. Thus macros like DLT_DECLARE_CONTEXT and DLT_IMPORT_CONTEXT may be undefined in application code unless CAmDltWrapper.h or dlt_user.h is included explicitly. - Since the DLT functionality is now encapsulated inside a dedicated class, such declaration is usually superfluous and can be dropped. Signed-off-by: Martin Koch <mkoch@de.adit-jv.com>
* | AM: add plural form of setSystemProperties for global configuration ↵Martin Koch2020-01-1715-0/+65
| | | | | | | | | | | | | | | | | | | | | | | | attributes to command and control interface - implement plural form of requests and acknowledgments in core - provide empty default implementations in interfaces to ensure backward compatibility with older plugins - accommodate extension in module tests Main purpose of this extension is to allow for one-shot (uninterrupted), consistent change of multiple, possibly interrelated configuration attributes. Signed-off-by: Martin Koch <mkoch@de.adit-jv.com>
* | AM: add plural form of set...SoundProperties for sources and sinks to ↵Martin Koch2020-01-1715-0/+151
|/ | | | | | | | | | | | | command and control interface - implement plural form of requests and acknowledgments in core - provide empty default implementations in interfaces to ensure backward compatibility with older plugins - accommodate extensions in module tests - leave existing singular form untouched Main purpose of this extension is to allow for one-shot (uninterrupted), consistent change of multiple, possibly interrelated sound properties. Signed-off-by: Martin Koch <mkoch@de.adit-jv.com>
* AM database: correct implementation of ↵Martin Koch2019-10-171-3/+3
| | | | CAmDatabaseHandlerMap::removeMainConnectionDB()
* AM-Test: drop accidentally pushed backup file: ↵Martin Koch2019-10-161-48/+0
| | | | AudioManagerCore/test/AmRoutingInterfaceTest/CMakeLists.txt~
* Notifying observers of sound properties only by value changes.genivi_impJacqueline Molz2018-08-222-275/+341
| | | | | | | | | Fix infinite loop in CAmDltWrapper by logging out enum values exceeding the boundaries. Minor changes: Pull request 36 changed implementation to database macros (review comments) added option "WITH_DATABASE_CHANGE_CHECK" to audiomanagerconfig.h.in whitespace cleanup in test/AmMapHandlerTest/CAmMapHandlerTest.cpp additional cast to uint in DB_UPDATE call in function removeMainConnectionDB to solve error in macro expansion
* FOO: Issue #26 fix white space issues and apply new coding styleJens Lorenz2018-07-0320-5654/+6210
| | | | Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
* codestyle: Remove empty single line c++ comments in ctor initializersJens Lorenz2018-06-208-80/+80
| | | | Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
* AMCore: Rework of preprocessor defines to improve readabilityJens Lorenz2018-06-204-102/+57
| | | | Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
* AMCore: Test: Initialize file descriptors of pipe with '-1' in ctorJens Lorenz2018-04-231-1/+2
| | | | Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
* AMCore: remodel ctor Sender in Command and RoutingGuerra Mattia2017-09-294-224/+238
| | | | | | | | | Moving plugin opening to a separate function, this gets rid of a memory writer behavior on ARM64 platforms, otherwise leading to a this pointer of lambda functions severely corrupted (only when compiling optimizations are enabled). Signed-off-by: Guerra Mattia <mguerra@de.adit-jv.com>
* AMUtil: Fix for destroy controller on rundownJens Lorenz2017-09-291-11/+14
| | | | | | | | | On rundown the controller will be unloaded. In case the controller wasn't loaded successfully or the controller doesn't implement the destroy function the rundown of AudioManager crashed. Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
* CMake: Use GNUInstalDirs destinationsGuerra Mattia2017-09-291-1/+1
| | | | | | | | Replace hardcoded "lib" with ${CMAKE_INSTALL_LIBDIR} to provide multilib support. Signed-off-by: Frederik Sdun <frederik_sdun@mentor.com> Signed-off-by: Mikhail Durnev <mikhail_durnev@mentor.com>
* AM: Destroy plugin implementation.Kapildev Patel2017-09-293-94/+14
| | | | | | | With these changes AudioManager would call destroy function of the controller plugin at the time of shutdown. Signed-off-by: Kapildev Patel <kpatel@jp.adit-jv.com>
* The primary signals SIGINT and SIGQUIT are handled on top level inAleksandar Donchev2017-07-106-1/+6
| | | | | | | | | contrast to secondary signals SIGHUP, SIGTERM, SIGCHLD, which are handled in the SocketHandler. Signed-off-by: Christian Linke <christian.linke@bmw.de> Change-Id: I8c5d3c436ac9fcd61c76a26145c731b427cab1e6
* Two versions of CAmSerializer due to interface changes.Aleksandar Donchev2017-05-021-1/+1
| | | | | Signed-off-by: Christian Linke <christian.linke@bmw.de> Change-Id: I8c5d2b436ac9fcd61c76a21145c731f327cab1e2
* Signal handling via main loop with signalfd.Aleksandar Donchev2017-05-022-2/+3
| | | | | Signed-off-by: Christian Linke <christian.linke@bmw.de> Change-Id: I8c4c2c436ac9fcd61c76a21145c731f327cab0c1
* The database observer reverse pointer to the handler is initialized in ↵Aleksandar Donchev2017-05-021-9/+7
| | | | | | | registerObserver. Signed-off-by: Christian Linke <christian.linke@bmw.de> Change-Id: I5a1c23436ac9bcc37c76a12245c731f327cab0d4
* CAmSerializer interface extended to support std::function. Aleksandar Donchev2017-05-021-21/+23
| | | | | Signed-off-by: Christian Linke <christian.linke@bmw.de> Change-Id: I8b4c2c436ac9fbc37c76a21145c731f327cab0e4
* AMCore: Fix connection state notification on remove connectionJens Lorenz2017-04-111-4/+7
| | | | | | | The CS_DISCONNECTED was notified even in case WITH_DATABASE_CHANGE_CHECK flag was activated and the main connection was already disconnected by controller. Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
* AMCore: Start dynamic resources range from DYNAMIC_ID_BOUNDARYJens Lorenz2017-04-111-7/+7
| | | | | | | Currently the DYNAMIC_ID_BOUNDARY value is not part of static nor dynamic section. Every element like a source which is registered with this value is not addressable. Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
* AMCore: Fix parameter names of increaseID & getNextConnectionIDJens Lorenz2017-04-112-20/+19
| | | | | | The functions are used in a generic way which should be covered by the parameter names. Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
* * if needed the routing graph will be re-created from getRoute after aRouter_adaptionsAleksandar Donchev2017-02-205-2760/+2846
| | | | | database change has been observed. Signed-off-by: Christian Linke <christian.linke@bmw.de>
* handle overflow of handles correctlyChristian Linke2017-02-202-9/+121
| | | Signed-off-by: Christian Linke <christian.linke@bmw.de>
* * many database observers can be registred now by the database handler.Aleksandar Donchev2017-02-2026-875/+948
| | | Signed-off-by: Christian Linke <christian.linke@bmw.de>
* * CAmRouterTest adoptions.Aleksandar Donchev2017-02-203-18/+17
| | | | Signed-off-by: Christian Linke <christian.linke@bmw.de>
* * Max count of the returned routes tweaked up.Aleksandar Donchev2017-02-203-55/+57
| | | | Signed-off-by: Christian Linke <christian.linke@bmw.de>
* * Max count of the returned routes and max allowed domain cyclesAleksandar Donchev2017-02-205-377/+723
| | | | Signed-off-by: Christian Linke <christian.linke@bmw.de>
* Return all routes with all possible connection formatsChristian Linke2017-02-203-118/+200
| | | | | | | Removed obsolete sqlite interface handling Signed-off-by: Christian Linke <christian.linke@bmw.de> Change-Id: I380f6d4ce1dab2efa47620164e72a30fa144afdd
* AMCore: Fix deamon to update interrupt state of source.Jens Lorenz2016-11-256-1/+58
| | | | Signed-off-by: Toshiaki Isogai <tisogai@jp.adit-jv.com>
* AudioManagerUtilities: use LINK_DIRECTORIESMathieu Duponchelle2016-11-142-0/+8
| | | | | | | | | | | | The -L flags were not retrieved from pkg_check_modules, except for automotive-dlt, where LDFLAGS was added to the LIBS variable, which was then passed to TARGET_LINK_LIBRARIES. This led to compile-time errors when compiling in a custom prefix. We also propagate the LIB_DIRECTORIES and use them in AmControlInterfaceTest and AudioManagerDaemon.
* logging beautifyingChristian as GENIVI Maintainer2016-10-186-270/+281
| | | Signed-off-by: Christian as GENIVI Maintainer <genivi-maint-audiomanager@genivi.org>
* remove telnet server from AudiomanagerChristian as GENIVI Maintainer2016-10-1810-2368/+1
| | | Signed-off-by: Christian as GENIVI Maintainer <genivi-maint-audiomanager@genivi.org>
* Change error in databasehandler into warningChristian as GENIVI Maintainer2016-09-281-2/+2
| | | Signed-off-by: Christian as GENIVI Maintainer <genivi-maint-audiomanager@genivi.org>
* wrong error messageChristian Linke2016-09-021-2/+2
|
* some test fixesChristian Linke2016-08-302-65/+1
| | | | Change-Id: I22ea9682756dd36f6442241951ec6678f3c3f7ae
* Improved the changes. Cleared wrongly issued errors.Christian Linke2016-08-304-18/+39
| | | Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
* Changed error to warning in database if data is receivedChristian Linke2016-07-291-31/+31
| | | Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
* some updates of the fixChristian Linke2016-06-219-118/+119
| | | Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
* cleanup routing interface to add clean abort and resend possibilities7.5Christian Linke2016-06-1711-694/+1129
| | | Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
* Fix enter gateway issueChristian Linke2016-05-202-24/+1
| | | Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
* close pipes after useChristian Linke2016-05-171-0/+2
| | | | | Signed-off-by: Christian Linke <Christian.Linke@bmw.de> Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
* switch off std::out route informationChristian Linke2016-04-271-2/+1
| | | | | destroy pipe in destructor of CAmSerializer. Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
* remove parallel installations of the Audiomanager packagesChristian Linke2016-04-261-1/+1
| | | Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
* fix exitsSourcebug for databasehandler.Christian Linke2016-04-131-1/+1
| | | Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
* audiomanager: Use proper cmake path to install cmake and pkg-config filesHelio Chissini de Castro2016-04-111-12/+12
| | | | | Change-Id: I9a16f88ee3c27425904fc5aa0e2924e0af5df8a2 Signed-off-by: Helio Chissini de Castro <Helio.Chissini-de-Castro@bmw.de>
* Remove assert from database and replace by error handlingChristian Linke2016-04-1113-293/+1000
| | | Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
* some cleanupChristian Linke2016-03-099-154/+12
| | | | Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
* fixed pc filesChristian Linke2016-02-221-1/+1
|