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
83b64bd2
Commit
83b64bd2
authored
7 years ago
by
Jakob Olsson
Browse files
Options
Downloads
Patches
Plain Diff
rename ubus related structs
parent
a1b9be03
No related branches found
No related tags found
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 @
83b64bd2
...
@@ -562,19 +562,19 @@ fail:
...
@@ -562,19 +562,19 @@ fail:
return
UBUS_STATUS_INVALID_ARGUMENT
;
return
UBUS_STATUS_INVALID_ARGUMENT
;
}
}
struct
ubus_method
infrastructur
e_object_methods
[]
=
{
struct
ubus_method
dongl
e_object_methods
[]
=
{
UBUS_METHOD_NOARG
(
"test"
,
test
),
UBUS_METHOD_NOARG
(
"test"
,
test
),
UBUS_METHOD_NOARG
(
"list"
,
print_list
),
UBUS_METHOD_NOARG
(
"list"
,
print_list
),
UBUS_METHOD_NOARG
(
"clear"
,
clear
),
UBUS_METHOD_NOARG
(
"clear"
,
clear
),
UBUS_METHOD
(
"remove_device"
,
remove_device
,
dev_policy
)};
UBUS_METHOD
(
"remove_device"
,
remove_device
,
dev_policy
)};
struct
ubus_object_type
infrastructur
e_object_type
=
UBUS_OBJECT_TYPE
(
"dongle"
,
infrastructur
e_object_methods
);
struct
ubus_object_type
dongl
e_object_type
=
UBUS_OBJECT_TYPE
(
"dongle"
,
dongl
e_object_methods
);
struct
ubus_object
infrastructur
e_object
=
{
struct
ubus_object
dongl
e_object
=
{
.
name
=
"dongle"
,
.
name
=
"dongle"
,
.
type
=
&
infrastructur
e_object_type
,
.
type
=
&
dongl
e_object_type
,
.
methods
=
infrastructur
e_object_methods
,
.
methods
=
dongl
e_object_methods
,
.
n_methods
=
ARRAY_SIZE
(
infrastructur
e_object_methods
),
.
n_methods
=
ARRAY_SIZE
(
dongl
e_object_methods
),
};
};
void
uloop_add_get_devices
(
struct
uloop_timeout
*
t
)
void
uloop_add_get_devices
(
struct
uloop_timeout
*
t
)
...
@@ -597,7 +597,7 @@ int publish_object(struct ubus_context *ctx)
...
@@ -597,7 +597,7 @@ int publish_object(struct ubus_context *ctx)
{
{
int
rv
;
int
rv
;
rv
=
ubus_add_object
(
ctx
,
&
infrastructur
e_object
);
rv
=
ubus_add_object
(
ctx
,
&
dongl
e_object
);
if
(
rv
)
{
if
(
rv
)
{
debug_print
(
"failed to add dongle.pin to ubus!
\n
"
);
debug_print
(
"failed to add dongle.pin to ubus!
\n
"
);
return
-
1
;
return
-
1
;
...
...
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