android: Add method to check for connectivity to NetworkManager
[strongswan.git] / src / frontends / android / jni / libandroidbridge / kernel / network_manager.h
index abca239..9a6a715 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2012-2013 Tobias Brunner
+ * Copyright (C) 2012-2015 Tobias Brunner
  * Hochschule fuer Technik Rapperswil
  *
  * This program is free software; you can redistribute it and/or modify it
@@ -66,6 +66,13 @@ struct network_manager_t {
                                                                   connectivity_cb_t cb);
 
        /**
+        * Check whether we currently have connectivity
+        *
+        * @return                                      TRUE if currently connected
+        */
+       bool (*is_connected)(network_manager_t *this);
+
+       /**
         * Destroy a network_manager_t instance
         */
        void (*destroy)(network_manager_t *this);