automotive-dlt
dlt_daemon_event_handler.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 
34 #include "dlt-daemon.h"
35 
36 #ifndef DLT_DAEMON_EVENT_HANDLER_H
37 # define DLT_DAEMON_EVENT_HANDLER_H
38 
41 
45  int);
46 
48 
51  DltConnection *,
52  int);
53 
56  int);
57 
59  DltConnection *,
60  int);
61 #ifdef DLT_UNIT_TESTS
63  DltConnection *to_remove);
64 
66  DltConnection *connection);
67 #endif
68 #endif /* DLT_DAEMON_EVENT_HANDLER_H */
int dlt_daemon_handle_event(DltEventHandler *, DltDaemon *, DltDaemonLocal *)
Catch and process incoming events.
uintptr_t DltConnectionId
int dlt_daemon_prepare_event_handling(DltEventHandler *)
Prepare the event handler.
DltConnection * dlt_event_handler_find_connection_by_id(DltEventHandler *, DltConnectionId)
Find connection with a specific id in the connection list.
STATIC void dlt_daemon_add_connection(DltEventHandler *ev, DltConnection *connection)
Add a new connection to the list.
int dlt_event_handler_unregister_connection(DltEventHandler *, DltDaemonLocal *, int)
Unregisters a connection from the event handler and destroys it.
int dlt_connection_check_activate(DltEventHandler *, DltConnection *, int)
Check for connection activation.
DltConnection * dlt_event_handler_find_connection(DltEventHandler *, int)
Find connection with a specific fd in the connection list.
void dlt_event_handler_cleanup_connections(DltEventHandler *)
Destroy the connection list.
STATIC int dlt_daemon_remove_connection(DltEventHandler *ev, DltConnection *to_remove)
Remove a connection from the list and destroy it.
int dlt_event_handler_register_connection(DltEventHandler *, DltDaemonLocal *, DltConnection *, int)
Registers a connection for event handling and takes its ownership.