summaryrefslogtreecommitdiff
path: root/AudioManagerDaemon/include
diff options
context:
space:
mode:
authorAleksander Donchev <aleksander.donchev@partner.bmw.de>2013-08-13 16:52:21 +0200
committerAleksander Donchev <aleksander.donchev@partner.bmw.de>2013-08-14 15:30:45 +0200
commit548dbdf6ee608869f017fb665fdf94ec88d0067b (patch)
tree5c8d7b1be006ae6a568c22018f8ce4f0fd772e59 /AudioManagerDaemon/include
parentf819d7b58660be225f127d30db4e330c89e58aed (diff)
downloadaudiomanager-548dbdf6ee608869f017fb665fdf94ec88d0067b.tar.gz
* CAmDatabaseHandlerMap - the main connection now have separate method for id generation.
Signed-off-by: Christian Linke <christian.linke@bmw.de>
Diffstat (limited to 'AudioManagerDaemon/include')
-rw-r--r--AudioManagerDaemon/include/CAmDatabaseHandlerMap.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/AudioManagerDaemon/include/CAmDatabaseHandlerMap.h b/AudioManagerDaemon/include/CAmDatabaseHandlerMap.h
index a928b93..28ec7e6 100644
--- a/AudioManagerDaemon/include/CAmDatabaseHandlerMap.h
+++ b/AudioManagerDaemon/include/CAmDatabaseHandlerMap.h
@@ -269,7 +269,7 @@ public:
* The following structure groups the map objects needed for the implementation.
* Every map object is coupled with an identifier, which hold the current value.
* DYNAMIC_ID_BOUNDARY is used as initial value everywhere a dynamic id is considered .
- * The ID's can be increased through the method increaseID(...), which follows the AudioManager logic.
+ * The IDs can be increased through the method increaseID(...), which follows the AudioManager logic.
* For more information about the static and dynamic IDs, please see the documentation.
*/
typedef struct CAmMappedData
@@ -310,7 +310,7 @@ public:
/**
* \brief Increases a given map ID.
*
- * A common method implementing the logic for static and dynamic IDs.
+ * A common method implementing the logic for static and dynamic IDs except main connection ID.
*
* @param resultID Pointer to an output variable.
* @param sourceID Pointer to ID, which will be manipulated.
@@ -321,6 +321,13 @@ public:
*/
bool increaseID(int16_t * resultID, int16_t * sourceID,
int16_t const desiredStaticID, int16_t const preferedStaticIDBoundary );
+ /**
+ * \brief Increases the main connection ID.
+ *
+ * @param resultID Pointer to an output variable.
+ * @return TRUE on successfully changed ID.
+ */
+ bool increaseMainConnectionID(int16_t * resultID);
template <class TPrintObject> static void print (const TPrintObject & t, std::ostream & output)
{