From 1c93d9dcfe95f1bfd6df432f9d6b4b31ff1c06a1 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Tue, 26 May 2009 18:00:14 +0000 Subject: Make ares_init(), ares_dup() and ares_init_options() return ARES_ENOTINITIALIZED if library initialization has not been performed calling ares_library_init(). --- ares/ares_private.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ares/ares_private.h') diff --git a/ares/ares_private.h b/ares/ares_private.h index f8afd4de1..c84a1d0b3 100644 --- a/ares/ares_private.h +++ b/ares/ares_private.h @@ -310,6 +310,8 @@ int ares__timeadd(struct timeval *now, /* return time offset between now and (future) check, in milliseconds */ long ares__timeoffset(struct timeval *now, struct timeval *check); +/* returns ARES_SUCCESS if library has been initialized */ +int ares_library_initialized(void); void ares__rc4(rc4_key* key,unsigned char *buffer_ptr, int buffer_len); void ares__send_query(ares_channel channel, struct query *query, struct timeval *now); -- cgit v1.2.3