|
102 | 102 | return retval;
|
103 | 103 | }
|
104 | 104 |
|
105 |
| -// Expected in: /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices |
106 |
| -// WARN: Deprecated. |
107 |
| -CFArrayRef LSCopyAllHandlersForURLScheme(CFStringRef inURLScheme) |
108 |
| -{ |
109 |
| - puts("LSCopyAllHandlersForURLScheme STUB"); |
110 |
| - // NULL is a safe assumption to fall back on in the stub, since it means none were found. |
111 |
| - return NULL; |
112 |
| -} |
113 |
| - |
114 | 105 | CFArrayRef LSCopyApplicationURLsForBundleIdentifier(CFStringRef inBundleIdentifier, CFErrorRef _Nullable *outError)
|
115 | 106 | {
|
116 | 107 | if (!inBundleIdentifier)
|
@@ -318,3 +309,30 @@ OSStatus LSGetApplicationForURL(CFURLRef inURL, LSRolesMask inRoleMask, FSRef *o
|
318 | 309 | NSString* extension = [(NSURL*) inURL pathExtension];
|
319 | 310 | return LSGetApplicationForInfo(kLSUnknownType, kLSUnknownCreator, (CFStringRef) extension, inRoleMask, outAppRef, outAppURL);
|
320 | 311 | }
|
| 312 | + |
| 313 | +// Expected in: /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices |
| 314 | +// WARN: Deprecated. |
| 315 | +CFArrayRef LSCopyAllHandlersForURLScheme(CFStringRef inURLScheme) |
| 316 | +{ |
| 317 | + puts("LSCopyAllHandlersForURLScheme STUB"); |
| 318 | + // NULL is a safe assumption to fall back on in the stub, since it means none were found. |
| 319 | + return NULL; |
| 320 | +} |
| 321 | + |
| 322 | +// Expected in: /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices |
| 323 | +// WARN: Deprecated. |
| 324 | +CFArrayRef LSCopyAllRoleHandlersForContentType(CFStringRef inContentType, LSRolesMask inRole) |
| 325 | +{ |
| 326 | + puts("LSCopyAllRoleHandlersForContentType STUB"); |
| 327 | + // NULL is a safe assumption to fall back on in the stub, since it means none were found. |
| 328 | + return NULL; |
| 329 | +} |
| 330 | + |
| 331 | +// Expected in: /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices |
| 332 | +// WARN: Deprecated. |
| 333 | +CFStringRef LSCopyDefaultHandlerForURLScheme(CFStringRef inURLScheme) |
| 334 | +{ |
| 335 | + puts("LSCopyDefaultHandlerForURLScheme STUB"); |
| 336 | + // "no string"? (could also return "" I guess) |
| 337 | + return NULL; |
| 338 | +} |
0 commit comments