automotive-dlt
Main Page
Modules
Data Structures
Files
File List
Globals
dlt_daemon_connection_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
#ifndef DLT_DAEMON_CONNECTION_TYPES_H
31
#define DLT_DAEMON_CONNECTION_TYPES_H
32
#include "
dlt_common.h
"
33
34
typedef
enum
{
35
UNDEFINED
,
/* Undefined status */
36
INACTIVE
,
/* Connection is inactive, excluded from epoll handling */
37
ACTIVE
,
/* Connection is actively handled by epoll */
38
DEACTIVATE
,
/* Request for deactivation of the connection */
39
ACTIVATE
/* Request for activation of the connection */
40
}
DltConnectionStatus
;
41
42
typedef
enum
{
43
DLT_CONNECTION_CLIENT_CONNECT
= 0,
44
DLT_CONNECTION_CLIENT_MSG_TCP
,
45
DLT_CONNECTION_CLIENT_MSG_SERIAL
,
46
DLT_CONNECTION_APP_MSG
,
47
DLT_CONNECTION_ONE_S_TIMER
,
48
DLT_CONNECTION_SIXTY_S_TIMER
,
49
DLT_CONNECTION_SYSTEMD_TIMER
,
50
DLT_CONNECTION_CONTROL_CONNECT
,
51
DLT_CONNECTION_CONTROL_MSG
,
52
DLT_CONNECTION_GATEWAY
,
53
DLT_CONNECTION_GATEWAY_TIMER
,
54
DLT_CONNECTION_TYPE_MAX
55
}
DltConnectionType
;
56
57
#define DLT_CON_MASK_CLIENT_CONNECT (1 << DLT_CONNECTION_CLIENT_CONNECT)
58
#define DLT_CON_MASK_CLIENT_MSG_TCP (1 << DLT_CONNECTION_CLIENT_MSG_TCP)
59
#define DLT_CON_MASK_CLIENT_MSG_SERIAL (1 << DLT_CONNECTION_CLIENT_MSG_SERIAL)
60
#define DLT_CON_MASK_APP_MSG (1 << DLT_CONNECTION_APP_MSG)
61
#define DLT_CON_MASK_ONE_S_TIMER (1 << DLT_CONNECTION_ONE_S_TIMER)
62
#define DLT_CON_MASK_SIXTY_S_TIMER (1 << DLT_CONNECTION_SIXTY_S_TIMER)
63
#define DLT_CON_MASK_SYSTEMD_TIMER (1 << DLT_CONNECTION_SYSTEMD_TIMER)
64
#define DLT_CON_MASK_CONTROL_CONNECT (1 << DLT_CONNECTION_CONTROL_CONNECT)
65
#define DLT_CON_MASK_CONTROL_MSG (1 << DLT_CONNECTION_CONTROL_MSG)
66
#define DLT_CON_MASK_GATEWAY (1 << DLT_CONNECTION_GATEWAY)
67
#define DLT_CON_MASK_GATEWAY_TIMER (1 << DLT_CONNECTION_GATEWAY_TIMER)
68
#define DLT_CON_MASK_ALL (0xffff)
69
70
typedef
uintptr_t
DltConnectionId
;
71
72
/* TODO: squash the DltReceiver structure in there
73
* and remove any other duplicates of FDs
74
*/
75
typedef
struct
DltConnection
{
76
DltConnectionId
id
;
77
DltReceiver
*
receiver
;
78
DltConnectionType
type
;
79
DltConnectionStatus
status
;
80
struct
DltConnection
*
next
;
81
int
ev_mask
;
82
}
DltConnection
;
83
84
#endif
/* DLT_DAEMON_CONNECTION_TYPES_H */
DltConnection::ev_mask
int ev_mask
Definition:
dlt_daemon_connection_types.h:81
ACTIVATE
Definition:
dlt_daemon_connection_types.h:39
dlt_common.h
DltConnection::next
struct DltConnection * next
Definition:
dlt_daemon_connection_types.h:80
DltConnection
Definition:
dlt_daemon_connection_types.h:75
DLT_CONNECTION_SIXTY_S_TIMER
Definition:
dlt_daemon_connection_types.h:48
DltConnection::status
DltConnectionStatus status
Definition:
dlt_daemon_connection_types.h:79
UNDEFINED
Definition:
dlt_daemon_connection_types.h:35
DLT_CONNECTION_GATEWAY
Definition:
dlt_daemon_connection_types.h:52
DLT_CONNECTION_CLIENT_MSG_TCP
Definition:
dlt_daemon_connection_types.h:44
DltConnectionId
uintptr_t DltConnectionId
Definition:
dlt_daemon_connection_types.h:70
DltConnection
struct DltConnection DltConnection
DltReceiver
Definition:
dlt_common.h:672
DLT_CONNECTION_CLIENT_CONNECT
Definition:
dlt_daemon_connection_types.h:43
DLT_CONNECTION_CONTROL_CONNECT
Definition:
dlt_daemon_connection_types.h:50
DltConnection::receiver
DltReceiver * receiver
Definition:
dlt_daemon_connection_types.h:77
DLT_CONNECTION_GATEWAY_TIMER
Definition:
dlt_daemon_connection_types.h:53
DLT_CONNECTION_ONE_S_TIMER
Definition:
dlt_daemon_connection_types.h:47
DLT_CONNECTION_SYSTEMD_TIMER
Definition:
dlt_daemon_connection_types.h:49
DltConnection::id
DltConnectionId id
Definition:
dlt_daemon_connection_types.h:76
DEACTIVATE
Definition:
dlt_daemon_connection_types.h:38
DLT_CONNECTION_CONTROL_MSG
Definition:
dlt_daemon_connection_types.h:51
ACTIVE
Definition:
dlt_daemon_connection_types.h:37
DltConnectionType
DltConnectionType
Definition:
dlt_daemon_connection_types.h:42
DLT_CONNECTION_APP_MSG
Definition:
dlt_daemon_connection_types.h:46
DltConnectionStatus
DltConnectionStatus
Definition:
dlt_daemon_connection_types.h:34
DltConnection::type
DltConnectionType type
Definition:
dlt_daemon_connection_types.h:78
DLT_CONNECTION_TYPE_MAX
Definition:
dlt_daemon_connection_types.h:54
DLT_CONNECTION_CLIENT_MSG_SERIAL
Definition:
dlt_daemon_connection_types.h:45
INACTIVE
Definition:
dlt_daemon_connection_types.h:36
src
daemon
dlt_daemon_connection_types.h
Generated by
1.8.11