mirror of
https://github.com/InstanceBrick/nightcap.git
synced 2026-10-17 21:00:47 +02:00
14 lines
618 B
C
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_
|