diff options
author | Taras Kondratiuk <taras.kondratiuk@linaro.org> | 2015-02-05 19:36:37 +0200 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-02-08 00:54:15 +0300 |
commit | 594b4f473932609125990423c1ddc80a02fa45d3 (patch) | |
tree | 15e19d7b35984b3c5ecc8e564488d877516ad21c /include/odp/api/buffer.h | |
parent | a62eb98fa21c49487e986162d742e2c2315d61f1 (diff) |
api: pool: move buffer allocation to buffer.h
Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org>
Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>
Reviewed-by: Petri Savolainen <petri.savolainen@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'include/odp/api/buffer.h')
-rw-r--r-- | include/odp/api/buffer.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/odp/api/buffer.h b/include/odp/api/buffer.h index 09bddf223..4bbac1e7e 100644 --- a/include/odp/api/buffer.h +++ b/include/odp/api/buffer.h @@ -105,6 +105,25 @@ int odp_buffer_is_valid(odp_buffer_t buf); odp_pool_t odp_buffer_pool(odp_buffer_t buf); /** + * Buffer alloc + * + * The validity of a buffer can be cheked at any time with odp_buffer_is_valid() + * @param pool Pool handle + * + * @return Handle of allocated buffer + * @retval ODP_BUFFER_INVALID Buffer could not be allocated + */ +odp_buffer_t odp_buffer_alloc(odp_pool_t pool); + +/** + * Buffer free + * + * @param buf Buffer handle + * + */ +void odp_buffer_free(odp_buffer_t buf); + +/** * Print buffer metadata to STDOUT * * @param buf Buffer handle |