Initial commit of module generator code

This commit is contained in:
Oliver Hamlet
2016-08-07 21:23:53 +01:00
parent 4cacd3c30e
commit 415e048261
3 changed files with 116 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
/* LOOT
A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
Fallout: New Vegas.
Copyright (C) 2012-2016 WrinklyNinja
This file is part of LOOT.
LOOT is free software: you can redistribute
it and/or modify it under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later version.
LOOT is distributed in the hope that it will
be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with LOOT. If not, see
<https://www.gnu.org/licenses/>.
*/
#include <loot/api.h>
#include <pybind11/pybind11.h>
PYBIND11_PLUGIN(loot_api) {
pybind11::module m("loot_api", "A Python module that wraps the LOOT API, generated by pybind11.");
m.def("loot_is_compatible", &loot_is_compatible, "Checks for API compatibility.");
return m.ptr();
}