[API-NEXT,v7,3/3] comp: compression spec

Message ID 1501822807-6072-4-git-send-email-odpbot@yandex.ru
State New
Headers show
Series
  • comp: compression spec
Related show

Commit Message

Github ODP bot Aug. 4, 2017, 5 a.m.
From: Shally Verma <shally.verma@cavium.com>


Moved odp_event_to_packet() and ERR_OUT_OF_SPACE per review input

Signed-off-by: Shally Verma <shally.verma@cavium.com>

Signed-off-by: Mahipal Challa <mahipal.challa@cavium.com>

Cc PrasadAthreya.Narayana@cavium.com
---
/** Email created from pull request 102 (1234sv:api-next)
 ** https://github.com/Linaro/odp/pull/102
 ** Patch: https://github.com/Linaro/odp/pull/102.patch
 ** Base sha: 30ed14c05ac17406c2f7890b34c4ac580b5e7a45
 ** Merge commit sha: 5084a478f4da4e891e6e6963d2f1a177533fe812
 **/
 include/odp/api/spec/comp.h | 43 +++++++++++++++++++------------------------
 1 file changed, 19 insertions(+), 24 deletions(-)

Patch hide | download patch | download mbox

diff --git a/include/odp/api/spec/comp.h b/include/odp/api/spec/comp.h
index 117b4270..2956094c 100755
--- a/include/odp/api/spec/comp.h
+++ b/include/odp/api/spec/comp.h
@@ -46,11 +46,6 @@  extern "C" {
  */
 
 /**
- * @typedef odp_comp_compl_t
- * Compression/Decompression completion event handle
- */
-
-/**
  * Compression API operation mode
  */
 typedef enum {
@@ -127,12 +122,6 @@  typedef enum {
 typedef enum {
 	/** Operation completed successfully*/
 	ODP_COMP_ERR_NONE,
-	/** Invalid user data pointers*/
-	ODP_COMP_ERR_DATA_PTR,
-	/** Invalid input data size*/
-	ODP_COMP_ERR_DATA_SIZE,
-	/**  Compression and/or hash Algo failure*/
-	ODP_COMP_ERR_ALGO_FAIL,
 	/** Operation paused due to insufficient output buffer.
 	*
 	* This is not an error condition. On seeing this situation,
@@ -148,6 +137,12 @@  typedef enum {
 	*
 	*/
 	ODP_COMP_ERR_OUT_OF_SPACE,
+	/** Invalid user data pointers*/
+	ODP_COMP_ERR_DATA_PTR,
+	/** Invalid input data size*/
+	ODP_COMP_ERR_DATA_SIZE,
+	/**  Compression and/or hash Algo failure*/
+	ODP_COMP_ERR_ALGO_FAIL,
 	/** Error if operation has been requested in an invalid state */
 	ODP_COMP_ERR_INV_STATE,
 	/** Error if API does not support any of the operational parameter. */
@@ -762,6 +757,19 @@  int odp_comp_decomp_enq(odp_comp_op_param_t *param);
 odp_packet_t odp_comp_packet_from_event(odp_event_t event);
 
  /**
+  * Convert processed packet handle to event
+  *
+  * The packet handle must be an output of an compression/decompression
+  * operation.
+  *
+  * @param pkt	    Packet handle from odp_comp_compress_enq()/
+  *		    odp_comp_decomp_enq()
+  *
+  * @return Event handle
+  */
+odp_event_t odp_comp_packet_to_event(odp_packet_t pkt);
+
+ /**
   * Get compression/decompression operation results from an processed packet.
   *
   * Successful compression/decompression operations produce
@@ -783,19 +791,6 @@  int odp_comp_result(odp_packet_t packet,
 		    odp_comp_op_result_t *result);
 
 /**
- * Convert processed packet handle to event
- *
- * The packet handle must be an output of an compression/decompression
- * operation.
- *
- * @param pkt      Packet handle from odp_comp_compress_enq()/
- *                 odp_comp_decomp_enq()
- *
- * @return Event handle
- */
-odp_event_t odp_comp_packet_to_event(odp_packet_t pkt);
-
-/**
  * Get printable value for an odp_comp_session_t
  *
  * @param hdl  odp_comp_session_t handle to be printed