diff options
| author | 2018-12-17 15:59:50 +0800 | |
|---|---|---|
| committer | 2018-12-17 16:41:19 +0800 | |
| commit | 74a056513dfb1e5132842f60bf88bbc74d3d2b5e (patch) | |
| tree | b4bb75cd34097368daa0dd6f93cd301b1e4937fa | |
| parent | 0dd82d8da5aa41dd41744fd35a1b94352796fb38 (diff) | |
Following commit for asynchronous DNS query API
Test: built, flashed, booted\
atest CtsNativeNetDnsTestCases
Change-Id: Id6df8730275e227b0321a6bc5d44707aaa273b5c
| -rw-r--r-- | include/android/multinetwork.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/android/multinetwork.h b/include/android/multinetwork.h index ed9531ec62..fa7d9080c3 100644 --- a/include/android/multinetwork.h +++ b/include/android/multinetwork.h @@ -131,7 +131,7 @@ int android_res_nquery(net_handle_t network, * POSIX error code (see errno.h) if an immediate error occurs. */ int android_res_nsend(net_handle_t network, - const unsigned char *msg, int msglen) __INTRODUCED_IN(29); + const uint8_t *msg, size_t msglen) __INTRODUCED_IN(29); /** * Read a result for the query associated with the |fd| descriptor. @@ -141,7 +141,7 @@ int android_res_nsend(net_handle_t network, * >= 0: length of |answer|. |rcode| is the resolver return code (e.g., ns_r_nxdomain) */ int android_res_nresult(int fd, - int *rcode, unsigned char *answer, int anslen) __INTRODUCED_IN(29); + int *rcode, uint8_t *answer, size_t anslen) __INTRODUCED_IN(29); /** * Attempts to cancel the in-progress query associated with the |nsend_fd| |