*** Factor common types into new odp_platform_types.h ***

This patch factors a number of ODP types into a new common odp_platform_types.h
file.  The benefit of this is twofold: It makes the "mainline" ODP include
files implementation-independent, and it avoids circular dependencies that
exist between files trying to reference each other's typedefs.

This patch currently factors out the typedefs and related typed
defines for the following files:

- odp_buffer.h
- odp_buffer_pool.h
- odp_packet.h
- odp_packet_io.h

The reason for this limit is to minimize changes and because these files
have the most problems with circular dependencies today, especially with
the upcoming buffer/packet restructure.  Additional typedefs can be moved
into this file in future patches on an as-needed basis.

v3 of this patch incorporates the following changes suggested by Anders:
- Renamed file to odp_platform_types
- Reflowed comments to an 80 column margin
- Miscellaneous comment wording changes

Bill Fischofer (1):
  Factor ODP types into a common include file

 platform/linux-generic/Makefile.am                 |  1 +
 platform/linux-generic/include/api/odp_buffer.h    |  9 +--
 .../linux-generic/include/api/odp_buffer_pool.h    |  5 +-
 platform/linux-generic/include/api/odp_packet.h    | 30 ---------
 platform/linux-generic/include/api/odp_packet_io.h | 12 +---
 .../linux-generic/include/api/odp_platform_types.h | 71 ++++++++++++++++++++++
 6 files changed, 75 insertions(+), 53 deletions(-)
 create mode 100644 platform/linux-generic/include/api/odp_platform_types.h

--
1.8.3.2

_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to