pyocf: move C wrappers to newly added "c" diretory
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
39
tests/functional/pyocf/c/wrappers/ocf_io_wrappers.c
Normal file
39
tests/functional/pyocf/c/wrappers/ocf_io_wrappers.c
Normal file
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* Copyright(c) 2012-2022 Intel Corporation
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#include "ocf/ocf_io.h"
|
||||
#include "ocf/ocf_core.h"
|
||||
|
||||
void ocf_io_set_cmpl_wrapper(struct ocf_io *io, void *context,
|
||||
void *context2, ocf_end_io_t fn)
|
||||
{
|
||||
ocf_io_set_cmpl(io, context, context2, fn);
|
||||
}
|
||||
|
||||
void ocf_io_set_start_wrapper(struct ocf_io *io, ocf_start_io_t fn)
|
||||
{
|
||||
ocf_io_set_start(io, fn);
|
||||
}
|
||||
|
||||
void ocf_io_set_handle_wrapper(struct ocf_io *io, ocf_handle_io_t fn)
|
||||
{
|
||||
ocf_io_set_handle(io, fn);
|
||||
}
|
||||
|
||||
void ocf_core_submit_io_wrapper(struct ocf_io *io)
|
||||
{
|
||||
ocf_core_submit_io(io);
|
||||
}
|
||||
|
||||
|
||||
void ocf_core_submit_flush_wrapper(struct ocf_io *io)
|
||||
{
|
||||
ocf_core_submit_flush(io);
|
||||
}
|
||||
|
||||
void ocf_core_submit_discard_wrapper(struct ocf_io *io)
|
||||
{
|
||||
ocf_core_submit_discard(io);
|
||||
}
|
Reference in New Issue
Block a user