summaryrefslogtreecommitdiff
path: root/src/basic/nss-util.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-03-03 15:35:34 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-04-02 20:11:41 -0400
commitcf2d43e7f47aaa5ea295b40fb80478883e74a48a (patch)
treec3148d5345ff806483682b904a28b63c89afdb8e /src/basic/nss-util.h
parent68a9c7c4f0c06fb413a3830212f5e06d8dd5089c (diff)
Move nss typedefs into nss-util.h
In preparation for subsequent changes.
Diffstat (limited to 'src/basic/nss-util.h')
-rw-r--r--src/basic/nss-util.h24
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);