lib: Make fpi_poll_is_setup() private

As it's not used in other parts of the library after the changes in
commit 422f81b.
This commit is contained in:
Bastien Nocera 2018-11-09 13:33:02 +01:00
parent 0fcb4533b5
commit 5d4a5981d0
2 changed files with 3 additions and 3 deletions

View file

@ -89,6 +89,8 @@ struct fpi_timeout {
char *name; char *name;
}; };
static gboolean fpi_poll_is_setup(void);
static int timeout_sort_fn(gconstpointer _a, gconstpointer _b) static int timeout_sort_fn(gconstpointer _a, gconstpointer _b)
{ {
fpi_timeout *a = (fpi_timeout *) _a; fpi_timeout *a = (fpi_timeout *) _a;
@ -483,7 +485,7 @@ void fpi_poll_exit(void)
libusb_set_pollfd_notifiers(fpi_usb_ctx, NULL, NULL, NULL); libusb_set_pollfd_notifiers(fpi_usb_ctx, NULL, NULL, NULL);
} }
gboolean static gboolean
fpi_poll_is_setup(void) fpi_poll_is_setup(void)
{ {
return (fd_added_cb != NULL && fd_removed_cb != NULL); return (fd_added_cb != NULL && fd_removed_cb != NULL);

View file

@ -48,6 +48,4 @@ void fpi_timeout_set_name(fpi_timeout *timeout,
const char *name); const char *name);
void fpi_timeout_cancel(fpi_timeout *timeout); void fpi_timeout_cancel(fpi_timeout *timeout);
gboolean fpi_poll_is_setup(void);
#endif #endif