SpotlightDaemon.m
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 <SpotlightDaemon/SpotlightDaemon.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* BulkDeleteAttributes(void) { 33 if (verbose) puts("STUB: BulkDeleteAttributes called"); 34 return NULL; 35 } 36 37 void* SDTraceAdd(void) { 38 if (verbose) puts("STUB: SDTraceAdd called"); 39 return NULL; 40 } 41 42 void* SDTraceDescription(void) { 43 if (verbose) puts("STUB: SDTraceDescription called"); 44 return NULL; 45 } 46 47 void* SDTransactionCreate(void) { 48 if (verbose) puts("STUB: SDTransactionCreate called"); 49 return NULL; 50 } 51 52 void* SDTransactionDone(void) { 53 if (verbose) puts("STUB: SDTransactionDone called"); 54 return NULL; 55 } 56 57 void* SISynchedOpWithBlock(void) { 58 if (verbose) puts("STUB: SISynchedOpWithBlock called"); 59 return NULL; 60 } 61 62 void* SISynchedOpWithBlockPropagatingPriority(void) { 63 if (verbose) puts("STUB: SISynchedOpWithBlockPropagatingPriority called"); 64 return NULL; 65 } 66 67 void* blockRoutine(void) { 68 if (verbose) puts("STUB: blockRoutine called"); 69 return NULL; 70 } 71 72 void* delayedOpBlockCompleteCallback(void) { 73 if (verbose) puts("STUB: delayedOpBlockCompleteCallback called"); 74 return NULL; 75 } 76 77 void* startAgents(void) { 78 if (verbose) puts("STUB: startAgents called"); 79 return NULL; 80 } 81 82 void* startAllAgents(void) { 83 if (verbose) puts("STUB: startAllAgents called"); 84 return NULL; 85 } 86 87 void* startIndexAgent(void) { 88 if (verbose) puts("STUB: startIndexAgent called"); 89 return NULL; 90 } 91 92 void* syncFinished(void) { 93 if (verbose) puts("STUB: syncFinished called"); 94 return NULL; 95 } 96 97 void* unpauseCallback(void) { 98 if (verbose) puts("STUB: unpauseCallback called"); 99 return NULL; 100 }