"Fossies" - the Fresh Open Source Software Archive

Member "nss_ldap-265/nss_common.h" (6 Nov 2009, 1377 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 /*
    2    Donated by HP to enable Winbindd to build on HPUX 11.x.
    3    Copyright (C) Jeremy Allison 2002.
    4  
    5    This library is free software; you can redistribute it and/or
    6    modify it under the terms of the GNU Library General Public
    7    License as published by the Free Software Foundation; either
    8    version 2 of the License, or (at your option) any later version.
    9  
   10    This 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 this library; if not, write to the
   17    Free Software Foundation, Inc., 59 Temple Place - Suite 330,
   18    Boston, MA  02111-1307, USA.
   19 */
   20 
   21 #ifndef _NSS_COMMON_H
   22 #define _NSS_COMMON_H
   23  
   24 #ifdef HAVE_SYNCH_H
   25 #include <synch.h>
   26 #endif
   27 #ifdef HAVE_PTHREAD_H
   28 #include <pthread.h>
   29 #endif
   30  
   31 typedef enum {
   32         NSS_SUCCESS,
   33         NSS_NOTFOUND,
   34         NSS_UNAVAIL,
   35         NSS_TRYAGAIN
   36 } nss_status_t;
   37  
   38 struct nss_backend;
   39  
   40 typedef nss_status_t (*nss_backend_op_t)(struct nss_backend *, void *args);
   41  
   42 struct nss_backend {
   43         nss_backend_op_t *ops;
   44         int n_ops;
   45 };
   46 typedef struct nss_backend nss_backend_t;
   47 typedef int nss_dbop_t;
   48 
   49 #endif /* _NSS_COMMON_H */
   50