summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/plugin/qplugin/invalidplugin/main.cpp
blob: 083f3ad14f69b6781ebc5522e6a9696a96e4f88a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright (C) 2018 Intel Corporation.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#include <qplugin.h>

// be careful when updating to V2, the header is different on ELF systems
QT_PLUGIN_METADATA_SECTION
static const char pluginMetaData[512] = {
    'q', 'p', 'l', 'u', 'g', 'i', 'n', ' ',
    't', 'e', 's', 't', 'f', 'i', 'l', 'e'
};

extern "C" {

const void *qt_plugin_query_metadata()
{
    return pluginMetaData;
}

Q_DECL_EXPORT void *qt_plugin_instance()
{
    return nullptr;
}

}