diff --git a/src/frameworks/CoreServices/include/SearchKit/SKIndex.h b/src/frameworks/CoreServices/include/SearchKit/SKIndex.h new file mode 100644 index 000000000..858a6c8b4 --- /dev/null +++ b/src/frameworks/CoreServices/include/SearchKit/SKIndex.h @@ -0,0 +1,33 @@ +/* + This file is part of Darling. + + Copyright (C) 2025 Darling Developers + + 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 . +*/ + +#ifndef SKINDEX_H_ +#define SKINDEX_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +extern void SKLoadDefaultExtractorPlugIns(void); + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/src/frameworks/CoreServices/src/LaunchServices/constants.c b/src/frameworks/CoreServices/src/LaunchServices/constants.c index 129ca052a..8996525d4 100644 --- a/src/frameworks/CoreServices/src/LaunchServices/constants.c +++ b/src/frameworks/CoreServices/src/LaunchServices/constants.c @@ -28,6 +28,8 @@ const CFStringRef _kLSExecutableFormatCFMKey = CFSTR("LSExecutableCFMFormat"); const CFStringRef _kLSASNKey = CFSTR("LSASN"); +const CFStringRef kLSItemContentType = CFSTR("LSItemContentType"); + const CFStringRef kLSSharedFileListFavoriteItems = CFSTR("com.apple.LSSharedFileList.FavoriteItems"); const CFStringRef kLSSharedFileListFavoriteVolumes = CFSTR("com.apple.LSSharedFileList.FavoriteVolumes"); const CFStringRef kLSSharedFileListGlobalLoginItems = CFSTR("com.apple.LSSharedFileList.GlobalLoginItems"); diff --git a/src/frameworks/CoreServices/src/SearchKit/CMakeLists.txt b/src/frameworks/CoreServices/src/SearchKit/CMakeLists.txt index 5bcb49c07..84141a194 100644 --- a/src/frameworks/CoreServices/src/SearchKit/CMakeLists.txt +++ b/src/frameworks/CoreServices/src/SearchKit/CMakeLists.txt @@ -14,6 +14,7 @@ add_framework(SearchKit SOURCES Analysis.m + SKIndex.c DEPENDENCIES CoreFoundation diff --git a/src/frameworks/CoreServices/src/SearchKit/SKIndex.c b/src/frameworks/CoreServices/src/SearchKit/SKIndex.c new file mode 100644 index 000000000..88cafcad0 --- /dev/null +++ b/src/frameworks/CoreServices/src/SearchKit/SKIndex.c @@ -0,0 +1,25 @@ +/* + This file is part of Darling. + + Copyright (C) 2025 Darling Developers + + 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 . +*/ + +#include +#include + +void SKLoadDefaultExtractorPlugIns(void) { + printf("STUB %s\n", __PRETTY_FUNCTION__); +}