blob: a5658e81525cafc5adcd2f3f1524af0f2022e175 (
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
|
/* Copyright (c) 2014, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/**
* @file
*
* Inline functions for ODP buffer mgmt routines - implementation internal
*/
#ifndef ODP_BUFFER_INLINES_H_
#define ODP_BUFFER_INLINES_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <odp_buffer_internal.h>
odp_event_type_t _odp_buffer_event_type(odp_buffer_t buf);
void _odp_buffer_event_type_set(odp_buffer_t buf, int ev);
int odp_buffer_snprint(char *str, uint32_t n, odp_buffer_t buf);
static inline odp_buffer_t buf_from_buf_hdr(odp_buffer_hdr_t *hdr)
{
return (odp_buffer_t)hdr;
}
#ifdef __cplusplus
}
#endif
#endif
|