aboutsummaryrefslogtreecommitdiffstats
path: root/src/frontends/android/jni/libandroidbridge/charonservice.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontends/android/jni/libandroidbridge/charonservice.h')
-rw-r--r--src/frontends/android/jni/libandroidbridge/charonservice.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/frontends/android/jni/libandroidbridge/charonservice.h b/src/frontends/android/jni/libandroidbridge/charonservice.h
index 376f55014..4b5839f5e 100644
--- a/src/frontends/android/jni/libandroidbridge/charonservice.h
+++ b/src/frontends/android/jni/libandroidbridge/charonservice.h
@@ -32,6 +32,7 @@
#define CHARONSERVICE_H_
#include "vpnservice_builder.h"
+#include "kernel/network_manager.h"
#include <library.h>
#include <utils/linked_list.h>
@@ -69,7 +70,9 @@ struct charonservice_t {
/**
* Install a bypass policy for the given socket using the protect() Method
- * of the Android VpnService interface
+ * of the Android VpnService interface.
+ *
+ * Use -1 as fd to re-bypass previously bypassed sockets.
*
* @param fd socket file descriptor
* @param family socket protocol family
@@ -111,6 +114,12 @@ struct charonservice_t {
*/
vpnservice_builder_t *(*get_vpnservice_builder)(charonservice_t *this);
+ /**
+ * Get the current network_manager_t object
+ *
+ * @return NetworkManager instance
+ */
+ network_manager_t *(*get_network_manager)(charonservice_t *this);
};
/**