summaryrefslogtreecommitdiff
path: root/AudioManagerUtilities
Commit message (Collapse)AuthorAgeFilesLines
* Cmake parameters for real-time scheduler's priority and policy and throw ↵Aleksandar Donchev2017-12-044-55/+97
| | | | | | | | runtime error if read fails. Signed-off-by: Christian Linke <christian.linke@bmw.de> Change-Id: I6a7a2c424bc8fac62c76a66545a231c518edb2e1
* FIx for CAPI timeouts and support for more than one CAPI watchAleksandar Donchev2017-11-062-116/+198
| | | | | Signed-off-by: Christian Linke <christian.linke@bmw.de> Change-Id: I9a9d2c424bc8fac62c76a66545a531c518edb2e3
* Real time scheduler added, capi wrapper timeout return value considered in ↵Aleksandar Donchev2017-11-064-67/+82
| | | | | | | registerTimeout, only requested revent passed from within the camsockethandler instead of all Signed-off-by: Christian Linke <christian.linke@bmw.de> Change-Id: I2d9d2c424ac3fac62c76a66545a531c518edb2e8
* * All methods in CAPI wrapper with connectionID parameter are deprecated ↵Aleksandar Donchev2017-11-064-121/+119
| | | | | | | | | | | because CommonAPI creates new filedescriptor per connection which isn't needed. * revents flag is passed to the CommonAPI watcher instead events * revents set to 0 in Sockethandler Signed-off-by: Christian Linke <christian.linke@bmw.de> Change-Id: I9d9d2c424ac9fad62c76a66545c731c518adb2e4
* Runtime check for calls to the sockethandler from other threadsAleksandar Donchev2017-11-063-56/+99
| | | | | | Signed-off-by: Christian Linke <christian.linke@bmw.de> Change-Id: I9d9d3c424ac9fad62c76a76545c731b518bdb1e2
* A filedescriptor removal will set an invalidation flag which will prevent ↵Aleksandar Donchev2017-11-063-28/+50
| | | | | | | | calls on the invalidated objects in the current iteration. Signed-off-by: Christian Linke <christian.linke@bmw.de> Change-Id: I9d5d3c434ac9fad62c76a76145c731b538aeb1e3
* Timer fd is closed at the beginning of the next iteration + some unit tests. ↵Aleksandar Donchev2017-11-065-44/+378
| | | | | | Signed-off-by: Christian Linke <christian.linke@bmw.de> Change-Id: I8c5d3c436ac9fad62c76a26145c731b538abb1e7
* The primary signals SIGINT and SIGQUIT are handled on top level inAleksandar Donchev2017-07-106-1245/+1293
| | | | | | | | | 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
* Fix for bug in CAmSocketHandler causing invalid pointers and crash.Aleksandar Donchev2017-05-024-62/+124
| | | | | Signed-off-by: Christian Linke <christian.linke@bmw.de> Change-Id: I8d3d2b436ac9fcd61c73a28145a731f327cab1e2
* Two versions of CAmSerializer due to interface changes.Aleksandar Donchev2017-05-022-548/+1211
| | | | | Signed-off-by: Christian Linke <christian.linke@bmw.de> Change-Id: I8c5d2b436ac9fcd61c76a21145c731f327cab1e2
* Signal handling via main loop with signalfd.Aleksandar Donchev2017-05-024-96/+426
| | | | | Signed-off-by: Christian Linke <christian.linke@bmw.de> Change-Id: I8c4c2c436ac9fcd61c76a21145c731f327cab0c1
* CAmSerializer interface extended to support std::function. Aleksandar Donchev2017-05-029-978/+1030
| | | | | Signed-off-by: Christian Linke <christian.linke@bmw.de> Change-Id: I8b4c2c436ac9fbc37c76a21145c731f327cab0e4
* CAmSocketHandler - usage of std::function instead of function pointers,Aleksandar Donchev2017-05-024-386/+640
| | | | | | | code cleanup and minior optimizations. Signed-off-by: Christian Linke <christian.linke@bmw.de> Change-Id: I8c2c2c436ac9abc37c76a12245c731f327cab0e5
* Linux specific TIMERFD implementation as alternative timer mechanismAleksandar Donchev2017-05-022-860/+1126
| | | | Signed-off-by: Christian Linke <christian.linke@bmw.de>
* AMUtil: Fix nullptr exception in DLT singletonJens Lorenz2017-04-111-0/+9
| | | | | | | | | | | Application might use libraries which are using CAmDltWrapper class. The singleton implementation requires an instanctiateOnce() initialization but if the application is not aware of this AudioManager utility a nullptr exception occurs on standard instance() calls. instance() checks now if the singleton exists and initializes the singleton and registers a fallback application towards DLT on demand. Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
* AMUtil: Only add active DBus watch FDs to socket handlerJens Lorenz2017-04-111-9/+9
| | | | Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
* fix proper log level checkingChristian Linke2017-02-201-1/+1
| | | Signed-off-by: Christian Linke <christian.linke@bmw.de>
* AMUtil: Enhancement of check log level support for DLT.Jens Lorenz2017-02-152-13/+4
| | | | | | | The DLT version determination works in AudioManager repository. Other libraries including header only don't know the respective version. Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
* AMUtil: Check log level support of DLT added.Jens Lorenz2016-12-082-0/+22
| | | | Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
* Utility: Serializer::dtor must also remove the fd from list to prevent crash.Jens Lorenz2016-11-141-6/+10
| | | | Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
* Utility: DBUS library supports applications bindings which do not need to ↵Jens Lorenz2016-11-141-0/+6
| | | | | | new register a connection object. This allows to attach to already existing interface bindings. Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
* AudioManagerUtilities: use LINK_DIRECTORIESMathieu Duponchelle2016-11-141-4/+27
| | | | | | | | | | | | 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.
* AudioManagerUtilities: fix dlt cmake integrationMathieu Duponchelle2016-11-142-3/+3
| | | | | | | | | The wrong variables from pkg_check_modules were used, effectively forcing the inclusion of dlt.h to happen from /include. Fix this to take advantage of pkg-config and allow building against a non-system-wide dlt-daemon.
* removed setting of logging context in CAPI wrapperChristian as GENIVI Maintainer2016-09-281-5/+3
| | | Signed-off-by: Christian as GENIVI Maintainer <genivi-maint-audiomanager@genivi.org>
* Changed error to warning in database if data is receivedChristian Linke2016-07-291-0/+8
| | | Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
* cleanup routing interface to add clean abort and resend possibilities7.5Christian Linke2016-06-171-0/+17
| | | Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
* try catch for sockethandler callbacksChristian Linke2016-05-182-101/+93
| | | | | small improvements of sockethandler. Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
* close pipes after useChristian Linke2016-05-172-0/+3
| | | | | Signed-off-by: Christian Linke <Christian.Linke@bmw.de> Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
* optimize static const in audiomanagertypes.h and CAmDltWrapper template ↵Christian Linke2016-05-172-103/+133
| | | | | specializations Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
* switch off std::out route informationChristian Linke2016-04-271-0/+4
| | | | | 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>
* enable deleting of CommandLineSingletonChristian Linke2016-04-203-1/+14
| | | | | fix log message Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
* fix bug in Databasehandler changeChristian Linke2016-04-201-0/+2
| | | Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
* make sure that handles are never 0Christian Linke2016-04-111-2/+2
| | | Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
* utility: Moved TAmPluginTemplate.h to utilitiesGuerra Mattia2016-04-111-0/+91
| | | | Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
* audiomanager: Use proper cmake path to install cmake and pkg-config filesHelio Chissini de Castro2016-04-111-19/+19
| | | | | Change-Id: I9a16f88ee3c27425904fc5aa0e2924e0af5df8a2 Signed-off-by: Helio Chissini de Castro <Helio.Chissini-de-Castro@bmw.de>
* audiomanager: Use LDFLAGS for dlt-daemon pkg-configHelio Chissini de Castro2016-04-111-2/+2
| | | | | Change-Id: I8daea79df694c41a23b0ecaac853cc75b4850a65 Signed-off-by: Helio Chissini de Castro <Helio.Chissini-de-Castro@bmw.de>
* some cleanupChristian Linke2016-03-092-13/+182
| | | | Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
* fix CMake include pathChristian Linke2016-02-261-2/+0
|
* fixed pc filesChristian Linke2016-02-221-21/+23
|
* Forgot the handleChristian Linke2016-02-171-2/+2
| | | | Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
* reworked DltWrapper. fixed gtest and gmock.pc filesChristian Linke2016-02-173-341/+652
|
* Added overflow handling for timer and poll handlesChristian Linke2016-02-162-4/+47
| | | | Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
* * rework of the build structure, adopt to standard cmake package structure7.4Christian Linke2016-02-1513-957/+689
| | | | | | | | | | | | | | * check versions when loading the libs * introduction of the AudioManagerCore * give control plugin as file or directory * remove SQLITE * either find and use gmock or build and install it * fixed [Bug 411] * compile flag gnu11 is now used Signed-off-by: Christian Linke <Christian.Linke@bmw.de> Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
* add versioning for audiomanager utitlitiesChristian.Linke2015-12-161-0/+7
|
* changed package config for systemdChristian.Linke2015-12-151-0/+8
|
* deleting of instance explicit is neededChristian.Linke2015-12-152-12/+21
|
* forgot to destroy the single instance in destructorChristian Linke2015-12-151-0/+11
| | | Signed-off-by: Christian Linke <christian.linke@bmw.de>
* moved watchdog into utilities and created .pc file for utilitiesChristian Linke2015-12-025-0/+1002
| | | Signed-off-by: Christian Linke <christian.linke@bmw.de>
* small things - big hussleChristian Linke2015-10-071-1/+1
| | | | Signed-off-by: Christian Linke <christian.linke@bmw.de>