Line data Source code
1 : /* 2 : ldb database library using mdb back end 3 : 4 : Copyright (C) Jakub Hrozek 2014 5 : Copyright (C) Catalyst.Net Ltd 2017 6 : 7 : ** NOTE! The following LGPL license applies to the ldb 8 : ** library. This does NOT imply that all of Samba is released 9 : ** under the LGPL 10 : 11 : This library is free software; you can redistribute it and/or 12 : modify it under the terms of the GNU Lesser General Public 13 : License as published by the Free Software Foundation; either 14 : version 3 of the License, or (at your option) any later version. 15 : 16 : This library is distributed in the hope that it will be useful, 17 : but WITHOUT ANY WARRANTY; without even the implied warranty of 18 : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 19 : Lesser General Public License for more details. 20 : 21 : You should have received a copy of the GNU Lesser General Public 22 : License along with this library; if not, see <http://www.gnu.org/licenses/>. 23 : */ 24 : 25 : #include "ldb_mdb.h" 26 : 27 6040 : int ldb_mdb_init(const char *version) 28 : { 29 6040 : LDB_MODULE_CHECK_VERSION(version); 30 6040 : return ldb_register_backend("mdb", lmdb_connect, false); 31 : }