Put unixsocket calls between #ifdef HAVE_UNIXSOCKET's - required for Stratus VOS
[tprouty/samba.git] / source / nsswitch / hp_nss_common.h
1 #ifndef _HP_NSS_COMMON_H
2 #define _HP_NSS_COMMON_H
3  
4 /*
5    Unix SMB/CIFS implementation.
6  
7    Donated by HP to enable Winbindd to build on HPUX 11.x.
8    Copyright (C) Jeremy Allison 2002.
9  
10    This library is free software; you can redistribute it and/or
11    modify it under the terms of the GNU Library General Public
12    License as published by the Free Software Foundation; either
13    version 2 of the License, or (at your option) any later version.
14  
15    This library is distributed in the hope that it will be useful,
16    but WITHOUT ANY WARRANTY; without even the implied warranty of
17    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18    Library General Public License for more details.
19  
20    You should have received a copy of the GNU Library General Public
21    License along with this library; if not, write to the
22    Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23    Boston, MA  02111-1307, USA.
24 */
25  
26 #ifdef HAVE_SYNCH_H
27 #include <synch.h>
28 #endif
29 #ifdef HAVE_PTHREAD_H
30 #include <pthread.h>
31 #endif
32  
33 typedef enum {
34         NSS_SUCCESS,
35         NSS_NOTFOUND,
36         NSS_UNAVAIL,
37         NSS_TRYAGAIN
38 } nss_status_t;
39  
40 struct nss_backend;
41  
42 typedef nss_status_t (*nss_backend_op_t)(struct nss_backend *, void *args);
43  
44 struct nss_backend {
45         nss_backend_op_t *ops;
46         int n_ops;
47 };
48 typedef struct nss_backend nss_backend_t;
49 typedef int nss_dbop_t;
50
51 #endif /* _HP_NSS_COMMON_H */