blob: 84e2b981ce508d0ffcaeb950fa13e54b9a450746 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <stdint.h>
#include "base/macros.h"
struct wl_client;
namespace exo {
class Seat;
namespace wayland {
class SerialTracker;
constexpr uint32_t kWlSeatVersion = 6;
struct WaylandSeat {
WaylandSeat(Seat* seat, SerialTracker* serial_tracker)
: seat(seat), serial_tracker(serial_tracker) {}
// Owned by Display, which always outlives wl_seat.
Seat* const seat;
// Owned by Server, which always outlives wl_seat.
SerialTracker* const serial_tracker;
void bind_seat(wl_client* client, void* data, uint32_t version, uint32_t id);
} // namespace wayland
} // namespace exo