back-sock.h revision 1.1.1.2
1/* $NetBSD: back-sock.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */ 2 3/* sock.h - socket backend header file */ 4/* OpenLDAP: pkg/ldap/servers/slapd/back-sock/back-sock.h,v 1.4.2.2 2009/01/22 00:01:10 kurt Exp */ 5/* This work is part of OpenLDAP Software <http://www.openldap.org/>. 6 * 7 * Copyright 2007-2009 The OpenLDAP Foundation. 8 * All rights reserved. 9 * 10 * Redistribution and use in source and binary forms, with or without 11 * modification, are permitted only as authorized by the OpenLDAP 12 * Public License. 13 * 14 * A copy of this license is available in the file LICENSE in the 15 * top-level directory of the distribution or, alternatively, at 16 * <http://www.OpenLDAP.org/license.html>. 17 */ 18/* ACKNOWLEDGEMENTS: 19 * This work was initially developed by Brian Candler for inclusion 20 * in OpenLDAP Software. 21 */ 22 23#ifndef SLAPD_SOCK_H 24#define SLAPD_SOCK_H 25 26#include "proto-sock.h" 27 28LDAP_BEGIN_DECL 29 30struct sockinfo { 31 const char *si_sockpath; 32 slap_mask_t si_extensions; 33}; 34 35#define SOCK_EXT_BINDDN 1 36#define SOCK_EXT_PEERNAME 2 37#define SOCK_EXT_SSF 4 38 39extern FILE *opensock LDAP_P(( 40 const char *sockpath)); 41 42extern void sock_print_suffixes LDAP_P(( 43 FILE *fp, 44 BackendDB *bd)); 45 46extern void sock_print_conn LDAP_P(( 47 FILE *fp, 48 Connection *conn, 49 struct sockinfo *si)); 50 51extern int sock_read_and_send_results LDAP_P(( 52 Operation *op, 53 SlapReply *rs, 54 FILE *fp)); 55 56LDAP_END_DECL 57 58#endif 59