Removed version number from file header.
[samba.git] / source3 / 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 #include <synch.h>
27 #include <pthread.h>
28  
29 typedef enum {
30         NSS_SUCCESS,
31         NSS_NOTFOUND,
32         NSS_UNAVAIL,
33         NSS_TRYAGAIN
34 } nss_status_t;
35  
36 struct nss_backend;
37  
38 typedef nss_status_t (*nss_backend_op_t)(struct nss_backend *, void *args);
39  
40 struct nss_backend {
41         nss_backend_op_t *ops;
42         int n_ops;
43 };
44 typedef struct nss_backend nss_backend_t;
45 typedef int nss_dbop_t;
46
47 #endif /* _HP_NSS_COMMON_H */