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:
parent
0fcb4533b5
commit
5d4a5981d0
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue