aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/include/api/odp/event.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform/linux-generic/include/api/odp/event.h')
-rw-r--r--platform/linux-generic/include/api/odp/event.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/platform/linux-generic/include/api/odp/event.h b/platform/linux-generic/include/api/odp/event.h
new file mode 100644
index 000000000..66843f7b9
--- /dev/null
+++ b/platform/linux-generic/include/api/odp/event.h
@@ -0,0 +1,59 @@
+/* Copyright (c) 2015, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+
+/**
+ * @file
+ *
+ * ODP event
+ */
+
+#ifndef ODP_EVENT_H_
+#define ODP_EVENT_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+#include <odp/std_types.h>
+#include <odp/platform_types.h>
+
+/** @defgroup odp_event ODP EVENT
+ * Operations on an event.
+ * @{
+ */
+
+
+/**
+ * Event type
+ *
+ * @param event Event handle
+ *
+ * @return Event type or ODP_EVENT_TYPE_INVALID
+ */
+int odp_event_type(odp_event_t event);
+
+/** Invalid event type */
+#define ODP_EVENT_TYPE_INVALID (-1)
+/** Buffer event */
+#define ODP_EVENT_BUFFER 1
+/** Packet event */
+#define ODP_EVENT_PACKET 2
+/** Timeout event */
+#define ODP_EVENT_TIMEOUT 3
+
+
+
+/**
+ * @}
+ */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif