Commit Graph

10 Commits

Author SHA1 Message Date
Carsten Larsen 2811e30d49 Release 1.12.0 2017-04-12 01:21:06 +02:00
David Drysdale f1bcfa1122 api: Allow injection of user-specified malloc/free functions
Add a new ares_library_init_mem() initialization function for the
library which allows the library user to specify their own malloc,
realloc & free equivalents for use library-wide.

Store these function pointers in library-wide global variables,
defaulting to libc's malloc(), realloc() and free().

Change all calls to malloc, realloc and free to use the function pointer
instead.  Also ensure that ares_strdup() is always available
(even if the local environment includes strdup(3)), and change the
library code to always use it.

Convert calls to calloc() to use ares_malloc() + memset
2016-02-02 10:05:07 +00:00
Alexander Klauer 9a92b80191 library init: documentation update
This commit updates the documentation of ares_library_init() and
ares_library_cleanup() with regard to the newly introduced reference
counting of initializations and deinitializations.
2013-04-22 23:26:01 +02:00
Daniel Stenberg 63627fa5ab remove all $Id$ lines 2010-03-27 19:42:02 +01:00
Yang Tse 85df26919c Added 'currently' in italics to insist on transient situation. 2009-11-24 10:08:45 +00:00
Yang Tse 612a29311a Daniel wants upcoming release to be 1.7.0 2009-11-23 12:03:32 +00:00
Daniel Stenberg 179a0d2b28 minor edits 2009-05-23 20:23:44 +00:00
Yang Tse cf2882882d Update man page 2009-05-20 11:25:21 +00:00
Yang Tse 1ddd021504 Update man page 2009-05-20 02:12:23 +00:00
Yang Tse 8e55839216 Initial ares_library_init(3) man page attempt 2009-05-19 19:00:28 +00:00