From: Youngjae Shin Date: Mon, 18 Sep 2017 02:05:22 +0000 (+0900) Subject: fix coding rule error X-Git-Tag: accepted/tizen/unified/20170922.194202~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9f87a33149062206f67533a390c535c5f3bcc9a3;p=platform%2Fcore%2Fiot%2Fiotcon.git fix coding rule error Change-Id: I4f88b5cb5b47bd06f49d92845c7ff8a46f3cd5cb --- diff --git a/include/iotcon-remote-resource.h b/include/iotcon-remote-resource.h index 2b33cac..a102f20 100644 --- a/include/iotcon-remote-resource.h +++ b/include/iotcon-remote-resource.h @@ -370,7 +370,7 @@ int iotcon_remote_resource_delete(iotcon_remote_resource_h resource, iotcon_remo * @see iotcon_remote_resource_start_caching() * @see iotcon_remote_resource_stop_caching() */ -typedef void (*iotcon_remote_resource_cached_representation_changed_cb)( iotcon_remote_resource_h resource, iotcon_representation_h representation, void *user_data); +typedef void (*iotcon_remote_resource_cached_representation_changed_cb)(iotcon_remote_resource_h resource, iotcon_representation_h representation, void *user_data); /** diff --git a/include/iotcon-resource.h b/include/iotcon-resource.h index 6ab2fc6..384bcf1 100644 --- a/include/iotcon-resource.h +++ b/include/iotcon-resource.h @@ -175,7 +175,7 @@ static void _create_resource() * @{ */ - + /** * @brief Specifies the type of function passed to iotcon_resource_create() and iotcon_resource_set_request_handler(). * @details Called when server receives request from the client. @@ -230,7 +230,7 @@ typedef void (*iotcon_request_handler_cb)(iotcon_resource_h resource, iotcon_req * @see iotcon_resource_unbind_child_resource() * @see iotcon_request_handler_cb() */ -int iotcon_resource_create(const char *uri_path, iotcon_resource_types_h res_types, iotcon_resource_interfaces_h ifaces, uint8_t policies, iotcon_request_handler_cb cb, void *user_data, iotcon_resource_h *resource_handle); +int iotcon_resource_create(const char *uri_path, iotcon_resource_types_h res_types, iotcon_resource_interfaces_h ifaces, uint8_t policies, iotcon_request_handler_cb cb, void *user_data, iotcon_resource_h *resource_handle); /** diff --git a/include/iotcon.h b/include/iotcon.h index a591005..7e027fa 100644 --- a/include/iotcon.h +++ b/include/iotcon.h @@ -47,7 +47,7 @@ extern "C" { * @{ */ - + /** * @brief Initializes IoTCon. * @details Calls this function to start IoTCon. diff --git a/src/ic-provisioning.h b/src/ic-provisioning.h index 265f65b..1620f40 100644 --- a/src/ic-provisioning.h +++ b/src/ic-provisioning.h @@ -1,53 +1,53 @@ -/* - * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -#ifndef __IOTCON_INTERNAL_PROVISIONING_H__ -#define __IOTCON_INTERNAL_PROVISIONING_H__ - -#include - -int icl_provisioning_initialize(const char *file_path, const char *db_path); -int icl_provisioning_set_randompin_cb(iotcon_provisioning_randompin_cb cb, - void *user_data); -int icl_provisioning_register_unowned_device( - iotcon_provisioning_device_h device, - iotcon_provisioning_ownership_transfer_cb cb, - void *user_data); -int icl_provisioning_provision_cred(iotcon_provisioning_device_h device1, - iotcon_provisioning_device_h device2, - iotcon_provisioning_provision_cred_cb cb, - void *user_data); -int icl_provisioning_provision_acl(iotcon_provisioning_device_h device, - iotcon_provisioning_acl_h acl, - iotcon_provisioning_provision_acl_cb cb, - void *user_data); -int icl_provisioning_pairwise_devices(iotcon_provisioning_device_h device1, - iotcon_provisioning_acl_h acl1, - iotcon_provisioning_device_h device2, - iotcon_provisioning_acl_h acl2, - iotcon_provisioning_pairwise_devices_cb cb, - void *user_data); -int icl_provisioning_unlink_pairwise(iotcon_provisioning_device_h device1, - iotcon_provisioning_device_h device2, - iotcon_provisioning_unlink_pairwise_cb cb, - void *user_data); - -int icl_provisioning_find_device(iotcon_provisioning_find_e type, - iotcon_provisioning_found_device_cb cb, void *user_data); - -int icl_provisioning_remove_device(const char *device_id, - iotcon_provisioning_remove_device_cb cb, void *user_data); - -#endif /* __IOTCON_INTERNAL_PROVISIONING_H__ */ +/* + * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +#ifndef __IOTCON_INTERNAL_PROVISIONING_H__ +#define __IOTCON_INTERNAL_PROVISIONING_H__ + +#include + +int icl_provisioning_initialize(const char *file_path, const char *db_path); +int icl_provisioning_set_randompin_cb(iotcon_provisioning_randompin_cb cb, + void *user_data); +int icl_provisioning_register_unowned_device( + iotcon_provisioning_device_h device, + iotcon_provisioning_ownership_transfer_cb cb, + void *user_data); +int icl_provisioning_provision_cred(iotcon_provisioning_device_h device1, + iotcon_provisioning_device_h device2, + iotcon_provisioning_provision_cred_cb cb, + void *user_data); +int icl_provisioning_provision_acl(iotcon_provisioning_device_h device, + iotcon_provisioning_acl_h acl, + iotcon_provisioning_provision_acl_cb cb, + void *user_data); +int icl_provisioning_pairwise_devices(iotcon_provisioning_device_h device1, + iotcon_provisioning_acl_h acl1, + iotcon_provisioning_device_h device2, + iotcon_provisioning_acl_h acl2, + iotcon_provisioning_pairwise_devices_cb cb, + void *user_data); +int icl_provisioning_unlink_pairwise(iotcon_provisioning_device_h device1, + iotcon_provisioning_device_h device2, + iotcon_provisioning_unlink_pairwise_cb cb, + void *user_data); + +int icl_provisioning_find_device(iotcon_provisioning_find_e type, + iotcon_provisioning_found_device_cb cb, void *user_data); + +int icl_provisioning_remove_device(const char *device_id, + iotcon_provisioning_remove_device_cb cb, void *user_data); + +#endif /* __IOTCON_INTERNAL_PROVISIONING_H__ */