diff options
Diffstat (limited to 'src/frontends/android/jni/libandroidbridge/charonservice.h')
-rw-r--r-- | src/frontends/android/jni/libandroidbridge/charonservice.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/frontends/android/jni/libandroidbridge/charonservice.h b/src/frontends/android/jni/libandroidbridge/charonservice.h index a3562490b..8bacd0a1d 100644 --- a/src/frontends/android/jni/libandroidbridge/charonservice.h +++ b/src/frontends/android/jni/libandroidbridge/charonservice.h @@ -28,6 +28,8 @@ #ifndef CHARONSERVICE_H_ #define CHARONSERVICE_H_ +#include <library.h> + typedef struct charonservice_t charonservice_t; /** @@ -37,6 +39,16 @@ typedef struct charonservice_t charonservice_t; */ struct charonservice_t { + /** + * Install a bypass policy for the given socket using the protect() Method + * of the Android VpnService interface + * + * @param fd socket file descriptor + * @param family socket protocol family + * @return TRUE if operation successful + */ + bool (*bypass_socket)(charonservice_t *this, int fd, int family); + }; /** |