4 * Copyright (C) 2011-2013 Team XBMC
7 * This Program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2, or (at your option)
12 * This Program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with XBMC; see the file COPYING. If not, see
19 * <http://www.gnu.org/licenses/>.
24 #include <boost/noncopyable.hpp>
26 #include <wayland-client.h>
28 class IDllWaylandClient;
34 class IWaylandRegistration
38 virtual ~IWaylandRegistration() {};
40 virtual bool OnCompositorAvailable(struct wl_compositor *) = 0;
41 virtual bool OnShellAvailable(struct wl_shell *) = 0;
42 virtual bool OnSeatAvailable(struct wl_seat *) = 0;
50 Registry(IDllWaylandClient &clientLibrary,
51 struct wl_display *display,
52 IWaylandRegistration ®istration);
55 struct wl_registry * GetWlRegistry();
57 static void HandleGlobalCallback(void *, struct wl_registry *,
58 uint32_t, const char *, uint32_t);
59 static void HandleRemoveGlobalCallback(void *, struct wl_registry *,
64 static const struct wl_registry_listener m_listener;
66 IDllWaylandClient &m_clientLibrary;
67 struct wl_registry *m_registry;
68 IWaylandRegistration &m_registration;
70 void HandleGlobal(uint32_t, const char *, uint32_t);
71 void HandleRemoveGlobal(uint32_t);