return G_SOURCE_REMOVE;
}
+/* LCOV_EXCL_START */
static gboolean _icl_ioty_ocprocess_fail_idle_cb(gpointer p)
{
FN_CALL;
}
return G_SOURCE_REMOVE;
}
-
+/* LCOV_EXCL_STOP */
OCStackApplicationResult icl_ioty_ocprocess_find_cb(void *ctx, OCDoHandle handle,
OCClientResponse *resp)
static const char *ICL_PROVISIONING_DEFAULT_SEC_VERSION = "0.0.0";
+/* LCOV_EXCL_START */
static inline pthread_mutex_t* _provisioning_find_mutex_get(int type, void *data)
{
pthread_mutex_t *mutex;
g_idle_add(_provisioning_find_cb_unref, cb_data);
}
-/* LCOV_EXCL_START */
static gboolean _provisioning_find_internal_timeout(gpointer user_data)
{
FN_CALL;
return G_SOURCE_REMOVE;
}
-/* LCOV_EXCL_STOP */
-/* LCOV_EXCL_START */
static gboolean _provisioning_find_timeout(gpointer user_data)
{
FN_CALL;
return G_SOURCE_REMOVE;
}
-/* LCOV_EXCL_STOP */
static void _provisioning_free_find_cb_container(void *data)
{
return IOTCON_ERROR_NONE;
}
+/* LCOV_EXCL_STOP */
icl_provisioning_remove_cb_container_s *cb_data;
} icl_provisioning_remove_delete_container_s;
+/* LCOV_EXCL_START */
static icl_provisioning_remove_cb_container_s* _provisioning_remove_cb_ref(
icl_provisioning_remove_cb_container_s *container)
{
return container;
}
-
static void _icl_provisioning_free_remove_cb_container(
icl_provisioning_remove_cb_container_s *container, bool is_complete)
{
return G_SOURCE_REMOVE;
}
-/* LCOV_EXCL_START */
static gboolean _provisioning_remove_fail_idle_cb(gpointer p)
{
FN_CALL;
return G_SOURCE_REMOVE;
}
-/* LCOV_EXCL_STOP */
static OCStackApplicationResult _provisioning_remove_device_delete_cb(void *ctx,
OCDoHandle handle, OCClientResponse *resp)
return OC_STACK_DELETE_TRANSACTION;
}
-/* LCOV_EXCL_START */
static gboolean _provisioning_remove_device_delete_timeout(gpointer p)
{
icl_provisioning_remove_delete_container_s *container = p;
return G_SOURCE_REMOVE;
}
-/* LCOV_EXCL_STOP */
static int _provisioning_remove_device_delete(
icl_provisioning_remove_delete_container_s *container)
return IOTCON_FUNC_CONTINUE;
}
-/* LCOV_EXCL_START */
static gboolean _provisioning_remove_complete_idle_cb(gpointer p)
{
FN_CALL;
return G_SOURCE_REMOVE;
}
-/* LCOV_EXCL_STOP */
int icl_provisioning_remove_device(const char *device_id,
iotcon_provisioning_remove_device_cb cb, void *user_data)
return IOTCON_ERROR_NONE;
}
-
+/* LCOV_EXCL_STOP */
int ref_count;
};
-
+/* LCOV_EXCL_START */
char* _provisioning_parse_uuid(OicUuid_t *uuid)
{
char uuid_string[256] = {0};
return acl->permission;
}
-
+/* LCOV_EXCL_STOP */
static OTMCallbackData_t icl_pinbased_otmcb;
static struct icl_provisioning_randompin_cb_container icl_randompin_cb_container;
+/* LCOV_EXCL_START */
static iotcon_error_e _provisioning_parse_oic_error(OCStackResult ret)
{
switch (ret) {
return IOTCON_ERROR_NONE;
}
-/* LCOV_EXCL_START */
static void _provisioning_input_pin_cb(char *pin, size_t len)
{
FN_CALL;
strncpy(pin, temp, len);
}
-/* LCOV_EXCL_STOP */
int icl_provisioning_set_randompin_cb(iotcon_provisioning_randompin_cb cb,
void *user_data)
return IOTCON_ERROR_NONE;
}
+/* LCOV_EXCL_STOP */
return IOTCON_ERROR_NONE;
}
-
+/* LCOV_EXCL_START */
int icl_representation_remove_child(iotcon_representation_h parent,
iotcon_representation_h child)
{
return IOTCON_ERROR_NONE;
}
-
+/* LCOV_EXCL_STOP */
int icl_representation_foreach_children(iotcon_representation_h parent,
iotcon_children_cb cb, void *user_data)
return icl_provisioning_device_get_oxm(device, oxm);
}
+/* LCOV_EXCL_START */
API int iotcon_provisioning_device_is_owned(iotcon_provisioning_device_h device,
bool *is_owned)
{
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
return icl_provisioning_device_is_owned(device, is_owned);
}
+/* LCOV_EXCL_STOP */
API int iotcon_provisioning_acl_create(iotcon_provisioning_acl_h *acl)
{
return icl_provisioning_set_randompin_cb(cb, user_data);
}
+/* LCOV_EXCL_START */
API int iotcon_provisioning_register_unowned_device(
iotcon_provisioning_device_h device,
iotcon_provisioning_ownership_transfer_cb cb,
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
return icl_provisioning_register_unowned_device(device, cb, user_data);
}
+/* LCOV_EXCL_STOP */
API int iotcon_provisioning_provision_cred(iotcon_provisioning_device_h device1,
iotcon_provisioning_device_h device2,