this repo has no description
1/*
2 This file is part of Darling.
3
4 Copyright (C) 2020 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 <PowerLog/PowerLog.h>
22#include <stdlib.h>
23#include <stdio.h>
24
25static int verbose = 0;
26
27__attribute__((constructor))
28static void initme(void) {
29 verbose = getenv("STUB_VERBOSE") != NULL;
30}
31
32void* PLBatchDropMessages(void)
33{
34 if (verbose) puts("STUB: PLBatchDropMessages called");
35 return NULL;
36}
37
38void* PLBatteryGaugeGetSnapshot(void)
39{
40 if (verbose) puts("STUB: PLBatteryGaugeGetSnapshot called");
41 return NULL;
42}
43
44void* PLBatteryGaugePauseTracingForBundleId(void)
45{
46 if (verbose) puts("STUB: PLBatteryGaugePauseTracingForBundleId called");
47 return NULL;
48}
49
50void* PLBatteryGaugePauseTracingForPid(void)
51{
52 if (verbose) puts("STUB: PLBatteryGaugePauseTracingForPid called");
53 return NULL;
54}
55
56void* PLBatteryGaugePauseTracingForProcessName(void)
57{
58 if (verbose) puts("STUB: PLBatteryGaugePauseTracingForProcessName called");
59 return NULL;
60}
61
62void* PLBatteryGaugeResumeTracingForBundleId(void)
63{
64 if (verbose) puts("STUB: PLBatteryGaugeResumeTracingForBundleId called");
65 return NULL;
66}
67
68void* PLBatteryGaugeResumeTracingForPid(void)
69{
70 if (verbose) puts("STUB: PLBatteryGaugeResumeTracingForPid called");
71 return NULL;
72}
73
74void* PLBatteryGaugeResumeTracingForProcessName(void)
75{
76 if (verbose) puts("STUB: PLBatteryGaugeResumeTracingForProcessName called");
77 return NULL;
78}
79
80void* PLBatteryGaugeStartTracingForBundleId(void)
81{
82 if (verbose) puts("STUB: PLBatteryGaugeStartTracingForBundleId called");
83 return NULL;
84}
85
86void* PLBatteryGaugeStartTracingForPid(void)
87{
88 if (verbose) puts("STUB: PLBatteryGaugeStartTracingForPid called");
89 return NULL;
90}
91
92void* PLBatteryGaugeStartTracingForProcessName(void)
93{
94 if (verbose) puts("STUB: PLBatteryGaugeStartTracingForProcessName called");
95 return NULL;
96}
97
98void* PLBatteryGaugeStopTracingForBundleId(void)
99{
100 if (verbose) puts("STUB: PLBatteryGaugeStopTracingForBundleId called");
101 return NULL;
102}
103
104void* PLBatteryGaugeStopTracingForPid(void)
105{
106 if (verbose) puts("STUB: PLBatteryGaugeStopTracingForPid called");
107 return NULL;
108}
109
110void* PLBatteryGaugeStopTracingForProcessName(void)
111{
112 if (verbose) puts("STUB: PLBatteryGaugeStopTracingForProcessName called");
113 return NULL;
114}
115
116void* PLBatteryGaugeVersion(void)
117{
118 if (verbose) puts("STUB: PLBatteryGaugeVersion called");
119 return NULL;
120}
121
122void* PLBatteryLifeMonitorLogCoreDuetAdmissionEvent(void)
123{
124 if (verbose) puts("STUB: PLBatteryLifeMonitorLogCoreDuetAdmissionEvent called");
125 return NULL;
126}
127
128void* PLBatteryLifeMonitorLogCoreDuetEvent(void)
129{
130 if (verbose) puts("STUB: PLBatteryLifeMonitorLogCoreDuetEvent called");
131 return NULL;
132}
133
134void* PLBatteryLifeMonitorLogCoreDuetEventsAggregate(void)
135{
136 if (verbose) puts("STUB: PLBatteryLifeMonitorLogCoreDuetEventsAggregate called");
137 return NULL;
138}
139
140void* PLBatteryLifeMonitorLogCoreDuetPredictionEvents(void)
141{
142 if (verbose) puts("STUB: PLBatteryLifeMonitorLogCoreDuetPredictionEvents called");
143 return NULL;
144}
145
146void* PLBatteryLifeMonitorLogDuetEvent(void)
147{
148 if (verbose) puts("STUB: PLBatteryLifeMonitorLogDuetEvent called");
149 return NULL;
150}
151
152void* PLBatteryLifeMonitorReportBatteryCapacityForCoreDuet(void)
153{
154 if (verbose) puts("STUB: PLBatteryLifeMonitorReportBatteryCapacityForCoreDuet called");
155 return NULL;
156}
157
158void* PLBatteryLifeMonitorReportCumulativeTotalDiscretionaryEnergyCoreDuet(void)
159{
160 if (verbose) puts("STUB: PLBatteryLifeMonitorReportCumulativeTotalDiscretionaryEnergyCoreDuet called");
161 return NULL;
162}
163
164void* PLBatteryLifeMonitorReportDiscretionaryBudgetForDuet(void)
165{
166 if (verbose) puts("STUB: PLBatteryLifeMonitorReportDiscretionaryBudgetForDuet called");
167 return NULL;
168}
169
170void* PLBatteryLifeMonitorReportEnergyCoreDuet(void)
171{
172 if (verbose) puts("STUB: PLBatteryLifeMonitorReportEnergyCoreDuet called");
173 return NULL;
174}
175
176void* PLBatteryLifeMonitorReportEnergyDuet(void)
177{
178 if (verbose) puts("STUB: PLBatteryLifeMonitorReportEnergyDuet called");
179 return NULL;
180}
181
182void* PLBatteryLifeMonitorStopAllDuetEvents(void)
183{
184 if (verbose) puts("STUB: PLBatteryLifeMonitorStopAllDuetEvents called");
185 return NULL;
186}
187
188void* PLBatteryUsageUIQuery(void)
189{
190 if (verbose) puts("STUB: PLBatteryUsageUIQuery called");
191 return NULL;
192}
193
194void* PLBuildEnergyBucket(void)
195{
196 if (verbose) puts("STUB: PLBuildEnergyBucket called");
197 return NULL;
198}
199
200void* PLBuildEnergyBucketTillNow(void)
201{
202 if (verbose) puts("STUB: PLBuildEnergyBucketTillNow called");
203 return NULL;
204}
205
206void* PLBuildUsageSnapshot(void)
207{
208 if (verbose) puts("STUB: PLBuildUsageSnapshot called");
209 return NULL;
210}
211
212void* PLCopyPowerlog(void)
213{
214 if (verbose) puts("STUB: PLCopyPowerlog called");
215 return NULL;
216}
217
218void* PLCrashMoverCopyPowerlog(void)
219{
220 if (verbose) puts("STUB: PLCrashMoverCopyPowerlog called");
221 return NULL;
222}
223
224void* PLForceBatching(void)
225{
226 if (verbose) puts("STUB: PLForceBatching called");
227 return NULL;
228}
229
230void* PLLogEvent(void)
231{
232 if (verbose) puts("STUB: PLLogEvent called");
233 return NULL;
234}
235
236void* PLLogRegisteredAggregateEvent(void)
237{
238 if (verbose) puts("STUB: PLLogRegisteredAggregateEvent called");
239 return NULL;
240}
241
242void* PLLogRegisteredEvent(int client_id, CFStringRef event_name, CFDictionaryRef event_dictionary, void* last_parameter)
243{
244 if (verbose) puts("STUB: PLLogRegisteredEvent called");
245 return NULL;
246}
247
248void* PLLogRegisteredEventFilterByInterval(void)
249{
250 if (verbose) puts("STUB: PLLogRegisteredEventFilterByInterval called");
251 return NULL;
252}
253
254void* PLLogTimeSensitiveRegisteredEvent(int client_id, CFStringRef event_name, CFDictionaryRef event_dictionary, void* last_parameter)
255{
256 if (verbose) puts("STUB: PLLogTimeSensitiveRegisteredEvent called");
257 return NULL;
258}
259
260void* PLMovePowerlogsToCR(void)
261{
262 if (verbose) puts("STUB: PLMovePowerlogsToCR called");
263 return NULL;
264}
265
266void* PLQuery(void)
267{
268 if (verbose) puts("STUB: PLQuery called");
269 return NULL;
270}
271
272void* PLQueryRegistered(void)
273{
274 if (verbose) puts("STUB: PLQueryRegistered called");
275 return NULL;
276}
277
278void* PLShouldLogEvent(void)
279{
280 if (verbose) puts("STUB: PLShouldLogEvent called");
281 return NULL;
282}
283
284void* PLShouldLogRegisteredEvent(int client_id, CFStringRef event_name)
285{
286 if (verbose) puts("STUB: PLShouldLogRegisteredEvent called");
287 return NULL;
288}
289
290void* PLSysdiagnoseCopyPowerlog(void)
291{
292 if (verbose) puts("STUB: PLSysdiagnoseCopyPowerlog called");
293 return NULL;
294}
295
296void* PLTalkToPowerlogHelper(void)
297{
298 if (verbose) puts("STUB: PLTalkToPowerlogHelper called");
299 return NULL;
300}