Revision f871d689 simpletrace.c
b/simpletrace.c | ||
---|---|---|
246 | 246 |
return NULL; /* indicates end of list reached without a match */ |
247 | 247 |
} |
248 | 248 |
|
249 |
void st_change_trace_event_state(const char *tname, bool tstate)
|
|
249 |
bool st_change_trace_event_state(const char *tname, bool tstate)
|
|
250 | 250 |
{ |
251 | 251 |
TraceEvent *tp; |
252 | 252 |
|
253 | 253 |
tp = find_trace_event_by_name(tname); |
254 | 254 |
if (tp) { |
255 | 255 |
tp->state = tstate; |
256 |
return true; |
|
256 | 257 |
} |
258 |
return false; |
|
257 | 259 |
} |
Also available in: Unified diff