Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
timeout.c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
timeout.c
Commits
55878c07
Commit
55878c07
authored
Jan 03, 2014
by
william
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comment by callback function parameters unspecified, and fix TIMEOUT_INITIALIZER
parent
258ac288
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
timeout.h
timeout.h
+4
-1
No files found.
timeout.h
View file @
55878c07
...
@@ -83,6 +83,9 @@ typedef uint64_t timeout_t;
...
@@ -83,6 +83,9 @@ typedef uint64_t timeout_t;
/*
/*
* C A L L B A C K I N T E R F A C E
* C A L L B A C K I N T E R F A C E
*
*
* Callback function parameters unspecified to make embedding into existing
* applications easier.
*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
struct
timeout_cb
{
struct
timeout_cb
{
...
@@ -99,7 +102,7 @@ struct timeout_cb {
...
@@ -99,7 +102,7 @@ struct timeout_cb {
#define TIMEOUT_INT 0x01
/* interval (repeating) timeout */
#define TIMEOUT_INT 0x01
/* interval (repeating) timeout */
#define TIMEOUT_ABS 0x02
/* treat timeout values as absolute */
#define TIMEOUT_ABS 0x02
/* treat timeout values as absolute */
#define TIMEOUT_INITIALIZER(flags) { (flags)
, 0, 0, 0, { 0, 0 }
}
#define TIMEOUT_INITIALIZER(flags) { (flags) }
#define timeout_setcb(to, fn, arg) do { \
#define timeout_setcb(to, fn, arg) do { \
(to)->callback.fn = (fn); \
(to)->callback.fn = (fn); \
...
...
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