[f665dab] | 1 | /********************************************************************\ |
---|
| 2 | * BitlBee -- An IRC to other IM-networks gateway * |
---|
| 3 | * * |
---|
| 4 | * Copyright 2002-2004 Wilmer van der Gaast and others * |
---|
| 5 | \********************************************************************/ |
---|
| 6 | |
---|
| 7 | /* Storage backend that uses the LDB embedded LDAP-like database */ |
---|
| 8 | |
---|
| 9 | /* Copyright (C) 2006 Jelmer Vernooij <jelmer@samba.org> */ |
---|
| 10 | |
---|
| 11 | /* |
---|
| 12 | This program is free software; you can redistribute it and/or modify |
---|
| 13 | it under the terms of the GNU General Public License as published by |
---|
| 14 | the Free Software Foundation; either version 2 of the License, or |
---|
| 15 | (at your option) any later version. |
---|
| 16 | |
---|
| 17 | This program is distributed in the hope that it will be useful, |
---|
| 18 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 19 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 20 | GNU General Public License for more details. |
---|
| 21 | |
---|
| 22 | You should have received a copy of the GNU General Public License with |
---|
| 23 | the Debian GNU/Linux distribution in /usr/share/common-licenses/GPL; |
---|
| 24 | if not, write to the Free Software Foundation, Inc., 59 Temple Place, |
---|
| 25 | Suite 330, Boston, MA 02111-1307 USA |
---|
| 26 | */ |
---|
| 27 | |
---|
| 28 | #define BITLBEE_CORE |
---|
| 29 | #include "bitlbee.h" |
---|
| 30 | #include <ldb.h> |
---|
| 31 | |
---|
| 32 | static void sldb_init (void) |
---|
| 33 | { |
---|
| 34 | } |
---|
| 35 | |
---|
| 36 | static storage_status_t sldb_load ( const char *my_nick, const char* password, irc_t *irc ) |
---|
| 37 | { |
---|
| 38 | return STORAGE_OK; |
---|
| 39 | } |
---|
| 40 | |
---|
| 41 | static storage_status_t sldb_save( irc_t *irc, int overwrite ) |
---|
| 42 | { |
---|
| 43 | return STORAGE_OK; |
---|
| 44 | } |
---|
| 45 | |
---|
| 46 | static storage_status_t sldb_check_pass( const char *nick, const char *password ) |
---|
| 47 | { |
---|
| 48 | return STORAGE_OK; |
---|
| 49 | } |
---|
| 50 | |
---|
| 51 | static storage_status_t sldb_remove( const char *nick, const char *password ) |
---|
| 52 | { |
---|
| 53 | return STORAGE_OK; |
---|
| 54 | } |
---|
| 55 | |
---|
| 56 | storage_t storage_ldb = { |
---|
| 57 | .name = "ldb", |
---|
| 58 | .init = sldb_init, |
---|
| 59 | .check_pass = sldb_check_pass, |
---|
| 60 | .remove = sldb_remove, |
---|
| 61 | .load = sldb_load, |
---|
| 62 | .save = sldb_save |
---|
| 63 | }; |
---|