Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mdmngr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
IOPSYS
mdmngr
Commits
0071bebd
Commit
0071bebd
authored
7 years ago
by
Ionuț-Alex Oprea
Browse files
Options
Downloads
Patches
Plain Diff
use timeout instead of t
Use timeout instead of t, so that search for the timeout is easier.
parent
7749cf2a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dongle.c
+7
-7
7 additions, 7 deletions
dongle.c
with
7 additions
and
7 deletions
dongle.c
+
7
−
7
View file @
0071bebd
...
...
@@ -14,10 +14,10 @@
#include
"dongle.h"
static
void
uloop_add_
get
_devices
(
struct
uloop_timeout
*
t
);
static
void
uloop_add_
poll
_devices
(
struct
uloop_timeout
*
t
imeout
);
static
int
get_devices_from_path
(
char
*
input_path
);
static
int
get_devices
(
void
);
static
int
poll_devices
(
struct
uloop_timeout
*
t
);
static
int
poll_devices
(
struct
uloop_timeout
*
t
imeout
);
static
int
tag_missing_devices
(
void
);
static
int
add_device
(
struct
dongle_container
*
new_dev
);
static
int
delete_all_devices
(
void
);
...
...
@@ -121,12 +121,12 @@ fail:
return
-
1
;
}
static
int
poll_devices
(
struct
uloop_timeout
*
t
)
static
int
poll_devices
(
struct
uloop_timeout
*
t
imeout
)
{
get_devices
();
tag_missing_devices
();
uloop_add_
get
_devices
(
t
);
uloop_add_
poll
_devices
(
t
imeout
);
return
0
;
}
...
...
@@ -738,10 +738,10 @@ static struct ubus_object dongle_object = {
.
n_methods
=
ARRAY_SIZE
(
dongle_object_methods
),
};
static
void
uloop_add_
get
_devices
(
struct
uloop_timeout
*
t
)
static
void
uloop_add_
poll
_devices
(
struct
uloop_timeout
*
t
imeout
)
{
uloop_timeout_set
(
t
,
60000
);
uloop_timeout_add
(
t
);
uloop_timeout_set
(
t
imeout
,
60000
);
uloop_timeout_add
(
t
imeout
);
}
static
void
init_ubus
(
void
)
...
...
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