diff --git a/src/frameworks/CoreServices/include/LaunchServices/LSInfoDeprecated.h b/src/frameworks/CoreServices/include/LaunchServices/LSInfoDeprecated.h index 1af2977b2..c167c3aae 100644 --- a/src/frameworks/CoreServices/include/LaunchServices/LSInfoDeprecated.h +++ b/src/frameworks/CoreServices/include/LaunchServices/LSInfoDeprecated.h @@ -196,6 +196,18 @@ LSSetHandlerOptionsForContentType( CFStringRef inContentType, LSHandlerOptions inOptions); +extern CFArrayRef +LSCopyAllHandlersForURLScheme( + CFStringRef inURLScheme); + +extern CFArrayRef +LSCopyAllRoleHandlersForContentType( + CFStringRef inContentType, + LSRolesMask inRole); + +extern CFStringRef +LSCopyDefaultHandlerForURLScheme( + CFStringRef inURLScheme); #pragma pack(pop) diff --git a/src/frameworks/CoreServices/src/LaunchServices/LSInfo.m b/src/frameworks/CoreServices/src/LaunchServices/LSInfo.m index 8f1d1b42b..4cb2a4941 100644 --- a/src/frameworks/CoreServices/src/LaunchServices/LSInfo.m +++ b/src/frameworks/CoreServices/src/LaunchServices/LSInfo.m @@ -309,3 +309,23 @@ OSStatus LSGetApplicationForURL(CFURLRef inURL, LSRolesMask inRoleMask, FSRef *o NSString* extension = [(NSURL*) inURL pathExtension]; return LSGetApplicationForInfo(kLSUnknownType, kLSUnknownCreator, (CFStringRef) extension, inRoleMask, outAppRef, outAppURL); } + +CFArrayRef LSCopyAllHandlersForURLScheme(CFStringRef inURLScheme) +{ + puts("LSCopyAllHandlersForURLScheme STUB"); + // NULL is a safe assumption to fall back on in the stub, since it means none were found. + return NULL; +} + +CFArrayRef LSCopyAllRoleHandlersForContentType(CFStringRef inContentType, LSRolesMask inRole) +{ + puts("LSCopyAllRoleHandlersForContentType STUB"); + // NULL is a safe assumption to fall back on in the stub, since it means none were found. + return NULL; +} + +CFStringRef LSCopyDefaultHandlerForURLScheme(CFStringRef inURLScheme) +{ + puts("LSCopyDefaultHandlerForURLScheme STUB"); + return NULL; // (could also return "" I guess) +}