this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: add LSCopyAllHandlersForURLScheme stub

feat: add a few more

style: remove both incorrect and unwanted comments

+32
+12
src/frameworks/CoreServices/include/LaunchServices/LSInfoDeprecated.h
··· 196 196 CFStringRef inContentType, 197 197 LSHandlerOptions inOptions); 198 198 199 + extern CFArrayRef 200 + LSCopyAllHandlersForURLScheme( 201 + CFStringRef inURLScheme); 202 + 203 + extern CFArrayRef 204 + LSCopyAllRoleHandlersForContentType( 205 + CFStringRef inContentType, 206 + LSRolesMask inRole); 207 + 208 + extern CFStringRef 209 + LSCopyDefaultHandlerForURLScheme( 210 + CFStringRef inURLScheme); 199 211 200 212 201 213 #pragma pack(pop)
+20
src/frameworks/CoreServices/src/LaunchServices/LSInfo.m
··· 309 309 NSString* extension = [(NSURL*) inURL pathExtension]; 310 310 return LSGetApplicationForInfo(kLSUnknownType, kLSUnknownCreator, (CFStringRef) extension, inRoleMask, outAppRef, outAppURL); 311 311 } 312 + 313 + CFArrayRef LSCopyAllHandlersForURLScheme(CFStringRef inURLScheme) 314 + { 315 + puts("LSCopyAllHandlersForURLScheme STUB"); 316 + // NULL is a safe assumption to fall back on in the stub, since it means none were found. 317 + return NULL; 318 + } 319 + 320 + CFArrayRef LSCopyAllRoleHandlersForContentType(CFStringRef inContentType, LSRolesMask inRole) 321 + { 322 + puts("LSCopyAllRoleHandlersForContentType STUB"); 323 + // NULL is a safe assumption to fall back on in the stub, since it means none were found. 324 + return NULL; 325 + } 326 + 327 + CFStringRef LSCopyDefaultHandlerForURLScheme(CFStringRef inURLScheme) 328 + { 329 + puts("LSCopyDefaultHandlerForURLScheme STUB"); 330 + return NULL; // (could also return "" I guess) 331 + }