diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-03-03 15:35:34 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-04-02 20:11:41 -0400 |
commit | cf2d43e7f47aaa5ea295b40fb80478883e74a48a (patch) | |
tree | c3148d5345ff806483682b904a28b63c89afdb8e /src/basic | |
parent | 68a9c7c4f0c06fb413a3830212f5e06d8dd5089c (diff) |
Move nss typedefs into nss-util.h
In preparation for subsequent changes.
Diffstat (limited to 'src/basic')
-rw-r--r-- | src/basic/nss-util.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/basic/nss-util.h b/src/basic/nss-util.h index df565a3593..14e950869d 100644 --- a/src/basic/nss-util.h +++ b/src/basic/nss-util.h @@ -154,3 +154,27 @@ 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_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); |