return MA_ERROR_NONE;
}
-static void _cred_provisioning_cb(void* ctx, int nOfRes, OCProvisionResult_t* arr, bool has_error)
+static void _cred_provisioning_cb(void* ctx, int nOfRes, OCProvisionResult_t* arr,
+ bool has_error)
{
ma_subowner_s *client = (ma_subowner_s *)ctx;
_request_cleanup(con);
}
-static int _resources_pairwise(ma_service *service, gchar *target_1, gchar *subject_1,
- gchar *rsrc_uri_1, gchar *rsrc_type_1, gchar *rsrc_interface_1, int permission_1,
- gchar *target_2, gchar *subject_2,gchar *rsrc_uri_2, gchar *rsrc_type_2,
- gchar *rsrc_interface_2, int permission_2)
+static int _resources_pairwise(ma_service *service, gchar *target_1,
+ gchar *subject_1, gchar *rsrc_uri_1, gchar *rsrc_type_1, gchar *rsrc_interface_1,
+ int permission_1, gchar *target_2, gchar *subject_2,gchar *rsrc_uri_2,
+ gchar *rsrc_type_2, gchar *rsrc_interface_2, int permission_2)
{
ma_req_cb_s *con = NULL;
ma_check_null_ret_error("g_client", g_client, MA_ERROR_NO_DATA);
_request_cleanup(con);
}
-static int _make_devices_pair(ma_service *service, gchar *pin, gchar *target_1, gchar *subject_1,
- gchar *rsrc_uri_1, gchar *rsrc_type_1, gchar *rsrc_interface_1, int permission_1,
- gchar *target_2, gchar *subject_2,gchar *rsrc_uri_2, gchar *rsrc_type_2,
- gchar *rsrc_interface_2, int permission_2)
+static int _make_devices_pair(ma_service *service, gchar *pin, gchar *target_1,
+ gchar *subject_1, gchar *rsrc_uri_1, gchar *rsrc_type_1, gchar *rsrc_interface_1,
+ int permission_1, gchar *target_2, gchar *subject_2,gchar *rsrc_uri_2,
+ gchar *rsrc_type_2, gchar *rsrc_interface_2, int permission_2)
{
ma_req_cb_s *con = NULL;
ma_check_null_ret_error("g_client", g_client, MA_ERROR_NO_DATA);
_request_cleanup(con);
}
-static int _makde_devices_unpair(ma_service *service, gchar *uuid_dev1, gchar *uuid_dev2)
+static int _make_devices_unpair(ma_service *service, gchar *uuid_dev1, gchar *uuid_dev2)
{
ma_req_cb_s *con = NULL;
ma_check_null_ret_error("g_client", g_client, MA_ERROR_NO_DATA);
/* Set d2ds status 'pending' */
g_atomic_int_set(&g_client->pending, 1);
- ret = _makde_devices_unpair(service, uuid_dev1, uuid_dev2);
+ ret = _make_devices_unpair(service, uuid_dev1, uuid_dev2);
return ret;
}
}
#ifdef TEST
-OCProvisionDev_t* ma_get_dev_by_id(const OCProvisionDev_t* dev_lst, const int dev_num)
+OCProvisionDev_t* ma_get_dev_by_id(const OCProvisionDev_t* dev_lst,
+ const int dev_num)
{
if (!dev_lst || 0>=dev_num) {
MA_LOGI("Device List is Empty..\n");
#ifdef DEBUG_UUID
MA_LOGD("[C] : %s", ma_get_readable_uuid(&lst->doxm->deviceID));
#endif
- if (!memcmp((const void *)&lst->doxm->deviceID, (const void *)uuid, sizeof(OicUuid_t))) {
+ if (!memcmp((const void *)&lst->doxm->deviceID, (const void *)uuid,
+ sizeof(OicUuid_t))) {
MA_LOGD("[M] : %s", ma_get_readable_uuid(&lst->doxm->deviceID));
return lst;
}
OCProvisionDev_t* lst = (OCProvisionDev_t*) dev_lst;
int lst_cnt = 0;
for ( ; lst; ) {
- MA_LOGI("[%d] %s", ++lst_cnt, ma_get_readable_uuid((const OicUuid_t*) &lst->doxm->deviceID));
+ MA_LOGI("[%d] %s", ++lst_cnt, ma_get_readable_uuid((const OicUuid_t*)
+ &lst->doxm->deviceID));
lst = lst->next;
}
/* Initialize Wi-Fi driver */
ret = wifi_manager_initialize(&wifi_handle);
if (WIFI_MANAGER_ERROR_NONE != ret)
- MA_LOGE("Failed to get wifi manager handle ! [%d][%s]", ret, ma_wifi_error_to_string(ret));
+ MA_LOGE("Failed to get wifi manager handle ! [%d][%s]",
+ ret, ma_wifi_error_to_string(ret));
wifi_manager_is_activated(wifi_handle, &wifi_activated);
if (false == wifi_activated) {
ret = wifi_manager_activate(wifi_handle, NULL, NULL);
if (WIFI_MANAGER_ERROR_NONE != ret)
- MA_LOGE("Failed to activate wifi ! [%d][%s]", ret, ma_wifi_error_to_string(ret));
+ MA_LOGE("Failed to activate wifi ! [%d][%s]",
+ ret, ma_wifi_error_to_string(ret));
}
ret = wifi_manager_get_mac_address(wifi_handle, &mac_addr);