13#include "wrap/android.content.h"
14#include "wrap/android.view.h"
18namespace org::freedesktop::monado::ipc {
37 Meta::data().init,
static_cast<long long>(
reinterpret_cast<intptr_t
>(nativePointer))));
44 return object().call<
void>(
Meta::data().markAsDiscardedByNative);
51 return object().call<int32_t>(
Meta::data().blockingConnect, context.object(), packageName);
57 return object().call<
void>(
Meta::data().passAppSurface, surface.object());
Wrapper for org.freedesktop.monado.ipc.Client objects.
Definition: org.freedesktop.monado.ipc.hpp:37
IMonado getMonado() const
Getter for the monado field value.
Definition: org.freedesktop.monado.ipc.impl.hpp:20
void markAsDiscardedByNative()
Wrapper for the markAsDiscardedByNative method.
Definition: org.freedesktop.monado.ipc.impl.hpp:41
bool getFailed() const
Getter for the failed field value.
Definition: org.freedesktop.monado.ipc.impl.hpp:27
int32_t blockingConnect(android::content::Context const &context, std::string const &packageName)
Wrapper for the blockingConnect method.
Definition: org.freedesktop.monado.ipc.impl.hpp:48
static Client construct(void *nativePointer)
Wrapper for a constructor.
Definition: org.freedesktop.monado.ipc.impl.hpp:34
void passAppSurface(android::view::Surface const &surface)
Wrapper for the passAppSurface method.
Definition: org.freedesktop.monado.ipc.impl.hpp:54
static const cJSON * get(const cJSON *json, const char *f)
Less typing.
Definition: u_json.c:36