Skip to content

Commit c4e74ec

Browse files
cjihrigjasnell
authored andcommitted
deps: add missing ares_android.h file
This file was left out of the c-ares 1.14.0 update. PR-URL: #23682 Fixes: #23681 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent cdd58e6 commit c4e74ec

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

deps/cares/src/ares_android.h

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/* Copyright (C) 2017 by John Schember <john@nachtimwald.com>
2+
*
3+
* Permission to use, copy, modify, and distribute this
4+
* software and its documentation for any purpose and without
5+
* fee is hereby granted, provided that the above copyright
6+
* notice appear in all copies and that both that copyright
7+
* notice and this permission notice appear in supporting
8+
* documentation, and that the name of M.I.T. not be used in
9+
* advertising or publicity pertaining to distribution of the
10+
* software without specific, written prior permission.
11+
* M.I.T. makes no representations about the suitability of
12+
* this software for any purpose. It is provided "as is"
13+
* without express or implied warranty.
14+
*/
15+
16+
#ifndef __ARES_ANDROID_H__
17+
#define __ARES_ANDROID_H__
18+
19+
#if defined(ANDROID) || defined(__ANDROID__)
20+
21+
char **ares_get_android_server_list(size_t max_servers, size_t *num_servers);
22+
void ares_library_cleanup_android(void);
23+
24+
#endif
25+
26+
#endif /* __ARES_ANDROID_H__ */

0 commit comments

Comments
 (0)