this repo has no description
1
fork

Configure Feed

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

Create libquit stubs

+165
+2
src/CMakeLists.txt
··· 182 182 ${CMAKE_CURRENT_SOURCE_DIR}/Accelerate/include 183 183 ${CMAKE_CURRENT_SOURCE_DIR}/IOSurface/include 184 184 ${CMAKE_CURRENT_SOURCE_DIR}/external/cocotron/OpenGL/include 185 + ${CMAKE_CURRENT_SOURCE_DIR}/libquit/include 185 186 ) 186 187 187 188 # It must be done in this scope ··· 355 356 add_subdirectory(Accelerate) 356 357 add_subdirectory(IOSurface) 357 358 add_subdirectory(external/cocotron/OpenGL) 359 + add_subdirectory(libquit) 358 360 359 361 # /Applications 360 362 #add_subdirectory(external/TextEdit)
+12
src/libquit/CMakeLists.txt
··· 1 + project(quit) 2 + 3 + set(DYLIB_INSTALL_NAME "/usr/lib/libquit.dylib") 4 + set(DYLIB_COMPAT_VERSION "1.0.0") 5 + set(DYLIB_CURRENT_VERSION "1.0.0") 6 + 7 + add_darling_library(quit SHARED 8 + src/quit.c 9 + ) 10 + make_fat(quit) 11 + target_link_libraries(quit system) 12 + install(TARGETS quit DESTINATION libexec/darling/usr/lib)
+41
src/libquit/include/quit/quit.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + 21 + #ifndef _quit_H_ 22 + #define _quit_H_ 23 + 24 + void* LQCachePort(void); 25 + void* LQForceQuit(void); 26 + void* LQNotifyCpuResource(void); 27 + void* LQNotifyFacelessQuitHappening(void); 28 + void* LQNotifyQuitLikely(void); 29 + void* LQNotifySpinLikely(void); 30 + void* LQNotifyStuckApp(void); 31 + void* LQNotifyUiQuitHappening(void); 32 + void* LQNotifyUnstuckApp(void); 33 + void* LQNotifyWakeupsResource(void); 34 + void* LQReportCpuResource(void); 35 + void* LQReportPotentialHang(void); 36 + void* LQReportPotentialSpin(void); 37 + void* LQReportStuckApp(void); 38 + void* LQReportUnstuckApp(void); 39 + void* LQReportWakeupsResource(void); 40 + 41 + #endif
+110
src/libquit/src/quit.c
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + 21 + #include <quit/quit.h> 22 + #include <stdlib.h> 23 + #include <stdio.h> 24 + 25 + static int verbose = 0; 26 + 27 + __attribute__((constructor)) 28 + static void initme(void) { 29 + verbose = getenv("STUB_VERBOSE") != NULL; 30 + } 31 + 32 + void* LQCachePort(void) { 33 + if (verbose) puts("STUB: LQCachePort called"); 34 + return NULL; 35 + } 36 + 37 + void* LQForceQuit(void) { 38 + if (verbose) puts("STUB: LQForceQuit called"); 39 + return NULL; 40 + } 41 + 42 + void* LQNotifyCpuResource(void) { 43 + if (verbose) puts("STUB: LQNotifyCpuResource called"); 44 + return NULL; 45 + } 46 + 47 + void* LQNotifyFacelessQuitHappening(void) { 48 + if (verbose) puts("STUB: LQNotifyFacelessQuitHappening called"); 49 + return NULL; 50 + } 51 + 52 + void* LQNotifyQuitLikely(void) { 53 + if (verbose) puts("STUB: LQNotifyQuitLikely called"); 54 + return NULL; 55 + } 56 + 57 + void* LQNotifySpinLikely(void) { 58 + if (verbose) puts("STUB: LQNotifySpinLikely called"); 59 + return NULL; 60 + } 61 + 62 + void* LQNotifyStuckApp(void) { 63 + if (verbose) puts("STUB: LQNotifyStuckApp called"); 64 + return NULL; 65 + } 66 + 67 + void* LQNotifyUiQuitHappening(void) { 68 + if (verbose) puts("STUB: LQNotifyUiQuitHappening called"); 69 + return NULL; 70 + } 71 + 72 + void* LQNotifyUnstuckApp(void) { 73 + if (verbose) puts("STUB: LQNotifyUnstuckApp called"); 74 + return NULL; 75 + } 76 + 77 + void* LQNotifyWakeupsResource(void) { 78 + if (verbose) puts("STUB: LQNotifyWakeupsResource called"); 79 + return NULL; 80 + } 81 + 82 + void* LQReportCpuResource(void) { 83 + if (verbose) puts("STUB: LQReportCpuResource called"); 84 + return NULL; 85 + } 86 + 87 + void* LQReportPotentialHang(void) { 88 + if (verbose) puts("STUB: LQReportPotentialHang called"); 89 + return NULL; 90 + } 91 + 92 + void* LQReportPotentialSpin(void) { 93 + if (verbose) puts("STUB: LQReportPotentialSpin called"); 94 + return NULL; 95 + } 96 + 97 + void* LQReportStuckApp(void) { 98 + if (verbose) puts("STUB: LQReportStuckApp called"); 99 + return NULL; 100 + } 101 + 102 + void* LQReportUnstuckApp(void) { 103 + if (verbose) puts("STUB: LQReportUnstuckApp called"); 104 + return NULL; 105 + } 106 + 107 + void* LQReportWakeupsResource(void) { 108 + if (verbose) puts("STUB: LQReportWakeupsResource called"); 109 + return NULL; 110 + }