mirror of
https://github.com/darlinghq/darling.git
synced 2025-03-01 14:16:31 +00:00
CoreServices fixes
This commit is contained in:
parent
1c7055cf6b
commit
7d7f66cabc
@ -46,7 +46,9 @@ set(CoreServices_SRCS
|
||||
LSApplicationProxy.m
|
||||
LSApplicationWorkspace.m
|
||||
constants.m
|
||||
|
||||
src/FSEvents.c
|
||||
src/LaunchServices.c
|
||||
)
|
||||
|
||||
if (WITH_COREAUDIO)
|
||||
|
@ -112,12 +112,6 @@ int execvpe(const char* name, char** argv, char** envp)
|
||||
return ret;
|
||||
}
|
||||
|
||||
OSStatus LSRegisterURL(CFURLRef inURL, Boolean inUpdate)
|
||||
{
|
||||
printf("STUB: LSRegisterURL");
|
||||
return 0;
|
||||
}
|
||||
|
||||
OSStatus LSOpenApplication(const LSApplicationParameters *appParams, ProcessSerialNumber *outPSN)
|
||||
{
|
||||
if (!appParams)
|
||||
|
@ -39,7 +39,7 @@ FSEventStreamRef FSEventStreamCreate(
|
||||
printf("STUB %s\n", __PRETTY_FUNCTION__);
|
||||
stream = CFAllocatorAllocate(allocator, sizeof(struct __FSEventStream), 0);
|
||||
stream->allocator = allocator;
|
||||
stream->pathsToWatch = pathsToWatch;
|
||||
stream->pathsToWatch = CFArrayCreateCopy(allocator, pathsToWatch);
|
||||
return stream;
|
||||
}
|
||||
|
||||
|
28
src/CoreServices/src/LaunchServices.c
Normal file
28
src/CoreServices/src/LaunchServices.c
Normal file
@ -0,0 +1,28 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2019 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <LaunchServices/LaunchServices.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
OSStatus LSRegisterURL(CFURLRef inURL, Boolean inUpdate)
|
||||
{
|
||||
printf("STUB: LSRegisterURL\n");
|
||||
return 0;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user