diff options
Diffstat (limited to 'nss/nsswitch.h')
-rw-r--r-- | nss/nsswitch.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/nss/nsswitch.h b/nss/nsswitch.h index b80edef..ae5657e 100644 --- a/nss/nsswitch.h +++ b/nss/nsswitch.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1996-1999,2001,2002,2003,2004,2007 +/* Copyright (C) 1996-1999,2001,2002,2003,2004,2007,2010 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -28,6 +28,7 @@ #include <resolv.h> #include <search.h> #include <dlfcn.h> +#include <stdbool.h> /* Actions performed after lookup finished. */ typedef enum @@ -96,6 +97,19 @@ typedef struct name_database } name_database; +/* Indices into DATABASES in nsswitch.c and __NSS_DATABASE_CUSTOM. */ +enum + { +#define DEFINE_DATABASE(arg) NSS_DBSIDX_##arg, +#include "databases.def" +#undef DEFINE_DATABASE + NSS_DBSIDX_max + }; + +/* Flags whether custom rules for database is set. */ +extern bool __nss_database_custom[NSS_DBSIDX_max]; + + /* Interface functions for NSS. */ /* Get the data structure representing the specified database. |