summaryrefslogtreecommitdiff
path: root/gusb/gusb-source.h
Commit message (Collapse)AuthorAgeFilesLines
* Use '#pragma once' to reduce boilerplateRichard Hughes2020-01-211-4/+1
|
* trivial: Use SPDX-License-Identifier tagsRichard Hughes2020-01-211-15/+1
|
* Use a thread to process libusb1 eventsRichard Hughes2014-11-251-1/+4
| | | | | | The libusb_set_pollfd_notifiers() function will only work on Linux and we can use a thread to do exactly the same thing in a cross platform way with a lot less code.
* Ensure that there is only one GUsbSource for each GUsbContextDebarshi Ray2011-09-081-6/+0
| | | | | | | | | | As a result, g_usb_source_{new,destroy} have been moved to a private header, and are called from the get_source and finalize methods of GUsbContext. Note that the GUsbSource is lazy allocated and only created when g_usb_context_get_source is called for the first time for a particular GUsbContext.
* g_usb_source_new won't return NULLDebarshi Ray2011-09-081-2/+1
| | | | | This is because libusb_get_pollfds won't return NULL unless OOM or on Windows, which is not supported at the moment.
* gusb-*.h: Add missing / fixup includesHans de Goede2011-08-101-0/+2
|
* Rename libgusb to gusbHans de Goede2011-08-101-0/+56
So that we can include our headers from other headers in the form of: include <gusb/gusb-foo.h> And still have a working local build.