---
include/technology.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/technology.h b/include/technology.h
index 97db660..7508a9a 100644
--- a/include/technology.h
+++ b/include/technology.h
@@ -42,6 +42,8 @@ int connman_technology_set_regdom(const char *alpha2);
void connman_technology_regdom_notify(struct connman_technology *technology,
const char *alpha2);
+enum connman_service_type connman_technology_get_type
+ (struct connman_technology *technology);
bool connman_technology_get_wifi_tethering(const char **ssid,
const char **psk);
bool connman_technology_is_tethering_allowed(enum connman_service_type type);
--
1.9.1
Show replies by date
---
src/technology.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/technology.c b/src/technology.c
index bd2e06a..433ac92 100644
--- a/src/technology.c
+++ b/src/technology.c
@@ -345,6 +345,15 @@ static struct connman_technology *technology_find(enum
connman_service_type type
return NULL;
}
+enum connman_service_type connman_technology_get_type
+ (struct connman_technology *technology)
+{
+ if (!technology)
+ return CONNMAN_SERVICE_TYPE_UNKNOWN;
+
+ return technology->type;
+}
+
bool connman_technology_get_wifi_tethering(const char **ssid,
const char **psk)
{
--
1.9.1
Hi Slava,
I squashed both patches together (we don't have the per directly rule in
this project :)) and applied the result.
Thanks,
Daniel