summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/plugin/qplugin/invalidplugin/main.cpp
blob: 10b61318572bf461e2994538cce678e8a9cc4b8a (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

#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;
}

}