Commit 4e0313eb authored by Jussi Laakkonen's avatar Jussi Laakkonen

[connman] Expose tethering ident and tech type internally. JB#43927

Add a get function for struct connman_technology tethering_ident char
variable and expose it internally.

Add a get function for struct connman_technology type (enum
connman_service_type).
parent 9f0e1196
......@@ -577,6 +577,10 @@ void __connman_technology_remove_interface(enum connman_service_type type,
int index, const char *ident);
void __connman_technology_notify_regdom_by_device(struct connman_device *device,
int result, const char *alpha2);
const char *__connman_technology_get_tethering_ident(
struct connman_technology *tech);
enum connman_service_type __connman_technology_get_type(
struct connman_technology *tech);
#include <connman/device.h>
......
......@@ -490,6 +490,24 @@ bool __connman_technology_get_offlinemode(void)
return global_offlinemode;
}
const char *__connman_technology_get_tethering_ident(
struct connman_technology *tech)
{
if (!tech)
return NULL;
return tech->tethering_ident;
}
enum connman_service_type __connman_technology_get_type(
struct connman_technology *tech)
{
if (!tech)
return CONNMAN_SERVICE_TYPE_UNKNOWN; /* 0 */
return tech->type;
}
static void connman_technology_save_offlinemode(void)
{
GKeyFile *keyfile;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment