From 55df0f3aa8500619464bd080f0d58d2419da0c4c Mon Sep 17 00:00:00 2001 From: Alexander Wenzel Date: Mon, 2 Dec 2013 10:30:00 +0100 Subject: Replace threads by timing fds for ecu version, timing packets and watchdog. Signed-off-by: Alexander Wenzel --- src/daemon/dlt-daemon.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/daemon/dlt-daemon.h') diff --git a/src/daemon/dlt-daemon.h b/src/daemon/dlt-daemon.h index 91bb58d..2e4f62c 100755 --- a/src/daemon/dlt-daemon.h +++ b/src/daemon/dlt-daemon.h @@ -132,9 +132,11 @@ typedef struct #endif DltOfflineTrace offlineTrace; /**< Offline trace handling */ #if defined(DLT_SYSTEMD_WATCHDOG_ENABLE) - uint32_t lastOperationTime; + int timer_wd; /** file descriptor for watchdog timer */ #endif int timeoutOnSend; + int timer_timingpacket; + int timer_ecuversion; } DltDaemonLocal; typedef struct @@ -188,5 +190,10 @@ void dlt_daemon_ecu_version_thread(void *ptr); int dlt_daemon_make_periodic (unsigned int period, DltDaemonPeriodicData *info, int verbose); void dlt_daemon_wait_period(DltDaemonPeriodicData *info, int verbose); +int create_timer_fd(DltDaemonLocal *daemon_local, int period_sec, int starts_in, int* fd, const char* timer_name); + +void dlt_daemon_send_timingpacket(DltDaemon *daemon, DltDaemonLocal *daemon_local); +void dlt_daemon_send_ecuversion(DltDaemon *daemon, DltDaemonLocal *daemon_local); + #endif /* DLT_DAEMON_H */ -- cgit v1.2.1