KiCad PCB EDA Suite
Loading...
Searching...
No Matches
kicad_plugin.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2015 Cirilo Bernardo <[email protected]>
5 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <https://www.gnu.org/licenses/>.
19 */
20
27
28#ifndef KICAD_PLUGIN_H
29#define KICAD_PLUGIN_H
30
31#ifndef _WIN32
32 #ifndef KICAD_PLUGIN_EXPORT
33 #define KICAD_PLUGIN_EXPORT extern "C" __attribute__((__visibility__("default")))
34 #endif
35#else
36 #ifndef KICAD_PLUGIN_EXPORT
37 #define KICAD_PLUGIN_EXPORT extern "C" __declspec( dllexport )
38 #endif
39#endif
40
50
63KICAD_PLUGIN_EXPORT void GetClassVersion( unsigned char* Major, unsigned char* Minor,
64 unsigned char* Patch, unsigned char* Revision );
65
75KICAD_PLUGIN_EXPORT bool CheckClassVersion( unsigned char Major, unsigned char Minor,
76 unsigned char Patch, unsigned char Revision );
77
86KICAD_PLUGIN_EXPORT const char* GetKicadPluginName( void );
87
88
99KICAD_PLUGIN_EXPORT void GetPluginVersion( unsigned char* Major, unsigned char* Minor,
100 unsigned char* Patch, unsigned char* Revision );
101
102#endif // KICAD_PLUGIN_H
KICAD_PLUGIN_EXPORT bool CheckClassVersion(unsigned char Major, unsigned char Minor, unsigned char Patch, unsigned char Revision)
Return true if the class version reported by the Plugin Loader is compatible with the specific implem...
Definition 3d_plugin.h:66
KICAD_PLUGIN_EXPORT void GetPluginVersion(unsigned char *Major, unsigned char *Minor, unsigned char *Patch, unsigned char *Revision)
Retrieve the version of the instantiated plugin for informational purposes.
#define KICAD_PLUGIN_EXPORT
KICAD_PLUGIN_EXPORT char const * GetKicadPluginClass(void)
Return the name of the implemented plugin class, for example 3DPLUGIN.
Definition 3d_plugin.h:42
KICAD_PLUGIN_EXPORT const char * GetKicadPluginName(void)
Return the name of the plugin instance, for example IDFv3.
KICAD_PLUGIN_EXPORT void GetClassVersion(unsigned char *Major, unsigned char *Minor, unsigned char *Patch, unsigned char *Revision)
Retrieve the version of the Plugin Class.
Definition 3d_plugin.h:48