1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#include <QtWaylandClient/private/qwaylandserverbufferintegrationplugin_p.h>
5#include "shmserverbufferintegration.h"
6
7QT_BEGIN_NAMESPACE
8
9namespace QtWaylandClient {
10
11class ShmServerBufferPlugin : public QWaylandServerBufferIntegrationPlugin
12{
13 Q_OBJECT
14 Q_PLUGIN_METADATA(IID QWaylandServerBufferIntegrationFactoryInterface_iid FILE "shm-emulation-server.json")
15public:
16 QWaylandServerBufferIntegration *create(const QString&, const QStringList&) override;
17};
18
19QWaylandServerBufferIntegration *ShmServerBufferPlugin::create(const QString& system, const QStringList& paramList)
20{
21 Q_UNUSED(paramList);
22 Q_UNUSED(system);
23 return new ShmServerBufferIntegration();
24}
25
26}
27
28QT_END_NAMESPACE
29
30#include "main.moc"
31

source code of qtwayland/src/plugins/hardwareintegration/client/shm-emulation-server/main.cpp