automotive-dlt
dlt_daemon_event_handler_types.h
Go to the documentation of this file.
1 /*
2  * @licence app begin@
3  * SPDX license identifier: MPL-2.0
4  *
5  * Copyright (C) 2015 Advanced Driver Information Technology.
6  * This code is developed by Advanced Driver Information Technology.
7  * Copyright of Advanced Driver Information Technology, Bosch and DENSO.
8  *
9  * This file is part of GENIVI Project DLT - Diagnostic Log and Trace.
10  *
11  * This Source Code Form is subject to the terms of the
12  * Mozilla Public License (MPL), v. 2.0.
13  * If a copy of the MPL was not distributed with this file,
14  * You can obtain one at http://mozilla.org/MPL/2.0/.
15  *
16  * For further information see http://www.genivi.org/.
17  * @licence end@
18  */
19 
30 #include <sys/epoll.h>
31 
33 
34 #ifndef DLT_DAEMON_EVENT_HANDLER_TYPES_H
35 #define DLT_DAEMON_EVENT_HANDLER_TYPES_H
36 
37 /* FIXME: Remove the need for DltDaemonLocal everywhere in the code
38  * These typedefs are needed by DltDaemonLocal which is
39  * itself needed for functions used by the event handler
40  * (as this structure is used everywhere in the code ...)
41  */
42 
43 typedef enum {
46 #ifdef DLT_SYSTEMD_WATCHDOG_ENABLE
47  DLT_TIMER_SYSTEMD,
48 #endif
51 } DltTimers;
52 
53 #define DLT_EPOLL_MAX_EVENTS 10
54 typedef struct {
55  int epfd;
56  struct epoll_event events[DLT_EPOLL_MAX_EVENTS];
59 
60 #endif /* DLT_DAEMON_EVENT_HANDLER_TYPES_H */
#define DLT_EPOLL_MAX_EVENTS