diff options
author | Petri Savolainen <petri.savolainen@linaro.org> | 2015-01-26 15:05:40 +0200 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-01-27 15:34:29 +0300 |
commit | 00a584d62c808e7e64b0d2c091165caec985482d (patch) | |
tree | e049694deb5f57fd51dba75d0976e3326e5e3a41 /platform/linux-generic/include/api | |
parent | e822279ed8800cf6fc51e5c21bc538da5bec1c9c (diff) |
api: buffer: Removed odp_buffer_type
Removed odp_buffer_type() from API and made it internal.
Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>
Reviewed-and-tested-by: Bill Fischofer <bill.fischofer@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'platform/linux-generic/include/api')
-rw-r--r-- | platform/linux-generic/include/api/odp_buffer.h | 15 | ||||
-rw-r--r-- | platform/linux-generic/include/api/odp_buffer_pool.h | 5 |
2 files changed, 5 insertions, 15 deletions
diff --git a/platform/linux-generic/include/api/odp_buffer.h b/platform/linux-generic/include/api/odp_buffer.h index 20036f97f..2f18aa972 100644 --- a/platform/linux-generic/include/api/odp_buffer.h +++ b/platform/linux-generic/include/api/odp_buffer.h @@ -70,21 +70,6 @@ void *odp_buffer_addr(odp_buffer_t buf); uint32_t odp_buffer_size(odp_buffer_t buf); /** - * Buffer type - * - * @param buf Buffer handle - * - * @return Buffer type - */ -int odp_buffer_type(odp_buffer_t buf); - -#define ODP_BUFFER_TYPE_INVALID ODP_EVENT_TYPE_INVALID -#define ODP_BUFFER_TYPE_ANY 0 -#define ODP_BUFFER_TYPE_RAW ODP_EVENT_BUFFER -#define ODP_BUFFER_TYPE_PACKET ODP_EVENT_PACKET -#define ODP_BUFFER_TYPE_TIMEOUT ODP_EVENT_TIMEOUT - -/** * Tests if buffer is valid * * @param buf Buffer handle diff --git a/platform/linux-generic/include/api/odp_buffer_pool.h b/platform/linux-generic/include/api/odp_buffer_pool.h index 8380ac106..5c771f413 100644 --- a/platform/linux-generic/include/api/odp_buffer_pool.h +++ b/platform/linux-generic/include/api/odp_buffer_pool.h @@ -23,6 +23,7 @@ extern "C" { #include <odp_std_types.h> #include <odp_platform_types.h> #include <odp_buffer.h> +#include <odp_event.h> /** @addtogroup odp_buffer * Operations on a buffer pool. @@ -51,6 +52,10 @@ typedef struct odp_buffer_pool_param_t { int buf_type; /**< Buffer type */ } odp_buffer_pool_param_t; +#define ODP_BUFFER_TYPE_RAW ODP_EVENT_BUFFER +#define ODP_BUFFER_TYPE_PACKET ODP_EVENT_PACKET +#define ODP_BUFFER_TYPE_TIMEOUT ODP_EVENT_TIMEOUT + /** * Create a buffer pool * This routine is used to create a buffer pool. It take three |