summaryrefslogtreecommitdiff
path: root/src/basic/nss-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-04-06 10:48:55 +0200
committerLennart Poettering <lennart@poettering.net>2016-04-06 10:48:55 +0200
commit056f0498fefc4c3e3cedf11ea3ba1b04a8694118 (patch)
tree788140056e2c552adfe4e90ac797f8c821e659fd /src/basic/nss-util.h
parent382b56622add2aff81bdcc8af5fa0b40c3cb64ef (diff)
parent82e4c2d656941a76d7c5f86d70cd8b435cb52860 (diff)
Merge pull request #2947 from keszybz/test-nss
Add a test for nss modules and some related fixes
Diffstat (limited to 'src/basic/nss-util.h')
-rw-r--r--src/basic/nss-util.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/basic/nss-util.h b/src/basic/nss-util.h
index df565a3593..bf7c4854fc 100644
--- a/src/basic/nss-util.h
+++ b/src/basic/nss-util.h
@@ -154,3 +154,46 @@ enum nss_status _nss_##module##_getgrgid_r( \
struct group *gr, \
char *buffer, size_t buflen, \
int *errnop) _public_
+
+typedef enum nss_status (*_nss_gethostbyname4_r_t)(
+ const char *name,
+ struct gaih_addrtuple **pat,
+ char *buffer, size_t buflen,
+ int *errnop, int *h_errnop,
+ int32_t *ttlp);
+
+typedef enum nss_status (*_nss_gethostbyname3_r_t)(
+ const char *name,
+ int af,
+ struct hostent *result,
+ char *buffer, size_t buflen,
+ int *errnop, int *h_errnop,
+ int32_t *ttlp,
+ char **canonp);
+
+typedef enum nss_status (*_nss_gethostbyname2_r_t)(
+ const char *name,
+ int af,
+ struct hostent *result,
+ char *buffer, size_t buflen,
+ int *errnop, int *h_errnop);
+
+typedef enum nss_status (*_nss_gethostbyname_r_t)(
+ const char *name,
+ struct hostent *result,
+ char *buffer, size_t buflen,
+ int *errnop, int *h_errnop);
+
+typedef enum nss_status (*_nss_gethostbyaddr2_r_t)(
+ const void* addr, socklen_t len,
+ int af,
+ struct hostent *result,
+ char *buffer, size_t buflen,
+ int *errnop, int *h_errnop,
+ int32_t *ttlp);
+typedef enum nss_status (*_nss_gethostbyaddr_r_t)(
+ const void* addr, socklen_t len,
+ int af,
+ struct hostent *host,
+ char *buffer, size_t buflen,
+ int *errnop, int *h_errnop);