]> andersk Git - nss_nonlocal.git/blobdiff - nonlocal.h
Move the repetitive NSS walking logic into an include file
[nss_nonlocal.git] / nonlocal.h
index 7d644ae964aaf206fed03700cc50527aa13ef983..a0746d4c7eb96f25245adc51d667d6b51d708e08 100644 (file)
 #define NONLOCAL_H
 
 #include "config.h"
+#include "nsswitch-internal.h"
+
+struct walk_nss {
+    enum nss_status *status;
+    int (*lookup)(service_user **ni, const char *fct_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);
This page took 0.026077 seconds and 4 git commands to generate.