VERSION: Raise version number up to 3.0.36.
[Samba.git] / source / nsswitch / winbind_nss_netbsd.h
blobe7f89bc1db991f54e5ebe5904f5e66f8632f6f6c
1 /*
2 Unix SMB/CIFS implementation.
4 NetBSD loadable authentication module, providing identification
5 routines against Samba winbind/Windows NT Domain
7 Copyright (C) Luke Mewburn 2004-2005
9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Library General Public
11 License as published by the Free Software Foundation; either
12 version 2 of the License, or (at your option) any later version.
14 This library is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Library General Public License for more details.
19 You should have received a copy of the GNU Library General Public
20 License along with this library; if not, write to the
21 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22 Boston, MA 02111-1307, USA.
25 #ifndef _WINBIND_NSS_NETBSD_H
26 #define _WINBIND_NSS_NETBSD_H
28 #include <nsswitch.h>
30 /* dynamic nsswitch with "new" getpw* nsdispatch API available */
31 #if defined(NSS_MODULE_INTERFACE_VERSION) && defined(HAVE_GETPWENT_R)
33 typedef int NSS_STATUS;
35 #define NSS_STATUS_SUCCESS NS_SUCCESS
36 #define NSS_STATUS_NOTFOUND NS_NOTFOUND
37 #define NSS_STATUS_UNAVAIL NS_UNAVAIL
38 #define NSS_STATUS_TRYAGAIN NS_TRYAGAIN
40 #endif /* NSS_MODULE_INTERFACE_VERSION && HAVE_GETPWENT_R */
42 #endif /* _WINBIND_NSS_NETBSD_H */