about summary refs log tree commit diff
path: root/resolv/resolv.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2016-09-21 16:30:27 +0200
committerFlorian Weimer <fweimer@redhat.com>2016-09-21 16:30:27 +0200
commit6815a33d53164e7f1a3b87cec905c17c7a14a007 (patch)
tree36746b90972604ea29e28a698e8bd1dbc6dedea4 /resolv/resolv.h
parentcbb47fa1c6476af73f393a81cd62fc926e1b8f6e (diff)
downloadglibc-6815a33d53164e7f1a3b87cec905c17c7a14a007.tar.gz
glibc-6815a33d53164e7f1a3b87cec905c17c7a14a007.tar.xz
glibc-6815a33d53164e7f1a3b87cec905c17c7a14a007.zip
resolv: Remove unsupported hook functions from the API [BZ #20016]
Diffstat (limited to 'resolv/resolv.h')
-rw-r--r--resolv/resolv.h21
1 files changed, 2 insertions, 19 deletions
diff --git a/resolv/resolv.h b/resolv/resolv.h
index f55e7ceaba..a6f4dadf12 100644
--- a/resolv/resolv.h
+++ b/resolv/resolv.h
@@ -68,23 +68,6 @@
 #ifndef __res_state_defined
 # define __res_state_defined
 
-typedef enum { res_goahead, res_nextns, res_modified, res_done, res_error }
-	res_sendhookact;
-
-typedef res_sendhookact (*res_send_qhook) (struct sockaddr_in * const *__ns,
-					   const u_char **__query,
-					   int *__querylen,
-					   u_char *__ans,
-					   int __anssiz,
-					   int *__resplen);
-
-typedef res_sendhookact (*res_send_rhook) (const struct sockaddr_in *__ns,
-					   const u_char *__query,
-					   int __querylen,
-					   u_char *__ans,
-					   int __anssiz,
-					   int *__resplen);
-
 /*
  * Global defines and variables for resolver stub.
  */
@@ -123,8 +106,8 @@ struct __res_state {
 		u_int32_t	mask;
 	} sort_list[MAXRESOLVSORT];
 	/* 4 byte hole here on 64-bit architectures.  */
-	res_send_qhook qhook;		/* query hook */
-	res_send_rhook rhook;		/* response hook */
+	void * __glibc_unused_qhook;
+	void * __glibc_unused_rhook;
 	int	res_h_errno;		/* last one set for this context */
 	int	_vcsock;		/* PRIVATE: for res_send VC i/o */
 	u_int	_flags;			/* PRIVATE: see below */