this repo has no description
at fixPythonPipStalling 54 lines 1.2 kB view raw
1#ifndef __LSOPEN__ 2#define __LSOPEN__ 3 4#include <CoreFoundation/CoreFoundation.h> 5#include <LaunchServices/LSInfo.h> 6#include <CoreServices/FileManager.h> 7#include <AE/AE.h> 8 9#ifdef __cplusplus 10extern "C" { 11#endif 12 13#pragma pack(push, 2) 14typedef OptionBits LSLaunchFlags; 15 16enum { 17 kLSLaunchDefaults = 0x00000001, 18 kLSLaunchAndPrint = 0x00000002, 19 kLSLaunchAndDisplayErrors = 0x00000040, 20 kLSLaunchDontAddToRecents = 0x00000100, 21 kLSLaunchDontSwitch = 0x00000200, 22 kLSLaunchAsync = 0x00010000, 23 kLSLaunchNewInstance = 0x00080000, 24 kLSLaunchAndHide = 0x00100000, 25 kLSLaunchAndHideOthers = 0x00200000, 26}; 27 28typedef struct LSLaunchURLSpec { 29 _Nullable CFURLRef appURL; 30 _Nullable CFArrayRef itemURLs; 31 const AEDesc * _Nullable passThruParams; 32 LSLaunchFlags launchFlags; 33 void * _Nullable asyncRefCon; 34} LSLaunchURLSpec; 35 36extern OSStatus 37LSOpenCFURLRef( 38 CFURLRef inURL, 39 _Nullable CFURLRef *_Nullable outLaunchedURL); 40 41extern OSStatus 42LSOpenFromURLSpec( 43 const LSLaunchURLSpec * inLaunchSpec, 44 _Nullable CFURLRef *_Nullable outLaunchedURL); 45 46#pragma pack(pop) 47 48#ifdef __cplusplus 49} 50#endif 51 52#include <LaunchServices/LSOpenDeprecated.h> 53 54#endif