summaryrefslogtreecommitdiff
path: root/gusb/gusb-source.h
Commit message (Collapse)AuthorAgeFilesLines
* trivial: Use @self for instance dataRichard Hughes2022-09-051-4/+1
|
* Reformat the code using clang-formatRichard Hughes2022-09-041-9/+9
| | | | | This frees up mental energy when reviewing patches and is something I should have done a long time ago.
* Only include the start year in the copyright headerRichard Hughes2022-06-161-1/+1
| | | | | The end year is legally and functionally redundant, and more importantly causes cherry-pick conflicts when trying to maintain old branches.
* 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.