Changeset View
Changeset View
Standalone View
Standalone View
src/server/linuxdmabuf_v1_interface.cpp
Show First 20 Lines • Show All 422 Lines • ▼ Show 20 Line(s) | |||||
423 | #endif | 423 | #endif | ||
424 | 424 | | |||
425 | V1Iface::Private::Private(V1Iface *q, Display *display) | 425 | V1Iface::Private::Private(V1Iface *q, Display *display) | ||
426 | : Global::Private(display, &zwp_linux_dmabuf_v1_interface, s_version), | 426 | : Global::Private(display, &zwp_linux_dmabuf_v1_interface, s_version), | ||
427 | q(q) | 427 | q(q) | ||
428 | { | 428 | { | ||
429 | } | 429 | } | ||
430 | 430 | | |||
431 | V1Iface::Private::~Private() | 431 | V1Iface::Private::~Private() = default; | ||
432 | { | | |||
433 | delete impl; | | |||
434 | } | | |||
435 | 432 | | |||
436 | void V1Iface::Private::bind(wl_client *client, uint32_t version, uint32_t id) | 433 | void V1Iface::Private::bind(wl_client *client, uint32_t version, uint32_t id) | ||
437 | { | 434 | { | ||
438 | wl_resource *resource = wl_resource_create(client, &zwp_linux_dmabuf_v1_interface, std::min(s_version, version), id); | 435 | wl_resource *resource = wl_resource_create(client, &zwp_linux_dmabuf_v1_interface, std::min(s_version, version), id); | ||
439 | if (!resource) { | 436 | if (!resource) { | ||
440 | wl_client_post_no_memory(client); | 437 | wl_client_post_no_memory(client); | ||
441 | return; | 438 | return; | ||
442 | } | 439 | } | ||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |