Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0603614a authored by Remi NGUYEN VAN's avatar Remi NGUYEN VAN Committed by Automerger Merge Worker
Browse files

Merge "Add NDK API for getprocnetwork" am: 3729ef86

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1722536

Change-Id: I5e338caa19200c783a96fafe670412c993bbc345
parents d404946c 3729ef86
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
@@ -83,13 +83,26 @@ int android_setsocknetwork(net_handle_t network, int fd) __INTRODUCED_IN(23);
 *
 * To clear a previous process binding, invoke with NETWORK_UNSPECIFIED.
 *
 * This is the equivalent of: [android.net.ConnectivityManager#setProcessDefaultNetwork()](https://developer.android.com/reference/android/net/ConnectivityManager.html#setProcessDefaultNetwork(android.net.Network))
 * This is the equivalent of: [android.net.ConnectivityManager#bindProcessToNetwork()](https://developer.android.com/reference/android/net/ConnectivityManager.html#bindProcessToNetwork(android.net.Network))
 *
 * Available since API level 23.
 */
int android_setprocnetwork(net_handle_t network) __INTRODUCED_IN(23);


/**
 * Gets the |network| bound to the current process, as per android_setprocnetwork.
 *
 * This is the equivalent of: [android.net.ConnectivityManager#getBoundNetworkForProcess()](https://developer.android.com/reference/android/net/ConnectivityManager.html#getBoundNetworkForProcess(android.net.Network))
 * Returns 0 on success, or -1 setting errno to EINVAL if a null pointer is
 * passed in.
 *
 *
 * Available since API level 31.
 */
int android_getprocnetwork(net_handle_t *network) __INTRODUCED_IN(31);


/**
 * Perform hostname resolution via the DNS servers associated with |network|.
 *