aboutsummaryrefslogtreecommitdiff
path: root/hesiod/hesiod_p.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-06-15 04:14:52 +0000
committerUlrich Drepper <drepper@redhat.com>2005-06-15 04:14:52 +0000
commitb399a0c2e2014daf166a36462db9d5bd5617454c (patch)
tree477eeca004180eef0339e609885a83b0a6bd3652 /hesiod/hesiod_p.h
parentec23b9bece4780a2031eedf23019cbb229e855fb (diff)
downloadglibc-b399a0c2e2014daf166a36462db9d5bd5617454c.zip
glibc-b399a0c2e2014daf166a36462db9d5bd5617454c.tar.gz
glibc-b399a0c2e2014daf166a36462db9d5bd5617454c.tar.bz2
* hesiod/hesiod_p.h (struct hesiod_p): Add classes array.
* hesiod/hesiod.c (hesiod_init): Initialize classes. Fail if no valid classes were given or if both are equal. (hesiod_resolve): Use ctx->classes instead of hardcoded C_IN and C_HS order. (parse_config_file): Handle classes keyword. * hesiod/README.hesiod: Mention addition of the classes keyword.
Diffstat (limited to 'hesiod/hesiod_p.h')
-rw-r--r--hesiod/hesiod_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hesiod/hesiod_p.h b/hesiod/hesiod_p.h
index 71aca09..5010d71 100644
--- a/hesiod/hesiod_p.h
+++ b/hesiod/hesiod_p.h
@@ -41,6 +41,7 @@ struct hesiod_p {
void (*res_set)(struct hesiod_p *, struct __res_state *,
void (*)(void *));
struct __res_state * (*res_get)(struct hesiod_p *);
+ int classes[2]; /* The class search order. */
};
#define MAX_HESRESP 1024