diff options
author | Petri Savolainen <petri.savolainen@nokia.com> | 2022-06-13 14:57:22 +0300 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2022-07-14 13:35:45 +0300 |
commit | 8829376e7cbdc665590fc10e29b6e421325185b8 (patch) | |
tree | 52e7123d0d01a5489656f9ef1170b35361e2c88a /platform | |
parent | a94e7d40a79c12a07e3f71b994219ff7ba59f1e2 (diff) |
api: stash: split header files
Split stash API into separate header files for functions and
types. This enables inline implementation of API functions
in the future.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Ashwin Sekhar T K <asekhar@marvell.com>
Diffstat (limited to 'platform')
-rw-r--r-- | platform/linux-generic/Makefile.am | 1 | ||||
-rw-r--r-- | platform/linux-generic/include-abi/odp/api/abi/stash.h | 16 | ||||
-rw-r--r-- | platform/linux-generic/include-abi/odp/api/abi/stash_types.h | 38 |
3 files changed, 40 insertions, 15 deletions
diff --git a/platform/linux-generic/Makefile.am b/platform/linux-generic/Makefile.am index 87de9139d..56a37544c 100644 --- a/platform/linux-generic/Makefile.am +++ b/platform/linux-generic/Makefile.am @@ -95,6 +95,7 @@ odpapiabiarchinclude_HEADERS += \ include-abi/odp/api/abi/spinlock.h \ include-abi/odp/api/abi/spinlock_recursive.h \ include-abi/odp/api/abi/stash.h \ + include-abi/odp/api/abi/stash_types.h \ include-abi/odp/api/abi/std.h \ include-abi/odp/api/abi/std_types.h \ include-abi/odp/api/abi/sync.h \ diff --git a/platform/linux-generic/include-abi/odp/api/abi/stash.h b/platform/linux-generic/include-abi/odp/api/abi/stash.h index 36966204f..69bf989d6 100644 --- a/platform/linux-generic/include-abi/odp/api/abi/stash.h +++ b/platform/linux-generic/include-abi/odp/api/abi/stash.h @@ -15,21 +15,7 @@ extern "C" { #endif -#include <odp/api/plat/strong_types.h> - -/** @ingroup odp_stash - * @{ - */ - -typedef ODP_HANDLE_T(odp_stash_t); - -#define ODP_STASH_INVALID _odp_cast_scalar(odp_stash_t, 0) - -#define ODP_STASH_NAME_LEN 32 - -/** - * @} - */ +/* Empty placeholder header for inline functions */ #ifdef __cplusplus } diff --git a/platform/linux-generic/include-abi/odp/api/abi/stash_types.h b/platform/linux-generic/include-abi/odp/api/abi/stash_types.h new file mode 100644 index 000000000..960f3ef17 --- /dev/null +++ b/platform/linux-generic/include-abi/odp/api/abi/stash_types.h @@ -0,0 +1,38 @@ +/* Copyright (c) 2022, Nokia + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +/** + * @file + */ + +#ifndef ODP_API_ABI_STASH_TYPES_H_ +#define ODP_API_ABI_STASH_TYPES_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#include <odp/api/plat/strong_types.h> + +/** @ingroup odp_stash + * @{ + */ + +typedef ODP_HANDLE_T(odp_stash_t); + +#define ODP_STASH_INVALID _odp_cast_scalar(odp_stash_t, 0) + +#define ODP_STASH_NAME_LEN 32 + +/** + * @} + */ + +#ifdef __cplusplus +} +#endif + +#endif |