automotive-dlt
dlt_daemon_connection.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 #ifndef DLT_DAEMON_CONNECTION_H
31 #define DLT_DAEMON_CONNECTION_H
32 
35 #include "dlt-daemon.h"
36 
37 int dlt_connection_send_multiple(DltConnection *, void *, int, void *, int, int);
38 
41 
44  int,
45  int,
48 
50 
51 #ifdef DLT_UNIT_TESTS
53  void *msg,
54  size_t msg_size);
55 
57 
59  DltConnectionType type,
60  int fd);
61 #endif
62 
63 #endif /* DLT_DAEMON_CONNECTION_H */
STATIC int dlt_connection_send(DltConnection *conn, void *msg, size_t msg_size)
Generic sending function.
int dlt_connection_create(DltDaemonLocal *, DltEventHandler *, int, int, DltConnectionType)
Creates a connection and registers it to the DltEventHandler.
DltConnection * dlt_connection_get_next(DltConnection *, int)
Get the next connection filtered with a type mask.
int dlt_connection_create_remaining(DltDaemonLocal *)
int dlt_connection_send_multiple(DltConnection *, void *, int, void *, int, int)
Send up to two messages through a connection.
void * dlt_connection_get_callback(DltConnection *)
Get the callback from a specific connection.
STATIC DltReceiver * dlt_connection_get_receiver(DltDaemonLocal *daemon_local, DltConnectionType type, int fd)
Get the receiver structure associated to a connection.
void dlt_connection_destroy(DltConnection *)
Destroys a connection.
STATIC void dlt_connection_destroy_receiver(DltConnection *con)