Files
InstanceBrick--nightcap/include/mocktail/platform/android_log_observer.h
T
2026-08-16 04:19:32 +03:00

14 lines
618 B
C

#ifndef MOCKTAIL_PLATFORM_ANDROID_LOG_OBSERVER_H_
#define MOCKTAIL_PLATFORM_ANDROID_LOG_OBSERVER_H_
// Observes the fully formatted payload written through Mocktail's liblog
// adapter. The callback must not retain tag or message; both are borrowed for
// the duration of the call. Passing nullptr removes the current observer.
using MocktailAndroidLogObserver = void (*)(int priority, const char* tag,
const char* message);
extern "C" void mocktail_android_log_set_observer(
MocktailAndroidLogObserver observer);
#endif // MOCKTAIL_PLATFORM_ANDROID_LOG_OBSERVER_H_