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