Commit 502e1c5d authored by Martin Flöser's avatar Martin Flöser
Browse files

Fix doxygen generation

Doxygen doesn't like our callback listener at all. We need to hide
it from doxygen, otherwise docu doesn't get generated.
parent bae5bb0e
......@@ -30,9 +30,11 @@ namespace KWayland
namespace Client
{
#ifndef DOXYGEN_SHOULD_SKIP_THIS
const struct wl_buffer_listener Buffer::Private::s_listener = {
Buffer::Private::releasedCallback
};
#endif
Buffer::Private::Private(Buffer *q, ShmPool *parent, wl_buffer *nativeBuffer, const QSize &size, int32_t stride, size_t offset, Format format)
: shm(parent)
......
......@@ -47,9 +47,11 @@ private:
static const struct wl_data_offer_listener s_listener;
};
#ifndef DOXYGEN_SHOULD_SKIP_THIS
const struct wl_data_offer_listener DataOffer::Private::s_listener = {
offerCallback
};
#endif
DataOffer::Private::Private(wl_data_offer *offer, DataOffer *q)
: q(q)
......
......@@ -303,6 +303,7 @@ EventQueue *Registry::eventQueue()
return d->queue;
}
#ifndef DOXYGEN_SHOULD_SKIP_THIS
const struct wl_registry_listener Registry::Private::s_registryListener = {
globalAnnounce,
globalRemove
......@@ -311,6 +312,7 @@ const struct wl_registry_listener Registry::Private::s_registryListener = {
const struct wl_callback_listener Registry::Private::s_callbackListener = {
globalSync
};
#endif
void Registry::Private::globalAnnounce(void *data, wl_registry *registry, uint32_t name, const char *interface, uint32_t version)
{
......
......@@ -171,11 +171,13 @@ void ShellSurface::destroy()
d->surface.destroy();
}
#ifndef DOXYGEN_SHOULD_SKIP_THIS
const struct wl_shell_surface_listener ShellSurface::Private::s_listener = {
pingCallback,
configureCallback,
popupDoneCallback
};
#endif
void ShellSurface::Private::configureCallback(void *data, wl_shell_surface *shellSurface, uint32_t edges, int32_t width, int32_t height)
{
......
......@@ -149,9 +149,11 @@ void Surface::Private::handleFrameCallback()
emit q->frameRendered();
}
#ifndef DOXYGEN_SHOULD_SKIP_THIS
const struct wl_callback_listener Surface::Private::s_listener = {
frameCallback
};
#endif
void Surface::Private::setupFrameCallback()
{
......
......@@ -55,10 +55,12 @@ private:
static const struct org_kde_kwin_blur_manager_interface s_interface;
};
#ifndef DOXYGEN_SHOULD_SKIP_THIS
const struct org_kde_kwin_blur_manager_interface BlurManagerInterface::Private::s_interface = {
createCallback,
unsetCallback
};
#endif
BlurManagerInterface::Private::Private(BlurManagerInterface *q, Display *d)
: Global::Private(d, &org_kde_kwin_blur_manager_interface, s_version)
......@@ -155,11 +157,13 @@ private:
static const struct org_kde_kwin_blur_interface s_interface;
};
#ifndef DOXYGEN_SHOULD_SKIP_THIS
const struct org_kde_kwin_blur_interface BlurInterface::Private::s_interface = {
commitCallback,
setRegionCallback,
releaseCallback
};
#endif
void BlurInterface::Private::commitCallback(wl_client *client, wl_resource *resource)
{
......
......@@ -58,10 +58,12 @@ CompositorInterface::Private::Private(CompositorInterface *q, Display *d)
{
}
#ifndef DOXYGEN_SHOULD_SKIP_THIS
const struct wl_compositor_interface CompositorInterface::Private::s_interface = {
createSurfaceCallback,
createRegionCallback
};
#endif
CompositorInterface::CompositorInterface(Display *display, QObject *parent)
: Global(new Private(this, display), parent)
......
......@@ -55,10 +55,12 @@ private:
static const struct org_kde_kwin_contrast_manager_interface s_interface;
};
#ifndef DOXYGEN_SHOULD_SKIP_THIS
const struct org_kde_kwin_contrast_manager_interface ContrastManagerInterface::Private::s_interface = {
createCallback,
unsetCallback
};
#endif
ContrastManagerInterface::Private::Private(ContrastManagerInterface *q, Display *d)
: Global::Private(d, &org_kde_kwin_contrast_manager_interface, s_version)
......@@ -164,6 +166,7 @@ private:
static const struct org_kde_kwin_contrast_interface s_interface;
};
#ifndef DOXYGEN_SHOULD_SKIP_THIS
const struct org_kde_kwin_contrast_interface ContrastInterface::Private::s_interface = {
commitCallback,
setRegionCallback,
......@@ -172,6 +175,7 @@ const struct org_kde_kwin_contrast_interface ContrastInterface::Private::s_inter
setSaturationCallback,
releaseCallback
};
#endif
void ContrastInterface::Private::commitCallback(wl_client *client, wl_resource *resource)
{
......
......@@ -62,11 +62,13 @@ private:
static const struct wl_data_device_interface s_interface;
};
#ifndef DOXYGEN_SHOULD_SKIP_THIS
const struct wl_data_device_interface DataDeviceInterface::Private::s_interface = {
startDragCallback,
setSelectionCallback,
releaseCallback
};
#endif
DataDeviceInterface::Private::Private(SeatInterface *seat, DataDeviceInterface *q, DataDeviceManagerInterface *manager, wl_resource *parentResource)
: Resource::Private(q, manager, parentResource, &wl_data_device_interface, &s_interface)
......
......@@ -52,10 +52,12 @@ private:
static const struct wl_data_device_manager_interface s_interface;
};
#ifndef DOXYGEN_SHOULD_SKIP_THIS
const struct wl_data_device_manager_interface DataDeviceManagerInterface::Private::s_interface = {
createDataSourceCallback,
getDataDeviceCallback
};
#endif
DataDeviceManagerInterface::Private::Private(DataDeviceManagerInterface *q, Display *d)
: Global::Private(d, &wl_data_device_manager_interface, s_version)
......
......@@ -51,11 +51,13 @@ private:
static const struct wl_data_offer_interface s_interface;
};
#ifndef DOXYGEN_SHOULD_SKIP_THIS
const struct wl_data_offer_interface DataOfferInterface::Private::s_interface = {
acceptCallback,
receiveCallback,
destroyCallback
};
#endif
DataOfferInterface::Private::Private(DataSourceInterface *source, DataDeviceInterface *parentInterface, DataOfferInterface *q, wl_resource *parentResource)
: Resource::Private(q, nullptr, parentResource, &wl_data_offer_interface, &s_interface)
......
......@@ -52,10 +52,12 @@ private:
const static struct wl_data_source_interface s_interface;
};
#ifndef DOXYGEN_SHOULD_SKIP_THIS
const struct wl_data_source_interface DataSourceInterface::Private::s_interface = {
offerCallback,
destroyCallack
};
#endif
DataSourceInterface::Private::Private(DataSourceInterface *q, DataDeviceManagerInterface *parent, wl_resource *parentResource)
: Resource::Private(q, parent, parentResource, &wl_data_source_interface, &s_interface)
......
......@@ -68,12 +68,14 @@ private:
FakeInputDevice *q;
};
#ifndef DOXYGEN_SHOULD_SKIP_THIS
const struct org_kde_kwin_fake_input_interface FakeInputInterface::Private::s_interface = {
authenticateCallback,
pointerMotionCallback,
buttonCallback,
axisCallback
};
#endif
FakeInputInterface::Private::Private(FakeInputInterface *q, Display *d)
: Global::Private(d, &org_kde_kwin_fake_input_interface, s_version)
......
......@@ -72,9 +72,11 @@ private:
static const struct org_kde_kwin_idle_timeout_interface s_interface;
};
#ifndef DOXYGEN_SHOULD_SKIP_THIS
const struct org_kde_kwin_idle_interface IdleInterface::Private::s_interface = {
getIdleTimeoutCallback
};
#endif
IdleInterface::Private::Private(IdleInterface *q, Display *d)
: Global::Private(d, &org_kde_kwin_idle_interface, s_version)
......@@ -121,10 +123,12 @@ IdleInterface::IdleInterface(Display *display, QObject *parent)
IdleInterface::~IdleInterface() = default;
#ifndef DOXYGEN_SHOULD_SKIP_THIS
const struct org_kde_kwin_idle_timeout_interface IdleTimeoutInterface::Private::s_interface = {
releaseCallback,
simulateUserActivityCallback
};
#endif
IdleTimeoutInterface::Private::Private(SeatInterface *seat, IdleTimeoutInterface *q, IdleInterface *manager, wl_resource *parentResource)
: Resource::Private(q, manager, parentResource, &org_kde_kwin_idle_timeout_interface, &s_interface)
......
......@@ -62,9 +62,11 @@ KeyboardInterface::Private::Private(SeatInterface *s, wl_resource *parentResourc
{
}
#ifndef DOXYGEN_SHOULD_SKIP_THIS
const struct wl_keyboard_interface KeyboardInterface::Private::s_interface {
releaseCallback
};
#endif
KeyboardInterface::KeyboardInterface(SeatInterface *parent, wl_resource *parentResource)
: Resource(new Private(parent, parentResource, this), parent)
......
......@@ -57,10 +57,11 @@ PlasmaShellInterface::Private::Private(PlasmaShellInterface *q, Display *d)
{
}
#ifndef DOXYGEN_SHOULD_SKIP_THIS
const struct org_kde_plasma_shell_interface PlasmaShellInterface::Private::s_interface = {
createSurfaceCallback
};
#endif
class PlasmaShellSurfaceInterface::Private : public Resource::Private
......@@ -148,6 +149,7 @@ PlasmaShellSurfaceInterface::Private::Private(PlasmaShellSurfaceInterface *q, Pl
{
}
#ifndef DOXYGEN_SHOULD_SKIP_THIS
const struct org_kde_plasma_surface_interface PlasmaShellSurfaceInterface::Private::s_interface = {
destroyCallback,
setOutputCallback,
......@@ -155,6 +157,7 @@ const struct org_kde_plasma_surface_interface PlasmaShellSurfaceInterface::Priva
setRoleCallback,
setPanelBehaviorCallback
};
#endif
PlasmaShellSurfaceInterface::PlasmaShellSurfaceInterface(PlasmaShellInterface *shell, SurfaceInterface *parent, wl_resource *parentResource)
: Resource(new Private(this, shell, parent, parentResource), parent)
......
......@@ -106,10 +106,12 @@ PlasmaWindowManagementInterface::Private::Private(PlasmaWindowManagementInterfac
{
}
#ifndef DOXYGEN_SHOULD_SKIP_THIS
const struct org_kde_plasma_window_management_interface PlasmaWindowManagementInterface::Private::s_interface = {
showDesktopCallback,
getWindowCallback
};
#endif
void PlasmaWindowManagementInterface::Private::sendShowingDesktopState()
{
......@@ -234,11 +236,13 @@ PlasmaWindowInterface *PlasmaWindowManagementInterface::createWindow(QObject *pa
return window;
}
#ifndef DOXYGEN_SHOULD_SKIP_THIS
const struct org_kde_plasma_window_interface PlasmaWindowInterface::Private::s_interface = {
setStateCallback,
setVirtualDesktopCallback,
closeCallback
};
#endif
PlasmaWindowInterface::Private::Private(PlasmaWindowManagementInterface *wm, PlasmaWindowInterface *q)
: q(q)
......
......@@ -91,10 +91,12 @@ void PointerInterface::Private::setCursor(quint32 serial, SurfaceInterface *surf
}
}
#ifndef DOXYGEN_SHOULD_SKIP_THIS
const struct wl_pointer_interface PointerInterface::Private::s_interface = {
setCursorCallback,
releaseCallback
};
#endif
PointerInterface::PointerInterface(SeatInterface *parent, wl_resource *parentResource)
: Resource(new Private(parent, parentResource, this), parent)
......
......@@ -57,10 +57,11 @@ QtSurfaceExtensionInterface::Private::Private(QtSurfaceExtensionInterface *q, Di
{
}
#ifndef DOXYGEN_SHOULD_SKIP_THIS
const struct qt_surface_extension_interface QtSurfaceExtensionInterface::Private::s_interface = {
createSurfaceCallback
};
#endif
class QtExtendedSurfaceInterface::Private : public Resource::Private
......@@ -140,6 +141,7 @@ QtExtendedSurfaceInterface::Private::Private(QtExtendedSurfaceInterface *q, QtSu
{
}
#ifndef DOXYGEN_SHOULD_SKIP_THIS
const struct qt_extended_surface_interface QtExtendedSurfaceInterface::Private::s_interface = {
updateGenericPropertyCallback,
setContentOrientationMaskCallback,
......@@ -147,6 +149,7 @@ const struct qt_extended_surface_interface QtExtendedSurfaceInterface::Private::
raiseCallback,
lowerCallback
};
#endif
void QtExtendedSurfaceInterface::Private::lowerCallback(wl_client *client, wl_resource *resource)
{
......
......@@ -49,11 +49,13 @@ private:
static const struct wl_region_interface s_interface;
};
#ifndef DOXYGEN_SHOULD_SKIP_THIS
const struct wl_region_interface RegionInterface::Private::s_interface = {
destroyCallback,
addCallback,
subtractCallback
};
#endif
RegionInterface::Private::Private(CompositorInterface *compositor, RegionInterface *q, wl_resource *parentResource)
: Resource::Private(q, compositor, parentResource, &wl_region_interface, &s_interface)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment