aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/odp_event.c
diff options
context:
space:
mode:
authorPetri Savolainen <petri.savolainen@linaro.org>2015-01-26 15:05:47 +0200
committerMaxim Uvarov <maxim.uvarov@linaro.org>2015-01-27 15:34:30 +0300
commit8d0f8982236b400b11b2e712e3bbd289694e6f2b (patch)
tree0d4fc7575ee10c44812dd71910b029b293d41693 /platform/linux-generic/odp_event.c
parent9cb80344f017193a3c432c2a12fe7af348881396 (diff)
api: pool: Rename pool params and remove buffer types
* Renamed odp_buffer_pool_param_t to odp_pool_param_t * Moved buffer pool parameters into "buf" struct * Left other structs for other types (pkt and tmo) to be added and implemented * Pool type field is common to all pool types * Removed buffer types and use ODP_EVENT_XXX for event type and ODP_POOL_XXX for pool type instead. So event types may not be assosiated to a pool (and may not have a corresponding pool type). 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/odp_event.c')
-rw-r--r--platform/linux-generic/odp_event.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/platform/linux-generic/odp_event.c b/platform/linux-generic/odp_event.c
index f3e70b9bb..c4291f846 100644
--- a/platform/linux-generic/odp_event.c
+++ b/platform/linux-generic/odp_event.c
@@ -15,14 +15,5 @@ int odp_event_type(odp_event_t event)
buf = odp_buffer_from_event(event);
- switch (_odp_buffer_type(buf)) {
- case ODP_BUFFER_TYPE_RAW:
- return ODP_EVENT_BUFFER;
- case ODP_BUFFER_TYPE_PACKET:
- return ODP_EVENT_PACKET;
- case ODP_BUFFER_TYPE_TIMEOUT:
- return ODP_EVENT_TIMEOUT;
- default:
- return ODP_EVENT_TYPE_INVALID;
- }
+ return _odp_buffer_type(buf);
}