Changeset View
Changeset View
Standalone View
Standalone View
src/client/registry.cpp
Show First 20 Lines • Show All 109 Lines • ▼ Show 20 Line(s) | 109 | struct SuppertedInterfaceData { | |||
---|---|---|---|---|---|
110 | quint32 maxVersion; | 110 | quint32 maxVersion; | ||
111 | QByteArray name; | 111 | QByteArray name; | ||
112 | const wl_interface *interface; | 112 | const wl_interface *interface; | ||
113 | void (Registry::*announcedSignal)(quint32, quint32); | 113 | void (Registry::*announcedSignal)(quint32, quint32); | ||
114 | void (Registry::*removedSignal)(quint32); | 114 | void (Registry::*removedSignal)(quint32); | ||
115 | }; | 115 | }; | ||
116 | static const QMap<Registry::Interface, SuppertedInterfaceData> s_interfaces = { | 116 | static const QMap<Registry::Interface, SuppertedInterfaceData> s_interfaces = { | ||
117 | {Registry::Interface::Compositor, { | 117 | {Registry::Interface::Compositor, { | ||
118 | 3, | 118 | 4, | ||
119 | QByteArrayLiteral("wl_compositor"), | 119 | QByteArrayLiteral("wl_compositor"), | ||
120 | &wl_compositor_interface, | 120 | &wl_compositor_interface, | ||
121 | &Registry::compositorAnnounced, | 121 | &Registry::compositorAnnounced, | ||
122 | &Registry::compositorRemoved | 122 | &Registry::compositorRemoved | ||
123 | }}, | 123 | }}, | ||
124 | {Registry::Interface::DataDeviceManager, { | 124 | {Registry::Interface::DataDeviceManager, { | ||
125 | 3, | 125 | 3, | ||
126 | QByteArrayLiteral("wl_data_device_manager"), | 126 | QByteArrayLiteral("wl_data_device_manager"), | ||
▲ Show 20 Lines • Show All 742 Lines • Show Last 20 Lines |