version 1.1, 2007/09/07 10:04:55
|
version 1.3, 2007/12/24 04:18:26
|
Line 1
|
Line 1
|
/* init.c - initialize sock backend */ |
/* init.c - initialize sock backend */ |
/* $OpenLDAP$ */ |
/* $OpenLDAP: pkg/ldap/servers/slapd/back-sock/init.c,v 1.2 2007/09/07 10:20:24 hyc Exp $ */ |
/* This work is part of OpenLDAP Software <http://www.openldap.org/>. |
/* This work is part of OpenLDAP Software <http://www.openldap.org/>. |
* |
* |
* Copyright 2007 The OpenLDAP Foundation. |
* Copyright 2007 The OpenLDAP Foundation. |
Line 13
|
Line 13
|
* top-level directory of the distribution or, alternatively, at |
* top-level directory of the distribution or, alternatively, at |
* <http://www.OpenLDAP.org/license.html>. |
* <http://www.OpenLDAP.org/license.html>. |
*/ |
*/ |
|
/* ACKNOWLEDGEMENTS: |
|
* This work was initially developed by Brian Candler for inclusion |
|
* in OpenLDAP Software. |
|
*/ |
|
|
#include "portable.h" |
#include "portable.h" |
|
|
Line 34 sock_back_initialize(
|
Line 38 sock_back_initialize(
|
bi->bi_destroy = 0; |
bi->bi_destroy = 0; |
|
|
bi->bi_db_init = sock_back_db_init; |
bi->bi_db_init = sock_back_db_init; |
bi->bi_db_config = sock_back_db_config; |
bi->bi_db_config = 0; |
bi->bi_db_open = 0; |
bi->bi_db_open = 0; |
bi->bi_db_close = 0; |
bi->bi_db_close = 0; |
bi->bi_db_destroy = sock_back_db_destroy; |
bi->bi_db_destroy = sock_back_db_destroy; |
Line 56 sock_back_initialize(
|
Line 60 sock_back_initialize(
|
bi->bi_connection_init = 0; |
bi->bi_connection_init = 0; |
bi->bi_connection_destroy = 0; |
bi->bi_connection_destroy = 0; |
|
|
return 0; |
return sock_back_init_cf( bi ); |
} |
} |
|
|
int |
int |
Line 70 sock_back_db_init(
|
Line 74 sock_back_db_init(
|
si = (struct sockinfo *) ch_calloc( 1, sizeof(struct sockinfo) ); |
si = (struct sockinfo *) ch_calloc( 1, sizeof(struct sockinfo) ); |
|
|
be->be_private = si; |
be->be_private = si; |
|
be->be_cf_ocs = be->bd_info->bi_cf_ocs; |
|
|
return si == NULL; |
return si == NULL; |
} |
} |