DEBUG(0, -> DEBUG(10, Caught by Andrew Bartlett (thanks !).
[Samba.git] / source / nsswitch / hp_nss_common.h
blob5bd5374182ee811e09f51769ceb5fa0bbd85c630
1 #ifndef _HP_NSS_COMMON_H
2 #define _HP_NSS_COMMON_H
4 /*
5 Unix SMB/CIFS implementation.
7 Donated by HP to enable Winbindd to build on HPUX 11.x.
8 Copyright (C) Jeremy Allison 2002.
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.
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.
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.
26 #ifdef HAVE_SYNCH_H
27 #include <synch.h>
28 #endif
29 #ifdef HAVE_PTHREAD_H
30 #include <pthread.h>
31 #endif
33 typedef enum {
34 NSS_SUCCESS,
35 NSS_NOTFOUND,
36 NSS_UNAVAIL,
37 NSS_TRYAGAIN
38 } nss_status_t;
40 struct nss_backend;
42 typedef nss_status_t (*nss_backend_op_t)(struct nss_backend *, void *args);
44 struct nss_backend {
45 nss_backend_op_t *ops;
46 int n_ops;
48 typedef struct nss_backend nss_backend_t;
49 typedef int nss_dbop_t;
51 #endif /* _HP_NSS_COMMON_H */