Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
Beam Positoning Monitor - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Beam Positoning Monitor - Software
Commits
5c5fa829
Commit
5c5fa829
authored
Dec 06, 2014
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hal/sm_io/sm_io.*: add wrappers for new dispatch table function
This is just for convenience of the SMIO environment.
parent
02999d4b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
sm_io.c
hal/sm_io/sm_io.c
+16
-0
sm_io.h
hal/sm_io/sm_io.h
+3
-0
No files found.
hal/sm_io/sm_io.c
View file @
5c5fa829
...
...
@@ -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
)
...
...
hal/sm_io/sm_io.h
View file @
5c5fa829
...
...
@@ -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 **************/
/************************************************************/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment