dpm/password.h
dpm/password_internal.h
dpm/zone.h
+ dpm/usb.h
)
SET (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,noexecstack")
* @retval #DPM_ERROR_NONE Successful
* @retval #DPM_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #DPM_ERROR_TIMED_OUT Time out
- * @remark See @ref CAPI_SECURITY_DPM_MODULE_POLICY section for available policy name
+ * @remarks See @ref CAPI_SECURITY_DPM_MODULE_POLICY section for available policy name
* @pre The handle must be created by dpm_manager_create().
* @see dpm_manager_create()
* @see dpm_remove_policy_changed_cb()
* @retval #DPM_ERROR_NONE Successful
* @retval #DPM_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #DPM_ERROR_TIMED_OUT Time out
- * @remark See @ref CAPI_DPM_SECURITY_MODULE_SIGNAL section for signals
+ * @remarks See @ref CAPI_DPM_SECURITY_MODULE_SIGNAL section for signals
* @pre The handle must be created by dpm_manager_create().
* @see dpm_manager_create()
* @see dpm_manager_destroy()
*/
int dpm_restriction_get_browser_state(device_policy_manager_h handle, int *is_allowed);
-int dpm_restriction_set_usb_client_state(device_policy_manager_h handle, int allow);
-int dpm_restriction_get_usb_client_state(device_policy_manager_h handle, int *is_allowed);
-
/**
* @}
*/
--- /dev/null
+/*
+ * 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 __CAPI_USB_POLICY_H__
+#define __CAPI_USB_POLICY_H__
+
+#include <dpm/device-policy-manager.h>
+
+/**
+ * @file usb.h
+ * @brief This file provides APIs to control usb client
+ */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+int dpm_restriction_set_usb_client_state(device_policy_manager_h handle, int allow);
+int dpm_restriction_get_usb_client_state(device_policy_manager_h handle, int *is_allowed);
+
+/**
+ * @}
+ */
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* __CAPI_USB_POLICY_H__ */
* @brief Called to get all the name of created zones.
* @since_tizen 3.0
* @param[in] name The zone name
- * @param[in] user_data The user data passed from dpm_zone_foreach_name
+ * @param[in] user_data The user data passed from dpm_zone_foreach_name()
* @return true to continue with the next iteration of the loop, otherwise false to break out out the loop
* @see dpm_zone_foreach_name()
*/
*/
#include "dpm/restriction.h"
+#include "dpm/usb.h"
#include "debug.h"
#include "status.h"