]> andersk Git - nss_nonlocal.git/blobdiff - nonlocal.h
Switch from __nss_next API to __nss_next2 API
[nss_nonlocal.git] / nonlocal.h
index 7d644ae964aaf206fed03700cc50527aa13ef983..384e2eea6eaa47a0b0af4a0158ce7cda49c8e5e3 100644 (file)
 
 #include "config.h"
 
+#ifdef HAVE_STDBOOL_H
+# include <stdbool.h>
+#else
+# ifndef HAVE__BOOL
+#  ifdef __cplusplus
+typedef bool _Bool;
+#  else
+#   define _Bool signed char
+#  endif
+# endif
+# define bool _Bool
+# define false 0
+# define true 1
+# define __bool_true_false_are_defined 1
+#endif
+
+#include "nsswitch-internal.h"
+#include <pwd.h>
+
+struct walk_nss {
+    enum nss_status *status;
+    int all_values;
+    int (*lookup2)(service_user **ni, const char *fct_name,
+                  const char *fct2_name, void **fctp) internal_function;
+    const char *fct_name;
+    int *errnop;
+    char **buf;
+    size_t *buflen;
+};
+
 enum nss_status check_nonlocal_uid(const char *user, uid_t uid, int *errnop);
-enum nss_status check_nonlocal_gid(const char *user, gid_t gid, int *errnop);
+enum nss_status check_nonlocal_gid(const char *user, const char *group,
+                                  gid_t gid, int *errnop);
 enum nss_status check_nonlocal_user(const char *user, int *errnop);
+enum nss_status get_nonlocal_passwd(const char *name, struct passwd *pwd,
+                                   char **buffer, int *errnop);
 
 #define NONLOCAL_IGNORE_ENV "NSS_NONLOCAL_IGNORE"
 
This page took 0.154482 seconds and 4 git commands to generate.