Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shawn Webb
Fwupd
Commits
3f94eabe
Commit
3f94eabe
authored
Feb 22, 2021
by
Richard Hughes
Browse files
trivial: Use fwupd_device_add_flags() to set a single flag
parent
d0ba4693
Changes
2
Hide whitespace changes
Inline
Side-by-side
libfwupd/fwupd-self-test.c
View file @
3f94eabe
...
...
@@ -330,7 +330,7 @@ fwupd_device_func (void)
dev
=
fwupd_device_new
();
fwupd_device_add_checksum
(
dev
,
"beefdead"
);
fwupd_device_set_created
(
dev
,
1
);
fwupd_device_
set
_flag
s
(
dev
,
FWUPD_DEVICE_FLAG_UPDATABLE
);
fwupd_device_
add
_flag
(
dev
,
FWUPD_DEVICE_FLAG_UPDATABLE
);
fwupd_device_set_id
(
dev
,
"USB:foo"
);
fwupd_device_set_modified
(
dev
,
60
*
60
*
24
);
fwupd_device_set_name
(
dev
,
"ColorHug2"
);
...
...
src/fu-self-test.c
View file @
3f94eabe
...
...
@@ -2652,7 +2652,7 @@ fu_history_func (gconstpointer user_data)
fu_device_set_update_state
(
device
,
FWUPD_UPDATE_STATE_FAILED
);
fu_device_set_update_error
(
device
,
"word"
);
fu_device_add_guid
(
device
,
"827edddd-9bb6-5632-889f-2c01255503da"
);
fu_device_
set
_flag
s
(
device
,
FWUPD_DEVICE_FLAG_INTERNAL
);
fu_device_
add
_flag
(
device
,
FWUPD_DEVICE_FLAG_INTERNAL
);
fu_device_set_created
(
device
,
123
);
fu_device_set_modified
(
device
,
456
);
release
=
fwupd_release_new
();
...
...
Write
Preview
Supports
Markdown
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