"Fossies" - the Fresh Open Source Software Archive

Member "nss_ldap-265/ldap-automount.h" (6 Nov 2009, 2161 Bytes) of package /linux/privat/old/nss_ldap-265.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 /* Copyright (C) 2005 Luke Howard.
    2    This file is part of the nss_ldap library.
    3    Contributed by Luke Howard, <lukeh@padl.com>, 2005.
    4 
    5    The nss_ldap library is free software; you can redistribute it and/or
    6    modify it under the terms of the GNU Library General Public License as
    7    published by the Free Software Foundation; either version 2 of the
    8    License, or (at your option) any later version.
    9 
   10    The nss_ldap library is distributed in the hope that it will be useful,
   11    but WITHOUT ANY WARRANTY; without even the implied warranty of
   12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   13    Library General Public License for more details.
   14 
   15    You should have received a copy of the GNU Library General Public
   16    License along with the nss_ldap library; see the file COPYING.LIB.  If not,
   17    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
   18    Boston, MA 02111-1307, USA.
   19 
   20    $Id: ldap-automount.h,v 1.5 2006/01/12 10:19:20 lukeh Exp $
   21  */
   22 
   23 #ifndef _LDAP_NSS_LDAP_LDAP_AUTOMOUNT_H
   24 #define _LDAP_NSS_LDAP_LDAP_AUTOMOUNT_H
   25 
   26 /* Linux only for now */
   27 struct ldap_automount_context {
   28   /* Enumeration state */
   29   ent_context_t *lac_state;
   30 
   31   /* DNs of containers representing automount map */
   32   char **lac_dn_list;
   33   size_t lac_dn_size;
   34   size_t lac_dn_count;
   35   size_t lac_dn_index;
   36 };
   37 
   38 typedef struct ldap_automount_context ldap_automount_context_t;
   39 
   40 NSS_STATUS _nss_ldap_am_context_alloc(ldap_automount_context_t **pContext);
   41 void _nss_ldap_am_context_free(ldap_automount_context_t **pContext);
   42 NSS_STATUS _nss_ldap_am_context_init(const char *mapname, ldap_automount_context_t **pContext);
   43 
   44 #ifdef HAVE_NSS_H
   45 NSS_STATUS _nss_ldap_setautomntent(const char *mapname, void **context);
   46 NSS_STATUS _nss_ldap_getautomntent(void *context, const char **key, const char **value,
   47                    char *buffer, size_t buflen, int *errnop);
   48 NSS_STATUS _nss_ldap_endautomntent(void **context);
   49 NSS_STATUS _nss_ldap_getautomntbyname_r(void *private, const char *key,
   50                     const char **canon_key, const char **value,
   51                     char *buffer, size_t buflen, int *errnop);
   52 #endif /* HAVE_NSS_H */
   53 
   54 #endif /* _LDAP_NSS_LDAP_LDAP_AUTOMOUNT_H */