automotive-dlt
Main Page
Modules
Data Structures
Files
File List
Globals
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
32
#include "
dlt_daemon_connection_types.h
"
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
{
44
DLT_TIMER_PACKET
= 0,
45
DLT_TIMER_ECU
,
46
#ifdef DLT_SYSTEMD_WATCHDOG_ENABLE
47
DLT_TIMER_SYSTEMD,
48
#endif
49
DLT_TIMER_GATEWAY
,
50
DLT_TIMER_UNKNOWN
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
];
57
DltConnection
*
connections
;
58
}
DltEventHandler
;
59
60
#endif
/* DLT_DAEMON_EVENT_HANDLER_TYPES_H */
DltEventHandler::epfd
int epfd
Definition:
dlt_daemon_event_handler_types.h:55
DltConnection
Definition:
dlt_daemon_connection_types.h:75
DLT_TIMER_PACKET
Definition:
dlt_daemon_event_handler_types.h:44
DltTimers
DltTimers
Definition:
dlt_daemon_event_handler_types.h:43
DLT_EPOLL_MAX_EVENTS
#define DLT_EPOLL_MAX_EVENTS
Definition:
dlt_daemon_event_handler_types.h:53
DLT_TIMER_ECU
Definition:
dlt_daemon_event_handler_types.h:45
DltEventHandler::connections
DltConnection * connections
Definition:
dlt_daemon_event_handler_types.h:57
dlt_daemon_connection_types.h
DltEventHandler
Definition:
dlt_daemon_event_handler_types.h:54
DLT_TIMER_UNKNOWN
Definition:
dlt_daemon_event_handler_types.h:50
DLT_TIMER_GATEWAY
Definition:
dlt_daemon_event_handler_types.h:49
src
daemon
dlt_daemon_event_handler_types.h
Generated by
1.8.11