Following commit for asynchronous DNS query API
Test: built, flashed, booted\
atest CtsNativeNetDnsTestCases
Change-Id: Id6df8730275e227b0321a6bc5d44707aaa273b5c
diff --git a/include/android/multinetwork.h b/include/android/multinetwork.h
index ed9531e..fa7d908 100644
--- a/include/android/multinetwork.h
+++ b/include/android/multinetwork.h
@@ -131,7 +131,7 @@
* 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 @@
* >= 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|