Commit 9a9bef0a authored by Yanbo Zhou's avatar Yanbo Zhou Committed by Changpeng Liu
Browse files

include/copy_engine.h: add comments for callback functions



Change-Id: Id731686e21df1bc2b077f729ab395719b437e4de
Signed-off-by: default avatarYanbo Zhou <yanbo.zhou@intel.com>
Reviewed-on: https://review.gerrithub.io/407689


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
parent c4bb0ea6
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -44,7 +44,19 @@
extern "C" {
#endif

/**
 * Copy operation callback.
 *
 * \param ref 'copy_req' passed to the corresponding spdk_copy_submit() call.
 * \param status 0 if it completed successfully, or negative errno if it failed.
 */
typedef void (*spdk_copy_completion_cb)(void *ref, int status);

/**
 * Copy engine finish callback.
 *
 * \param cb_arg Callback argument.
 */
typedef void (*spdk_copy_fini_cb)(void *cb_arg);

struct spdk_io_channel;