diff options
author | Alexander Wenzel <Alexander.AW.Wenzel@bmw.de> | 2013-12-02 10:30:00 +0100 |
---|---|---|
committer | Alexander Wenzel <Alexander.AW.Wenzel@bmw.de> | 2014-01-10 07:15:49 +0100 |
commit | 55df0f3aa8500619464bd080f0d58d2419da0c4c (patch) | |
tree | d58b2737bbb438b7134f8dd7f92ad1cbf5e9eefe /src/daemon/dlt-daemon.h | |
parent | e387e0d12020f7159dc2b3c53e24dc6bb58de4b9 (diff) | |
download | DLT-daemon-55df0f3aa8500619464bd080f0d58d2419da0c4c.tar.gz |
Replace threads by timing fds for ecu version, timing packets and watchdog.
Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
Diffstat (limited to 'src/daemon/dlt-daemon.h')
-rwxr-xr-x | src/daemon/dlt-daemon.h | 9 |
1 files changed, 8 insertions, 1 deletions
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 */
|