blob: fdfa52d1c62e52f941e22b3ada66453b50df6918 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
/* Copyright (c) 2015, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/**
* @file
*
* ODP event
*/
#ifndef ODP_API_EVENT_H_
#define ODP_API_EVENT_H_
#include <odp/visibility_begin.h>
#ifdef __cplusplus
extern "C" {
#endif
/** @defgroup odp_event ODP EVENT
* Operations on an event.
* @{
*/
/**
* @typedef odp_event_t
* ODP event
*/
/**
* @def ODP_EVENT_INVALID
* Invalid event
*/
/**
* @typedef odp_event_type_t
* ODP event types:
* ODP_EVENT_BUFFER, ODP_EVENT_PACKET, ODP_EVENT_TIMEOUT,
* ODP_EVENT_CRYPTO_COMPL
*/
/**
* Get event type
*
* @param event Event handle
*
* @return Event type
*/
odp_event_type_t odp_event_type(odp_event_t event);
/**
* Get printable value for an odp_event_t
*
* @param hdl odp_event_t handle to be printed
* @return uint64_t value that can be used to print/display this
* handle
*
* @note This routine is intended to be used for diagnostic purposes
* to enable applications to generate a printable value that represents
* an odp_event_t handle.
*/
uint64_t odp_event_to_u64(odp_event_t hdl);
/**
* Free event
*
* Frees the event based on its type. Results are undefined if event
* type is unknown.
*
* @param event Event handle
*
*/
void odp_event_free(odp_event_t event);
/**
* @}
*/
#ifdef __cplusplus
}
#endif
#include <odp/visibility_end.h>
#endif
|