Doesn't handle "short" element in structure
I recently ported libfprint's documentation from Doxygen to gtk-doc: https://cgit.freedesktop.org/libfprint/libfprint/
In the main header, libfprint/fprint.h, pollfd
related structures have errors related to the "short events" element that show up in libfprint-unused.txt
. This patches removes the errors, but is an API change:
diff --git a/libfprint/fprint.h b/libfprint/fprint.h
index fd7d633..de507d0 100644
--- a/libfprint/fprint.h
+++ b/libfprint/fprint.h
@@ -307,7 +307,7 @@ void fp_img_free(struct fp_img *img);
*/
struct fp_pollfd {
int fd;
- short events;
+ int events;
};
int fp_handle_events_timeout(struct timeval *timeout);
@@ -324,7 +324,7 @@ int fp_get_next_timeout(struct timeval *tv);
* event source is added. The @events argument is a flag as defined in
* `<poll.h>` such as `POLLIN`, or `POLLOUT`. See fp_set_pollfd_notifiers().
*/
-typedef void (*fp_pollfd_added_cb)(int fd, short events);
+typedef void (*fp_pollfd_added_cb)(int fd, int events);
/**
* fp_pollfd_removed_cb: