preparing for release of 2.2.3a
[Samba.git] / source / nsswitch / hp_nss_common.h
blob7ce67ed81fa96d1a819d1c0f231366a42699fe87
1 #ifndef _HP_NSS_COMMON_H
2 #define _HP_NSS_COMMON_H
4 /*
5 Unix SMB/Netbios implementation.
6 Version 2.2
8 Donated by HP to enable Winbindd to build on HPUX 11.x.
9 Copyright (C) Jeremy Allison 2002.
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.
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.
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.
27 #ifdef HAVE_SYNCH_H
28 #include <synch.h>
29 #endif
30 #ifdef HAVE_PTHREAD_H
31 #include <pthread.h>
32 #endif
34 typedef enum {
35 NSS_SUCCESS,
36 NSS_NOTFOUND,
37 NSS_UNAVAIL,
38 NSS_TRYAGAIN
39 } nss_status_t;
41 struct nss_backend;
43 typedef nss_status_t (*nss_backend_op_t)(struct nss_backend *, void *args);
45 struct nss_backend {
46 nss_backend_op_t *ops;
47 int n_ops;
49 typedef struct nss_backend nss_backend_t;
50 typedef int nss_dbop_t;
52 #endif /* _HP_NSS_COMMON_H */