11#ifndef O2_FRAMEWORK_DRIVERCLIENT_H_
12#define O2_FRAMEWORK_DRIVERCLIENT_H_
40 virtual void tell(
char const*
msg,
size_t s,
bool flush =
true) = 0;
41 void tell(std::string_view
const&
msg,
bool flush =
true)
47 void observe(
char const* eventType, std::function<
void(std::string_view)> callback);
63 std::vector<DriverEventMatcher> mEventMatchers;
A service API to communicate with the driver.
void dispatch(std::string_view event)
Dispatch an event.
void observe(char const *eventType, std::function< void(std::string_view)> callback)
Request action on some eventType notified by the driver.
static constexpr ServiceKind service_kind
virtual void flushPending(ServiceRegistryRef mainThreadRef)=0
virtual void tell(char const *msg, size_t s, bool flush=true)=0
void tell(std::string_view const &msg, bool flush=true)
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)
Defining PrimaryVertex explicitly as messageable.
ServiceKind
The kind of service we are asking for.
std::function< void(std::string_view)> callback
uint64_t const void const *restrict const msg