2 * Copyright (C) 2012, BMW AG
4 * This file is part of GENIVI Project AudioManager.
6 * Contributions are licensed to the GENIVI Alliance under one or more
7 * Contribution License Agreements.
10 * This Source Code Form is subject to the terms of the
11 * Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with
12 * this file, You can obtain one at http://mozilla.org/MPL/2.0/.
15 * \author Christian Mueller, christian.ei.mueller@bmw.de BMW 2011,2012
18 * For further information see http://www.genivi.org/.
22 #ifndef CAMWATCHDOG_H_
23 #define CAMWATCHDOG_H_
25 #include "shared/CAmSocketHandler.h"
31 * Implements the watchdog of the AudioManager with the help of systemd
36 CAmWatchdog(CAmSocketHandler* CAmSocketHandler);
37 virtual ~CAmWatchdog();
38 void startWatchdog(); //!< starts the watchdog by sending ready to systemD
39 void timerCallback(sh_timerHandle_t handle, void * userData); //!< the watchdog timer callback
40 TAmShTimerCallBack<CAmWatchdog> TimerCallback;
43 CAmSocketHandler* mpCAmSocketHandler; //!< pointer to the sockethandler
44 sh_timerHandle_t mHandle; //!< handle of the timer
48 #endif /* CAMWATCHDOG_H_ */