mirror of
https://github.com/transmission/transmission.git
synced 2026-02-15 07:26:49 +00:00
* build: bump to C++20 Co-authored-by: Cœur <coeur@gmx.fr> * refactor: use designated initializers * refactor: remove redundant SFINAE * fix: clang-tidy warnings * chore: comments about min compiler versions for C++20 features * build: clang objc++ modules build errors Co-authored-by: Dzmitry Neviadomski <nevack.d@gmail.com> * refactor: add `TR_CONSTEXPR_VEC` and `TR_CONSTEXPR_STR` * fix: don't use `std::rel_ops` * chore: housekeeping * fix: possible fix for macOS linker error --------- Co-authored-by: Cœur <coeur@gmx.fr> Co-authored-by: Dzmitry Neviadomski <nevack.d@gmail.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
#if __has_feature(modules)
|
|
@import CoreFoundation;
|
|
@import QuickLook;
|
|
#else
|
|
#import <CoreFoundation/CoreFoundation.h>
|
|
#import <CoreFoundation/CFPlugInCOM.h>
|
|
#import <QuickLook/QuickLook.h>
|
|
#endif
|
|
|
|
QL_EXTERN_C_BEGIN
|
|
OSStatus GenerateThumbnailForURL(void* thisInterface, QLThumbnailRequestRef thumbnail, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options, CGSize maxSize);
|
|
void CancelThumbnailGeneration(void* thisInterface, QLThumbnailRequestRef thumbnail);
|
|
QL_EXTERN_C_END
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
Generate a thumbnail for file
|
|
|
|
This function's job is to create thumbnail for designated file as fast as possible
|
|
----------------------------------------------------------------------------- */
|
|
|
|
OSStatus GenerateThumbnailForURL(void* thisInterface, QLThumbnailRequestRef thumbnail, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options, CGSize maxSize)
|
|
{
|
|
// To complete the generator, please implement the function GenerateThumbnailForURL here
|
|
return noErr;
|
|
}
|
|
|
|
void CancelThumbnailGeneration(void* thisInterface, QLThumbnailRequestRef thumbnail)
|
|
{
|
|
// Implement only if supported
|
|
}
|