2 * Copyright (c) 2012 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * @file libprivilege-control_test_duplicates.h
19 * @author Lukasz Wojciechowski (l.wojciechow@partner.samsung.com)
21 * @brief libprivilege-control private functions duplicates
24 #ifndef LIBPRIVILEGE_CONTROL_TEST_DUPLICATES_H_
25 #define LIBPRIVILEGE_CONTROL_TEST_DUPLICATES_H_
28 #include <privilege-control.h>
31 * @brief Get the permission family type name.
33 * @ingroup RDB internal functions test duplicate
35 * @param app_type type of the application
36 * @return PC_OPERATION_SUCCESS on success,
37 * error code otherwise
39 std::string app_type_name(app_type_t app_type);
42 * @brief Get the permission type name
44 * @ingroup RDB internal functions test duplicate
46 * @param app_type type of the application
47 * @return PC_OPERATION_SUCCESS on success,
48 * error code otherwise
50 std::string app_type_group_name(app_type_t app_type);
53 * @brief URI to basename conversion
55 * This function changes permission URI to basename for file name.
56 * For e.g. from http://tizen.org/privilege/contact.read will be
57 * created basename : org.tizen.privilege.contact.read
59 * @ingroup RDB internal functions test duplicate
61 * @param perm permission URI
62 * @param name created basename
63 * @return PC_OPERATION_SUCCESS on success,
64 * error code otherwise
66 int base_name_from_perm(const char *perm, std::string& name);
68 #endif /* LIBPRIVILEGE_CONTROL_TEST_DUPLICATES_H_ */