+typedef enum {
+ CONNECTION_SUPPORTED_FEATURE_TELEPHONY,
+ CONNECTION_SUPPORTED_FEATURE_WIFI,
+ CONNECTION_SUPPORTED_FEATURE_TETHERING_BLUETOOTH,
+ CONNECTION_SUPPORTED_FEATURE_ETHERNET,
+ CONNECTION_SUPPORTED_FEATURE_MAX,
+} connection_supported_feature_e;
+
+#define CHECK_FEATURE_SUPPORTED(...) \
+ do { \
+ int rv = _connection_check_feature_supported(__VA_ARGS__, NULL); \
+ if (rv != CONNECTION_ERROR_NONE) \
+ return rv; \
+ } while (0)
+
+#define DEPRECATED_LOG(origin, substitution) \
+ do { \
+ LOGW("DEPRECATION WARNING: %s() is deprecated and will be removed " \
+ "from next release. Use %s() instead", origin, substitution); \
+ } while (0)
+