Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bpm-sw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
bpm
bpm-sw
Commits
34683de3
Commit
34683de3
authored
Aug 05, 2016
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sm_io/protocols/*: add method to get operations
parent
ea3ceed4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
sm_pr.h
include/sm_pr.h
+2
-0
sm_pr.c
src/sm_io/protocols/sm_pr.c
+6
-0
No files found.
include/sm_pr.h
View file @
34683de3
...
...
@@ -75,6 +75,8 @@ void *smpr_get_handler (smpr_t *self);
void
*
smpr_unset_handler
(
smpr_t
*
self
);
/* Get parent handler */
smio_t
*
smpr_get_parent
(
smpr_t
*
self
);
/* Get ops */
const
smpr_proto_ops_t
*
smpr_get_ops
(
smpr_t
*
self
);
/* Get protocol name */
const
char
*
smpr_get_ops_name
(
smpr_t
*
self
);
...
...
src/sm_io/protocols/sm_pr.c
View file @
34683de3
...
...
@@ -147,6 +147,12 @@ smio_t *smpr_get_parent (smpr_t *self)
return
self
->
parent
;
}
const
smpr_proto_ops_t
*
smpr_get_ops
(
smpr_t
*
self
)
{
assert
(
self
);
return
self
->
ops
;
}
const
char
*
smpr_get_ops_name
(
smpr_t
*
self
)
{
assert
(
self
);
...
...
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