mirror of
https://github.com/loot/libloot-python.git
synced 2026-07-27 14:14:13 -07:00
Initial commit of module generator code
This commit is contained in:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user