Commit bb27ca57 authored by Bastien Nocera's avatar Bastien Nocera

lib: Work-around gtk-doc's handling of the short type

gtk-doc thinks "short" is only a modifier, not a type of its own (short
== short int). This work-around does not change the ABI.

parent 065c0b62
......@@ -304,12 +304,12 @@ void fp_img_free(struct fp_img *img);
* @fd: a file descriptor
* @events: Event flags to poll for from `<poll.h>`
* A structure representing a file descriptor and the events to poll
* A structure representing a file descriptor and the @events to poll
* for, as returned by fp_get_pollfds().
struct fp_pollfd {
int fd;
short events;
short int events;
int fp_handle_events_timeout(struct timeval *timeout);
......@@ -326,7 +326,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, short int events);
* fp_pollfd_removed_cb:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment