Commit 5c5fa829 authored by Lucas Russo's avatar Lucas Russo

hal/sm_io/sm_io.*: add wrappers for new dispatch table function

This is just for convenience of the SMIO environment.
parent 02999d4b
......@@ -138,6 +138,22 @@ smio_err_e smio_do_op (void *owner, void *msg)
return _smio_do_op (owner, msg);
}
smio_err_e smio_init_exp_ops (smio_t *self, disp_op_t** smio_exp_ops,
const disp_table_func_fp *func_fps, size_t size)
{
assert(self);
halutils_err_e herr = HALUTILS_SUCCESS;
smio_err_e err = SMIO_SUCCESS;
herr = disp_table_fill_desc (self->exp_ops_dtable, smio_exp_ops, func_fps,
size);
ASSERT_TEST(herr == HALUTILS_SUCCESS, "smio_export_ops: Could not export"
" fill SMIO ops description", err_fill_desc_ops, SMIO_ERR_EXPORT_OP);
err_fill_desc_ops:
return err;
}
/**************** Static Functions ***************/
static smio_err_e _smio_do_op (void *owner, void *msg)
......
......@@ -136,6 +136,9 @@ typedef struct _smio_thsafe_client_ops_t smio_thsafe_client_ops_t;
/* Destroy an instance of the Low-level I/O */
/* smio_err_e smio_destroy (smio_t **self_p); */
smio_err_e smio_init_exp_ops (smio_t *self, disp_op_t** smio_exp_ops,
const disp_table_func_fp *func_fps, size_t size);
/************************************************************/
/**************** Smio OPS generic methods API **************/
/************************************************************/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment