Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Vasily Khoruzhick
libfprint
Commits
8ca34303
Commit
8ca34303
authored
Nov 12, 2018
by
Bastien Nocera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib: Transform fp_img_driver flags into a FpiImgDriverFlags enum
And document it.
parent
882fc8ab
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
doc/libfprint-sections.txt
doc/libfprint-sections.txt
+1
-1
libfprint/fpi-core.h
libfprint/fpi-core.h
+11
-3
No files found.
doc/libfprint-sections.txt
View file @
8ca34303
...
...
@@ -234,7 +234,7 @@ fp_driver_type
<SECTION>
<INCLUDE>fpi-core.h</INCLUDE>
<FILE>fpi-core-img</FILE>
F
P_IMGDRV_SUPPORTS_UNCONDITIONAL_CAPTURE
F
piImgDriverFlags
fp_img_driver
</SECTION>
...
...
libfprint/fpi-core.h
View file @
8ca34303
...
...
@@ -55,12 +55,20 @@ struct fp_driver {
int
(
*
capture_stop
)(
struct
fp_dev
*
dev
);
};
/* flags for fp_img_driver.flags */
#define FP_IMGDRV_SUPPORTS_UNCONDITIONAL_CAPTURE (1 << 0)
/**
* FpiImgDriverFlags:
* @FP_IMGDRV_SUPPORTS_UNCONDITIONAL_CAPTURE: Whether the driver supports
* unconditional image capture. No driver currently does.
*
* Flags used in the #fp_img_driver to advertise the capabilities of drivers.
*/
typedef
enum
{
FP_IMGDRV_SUPPORTS_UNCONDITIONAL_CAPTURE
=
1
<<
0
}
FpiImgDriverFlags
;
struct
fp_img_driver
{
struct
fp_driver
driver
;
uint16_t
flags
;
FpiImgDriverFlags
flags
;
int
img_width
;
int
img_height
;
int
bz3_threshold
;
...
...
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