aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/include-abi/odp/api/abi/timer.h
blob: 48138f72f4d40c14383c7ab21c1d2115f25359b0 (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
/* Copyright (c) 2013-2018, Linaro Limited
 * All rights reserved.
 *
 * SPDX-License-Identifier:     BSD-3-Clause
 */


/**
 * @file
 *
 * ODP timer service
 */

#ifndef ODP_API_ABI_TIMER_H_
#define ODP_API_ABI_TIMER_H_

#ifdef __cplusplus
extern "C" {
#endif

#include <odp/api/plat/strong_types.h>

/** @addtogroup odp_timer
 *  @{
 **/

struct timer_pool_s; /**< Forward declaration */

typedef struct timer_pool_s *odp_timer_pool_t;

#define ODP_TIMER_POOL_INVALID _odp_cast_scalar(odp_timer_pool_t, 0)

#define ODP_TIMER_POOL_NAME_LEN  32

typedef ODP_HANDLE_T(odp_timer_t);

#define ODP_TIMER_INVALID _odp_cast_scalar(odp_timer_t, 0)

typedef ODP_HANDLE_T(odp_timeout_t);

#define ODP_TIMEOUT_INVALID  _odp_cast_scalar(odp_timeout_t, 0)

/**
 * @}
 */

#ifdef __cplusplus
}
#endif

#endif