Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
LabComm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anders Blomdell
LabComm
Commits
fc121fcb
Commit
fc121fcb
authored
12 years ago
by
Sven Robertz
Browse files
Options
Downloads
Patches
Plain Diff
added user action to the action enum
parent
66b14d6e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/c/labcomm.c
+3
-0
3 additions, 0 deletions
lib/c/labcomm.c
lib/c/labcomm.h
+8
-7
8 additions, 7 deletions
lib/c/labcomm.h
lib/c/labcomm_fd_reader_writer.c
+3
-0
3 additions, 0 deletions
lib/c/labcomm_fd_reader_writer.c
with
14 additions
and
7 deletions
lib/c/labcomm.c
+
3
−
0
View file @
fc121fcb
...
@@ -355,6 +355,9 @@ static int signature_writer(
...
@@ -355,6 +355,9 @@ static int signature_writer(
}
break
;
}
break
;
case
labcomm_writer_available
:
{
case
labcomm_writer_available
:
{
}
break
;
}
break
;
case
labcomm_writer_send_signature
:
case
labcomm_writer_user_action
:
return
-
ENOTSUP
;
//HERE BE DRAGONS: should probably be cleaned up
}
}
return
0
;
return
0
;
...
...
This diff is collapsed.
Click to expand it.
lib/c/labcomm.h
+
8
−
7
View file @
fc121fcb
...
@@ -124,13 +124,14 @@ void labcomm_decoder_free(
...
@@ -124,13 +124,14 @@ void labcomm_decoder_free(
*/
*/
typedef
enum
{
typedef
enum
{
labcomm_writer_alloc
,
labcomm_writer_alloc
,
// no args
labcomm_writer_free
,
labcomm_writer_free
,
// no args
labcomm_writer_start
,
labcomm_writer_start
,
// no args
labcomm_writer_continue
,
labcomm_writer_continue
,
// no args
labcomm_writer_end
,
labcomm_writer_end
,
// no args
labcomm_writer_available
,
labcomm_writer_available
,
// no args
labcomm_writer_send_signature
labcomm_writer_send_signature
,
// args = (labcomm_signature_t*, struct labcomm_encoder*)
labcomm_writer_user_action
// args = (int user_action, ... defined by the writer)
}
labcomm_writer_action_t
;
}
labcomm_writer_action_t
;
typedef
struct
labcomm_writer
{
typedef
struct
labcomm_writer
{
...
...
This diff is collapsed.
Click to expand it.
lib/c/labcomm_fd_reader_writer.c
+
3
−
0
View file @
fc121fcb
...
@@ -112,6 +112,9 @@ int labcomm_fd_writer(
...
@@ -112,6 +112,9 @@ int labcomm_fd_writer(
labcomm_encode_signature
(
e
,
signature
);
labcomm_encode_signature
(
e
,
signature
);
}
break
;
}
break
;
case
labcomm_writer_user_action
:
{
result
=
-
ENOTSUP
;
}
break
;
}
}
return
result
;
return
result
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment