This move is OK. Just remove also this: #include <odp/buffer.h>
since there's not dependency anymore. -petri > -----Original Message----- > From: ext Taras Kondratiuk [mailto:[email protected]] > Sent: Thursday, February 05, 2015 4:19 PM > To: [email protected] > Cc: Savolainen, Petri (NSN - FI/Espoo); Taras Kondratiuk > Subject: [PATCH] api: pool: move buffer allocation to buffer.h > > Signed-off-by: Taras Kondratiuk <[email protected]> > --- > include/odp/api/buffer.h | 19 +++++++++++++++++++ > include/odp/api/pool.h | 19 ------------------- > 2 files changed, 19 insertions(+), 19 deletions(-) > > diff --git a/include/odp/api/buffer.h b/include/odp/api/buffer.h > index 09bddf2..4bbac1e 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 > diff --git a/include/odp/api/pool.h b/include/odp/api/pool.h > index 14d18fb..b0b26e4 100644 > --- a/include/odp/api/pool.h > +++ b/include/odp/api/pool.h > @@ -195,25 +195,6 @@ void odp_pool_print(odp_pool_t pool); > uint64_t odp_pool_to_u64(odp_pool_t hdl); > > /** > - * 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); > - > -/** > * @} > */ > > -- > 1.9.1 _______________________________________________ lng-odp mailing list [email protected] http://lists.linaro.org/mailman/listinfo/lng-odp
