The profile name of struct net_profile_info_t and the path
of struct connman_service are the same.
Change-Id: I8214f48a073d77620e235bae11005f0aa00ef141
Signed-off-by: Chengyi Zhao <chengyi1.zhao@archermind.com>
#include <dlog.h>
#include <connman-lib-common.h>
+#include <connman-service.h>
#include "net_cm_intf.h"
#include "net_connection.h"
net_service_type_t _connection_profile_convert_to_libnet_cellular_service_type(connection_cellular_service_type_e svc_type);
net_state_type_t _connection_profile_convert_to_net_state(connection_profile_state_e state);
+struct connman_service *_connection_libnet_get_service_h(
+ connection_profile_h profile);
+
void _connection_inter_mutex_lock(void);
void _connection_inter_mutex_unlock(void);
#include <winet-wifi.h>
#include <connman-lib.h>
#include <connman-technology.h>
-#include <connman-service.h>
#include "net_connection_private.h"
static GSList *prof_handle_list = NULL;
return CONNECTION_ERROR_NONE;
}
+struct connman_service *_connection_libnet_get_service_h(
+ connection_profile_h profile)
+{
+ struct connman_service *service =
+ connman_get_service_with_path(
+ ((net_profile_info_t *) profile)->profile_name);
+
+ return service;
+}