pass: Clean up APIs for removed modules
authorWook Song <wook16.song@samsung.com>
Mon, 21 Nov 2016 07:20:24 +0000 (16:20 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 16 Jan 2017 11:35:37 +0000 (20:35 +0900)
This patch cleans up the APIs of deviced. Since the modules which are
no longer required by PASS are excluded from the package, APIs that
correspond to these modules are removed.

Signed-off-by: Wook Song <wook16.song@samsung.com>
src/deviced/dd-deviced-managed.h [changed mode: 0755->0644]
src/deviced/dd-deviced.h [changed mode: 0755->0644]
src/deviced/dd-display.h [deleted file]
src/deviced/dd-haptic.h [deleted file]
src/deviced/dd-led.h [deleted file]
src/deviced/dd-mmc.h [deleted file]
src/deviced/dd-storage.h [deleted file]
src/deviced/dd-usbhost.h [deleted file]
src/deviced/haptic-module.h [deleted file]
src/deviced/haptic-plugin-intf.h [deleted file]

old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
diff --git a/src/deviced/dd-display.h b/src/deviced/dd-display.h
deleted file mode 100644 (file)
index f7a7101..0000000
+++ /dev/null
@@ -1,217 +0,0 @@
-/*
- * deviced
- *
- * Copyright (c) 2012 - 2013 Samsung Electronics Co., Ltd.
- *
- * 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 __DD_DISPLAY_H__
-#define __DD_DISPLAY_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * @file        dd-display.h
- * @defgroup    CAPI_SYSTEM_DEVICED_DISPLAY_MODULE Display
- * @ingroup     CAPI_SYSTEM_DEVICED
- * @brief       This file provides the API for control of display
- * @section CAPI_SYSTEM_DEVICED_DISPLAY_MODULE_HEADER Required Header
- *   \#include <dd-display.h>
- */
-
-/**
- * @addtogroup CAPI_SYSTEM_DEVICED_DISPLAY_MODULE
- * @{
- */
-
-#include "dd-common.h"
-
-/**
- * LCD state
- */
-#define LCD_NORMAL  0x01 /**< NORMAL state */
-#define LCD_DIM     0x02 /**< LCD dimming state */
-#define LCD_OFF     0x04 /**< LCD off state */
-#define SUSPEND     0x08 /**< Sleep state */
-#define POWER_OFF   0x10 /**< Sleep state */
-#define STANDBY     0x20 /**< Standby state */
-#define SETALL (LCD_DIM | LCD_OFF | LCD_NORMAL)        /*< select all state - not supported yet */
-
-/**
- * Parameters for display_lock_state()
- */
-#define STAY_CUR_STATE 0x1
-#define GOTO_STATE_NOW 0x2
-#define HOLD_KEY_BLOCK 0x4
-#define STANDBY_MODE   0x8
-
-/**
- * Parameters for display_unlock_state()
- */
-#define PM_SLEEP_MARGIN        0x0     /**< keep guard time for unlock */
-#define PM_RESET_TIMER 0x1     /**< reset timer for unlock */
-#define PM_KEEP_TIMER  0x2     /**< keep timer for unlock */
-
-/**
- * @brief This API is used to get the max brightness of the display.\n
- * @details It gets the current brightness of the display
- *     by calling device_get_property() function.\n
- *     It returns integer value which is the max brightness on success.\n
- *     Or a negative value(-1) is returned on failure
- * @return max brightness value on success, negative if failed
- * @par Example
- * @code
- *  ...
- *  int max_brt;
- *  max_brt = display_get_max_brightness();
- *  if( max_brt < 0 )
- *      printf("Fail to get the max brightness of the display.\n");
- *  else
- *      printf("Max brightness of the display is %d\n", max_brt);
- *  ...
- * @endcode
- */
-int display_get_max_brightness(void);
-
-/**
- * @brief This API is used to set the current brightness of the display
- *     and system brightness value in settings.\n
- * @details It sets the current brightness of the display
- *     by calling device_set_property() function.\n
- *     MUST use this API very carefully. \n
- *     This api is different from display_set_brightness api.\n
- *     display_set_brightness api will change only device brightness value.\n
- *     but this api will change device brightness
- *     as well as system brightness value.\n
- * @param[in] val brightness value that you want to set
- * @return 0 on success, negative if failed
- * @see display_set_brightness()
- * @par Example
- * @code
- *  ...
- *  if( display_set_brightness_with_setting(6) < 0 )
- *      printf("Fail to set the current brightness of the display\n");
- *  else
- *      printf("The current brightness of the display is set 6\n");
- *  ...
- * @endcode
- */
-int display_set_brightness_with_setting(int val);
-
-enum refresh_app {
-       REFRESH_SETTING,
-       REFRESH_VIDEO,
-       REFRESH_CAMERA,
-       REFRESH_WEB,
-};
-
-/**
- * @brief This API is used to lock a particular display state
- *     as the current display-state.\n
- * @details The parameter state specifies the display state which
- *     you want to lock LCD_NORMAL, LCD_DIM, LCD_OFF. \n
- *     The second parameter Flag is set if you want to go
- *     the requested lock state directly.\n
- *     The third parameter timeout specifies lock-timeout in milliseconds.
- *     If the value 0 is selected, the display state remains locked
- *     until display_unlock_state is called.
- * @param[in] state target power state which you want to lock
- *     - LCD_NORMAL, LCD_DIM, LCD_OFF
- * @param[in] flag set if you want to go the lock state directly \n
- *     GOTO_STATE_NOW - State is changed directly you want to lock.\n
- *     STAY_CUR_STATE - State is not changed directly and
- *     phone stay current state until timeout expired.\n
- *     HOLD_KEY_BLOCK - Hold key is blocked during locking
- *     LCD_NORMAL or LCD_DIM. \n
- *     Then LCD state transition to LCD_OFF is blocked. \n
- *     If this flag is not set, phone state is lcd off
- *     after pressing hold key. \n
- *     GOTO_STATE_NOW and STAY_CUR_STATE can't be applied at the same time.
- * @param[in] timeout lock-timeout in miliseconds. \n
- *     0 is always lock until calling display_unlock_state
- * @return 0 on success, negative if failed
- * @see display_unlock_state(), display_change_state()
- * @par Example
- * @code
- *  ...
- *  result = pm_lock_state(LCD_NORMAL, GOTO_STATE_NOW, SET_TIMEOUT);
- *  if( result < 0 )
- *      printf("[ERROR] return value result =%d, \n",result);
- *  else
- *      printf("[SUCCESS]return value result =%d \n",result);
- *  ...
- * @endcode
- */
-int display_lock_state(unsigned int state, unsigned int flag, unsigned int timeout);
-
-/**
- * @brief This API is used to unlock the display state. \n
- * @details The parameter state specifies the display
- *     state which you want to unlock. \n
- *     Some examples are LCD_NORMAL, LCD_DIM, LCD_OFF.
- * @param[in] state target display state which you want to unlock
- * @param[in] flag set timer which is going to the next state after unlocking\n
- *     PM_SLEEP_MARGIN - If the current status is lcd off,
- *     deviced reset timer to 1 second.
- *     If the current status is not lcd off, deviced uses the existing timer.\n
- *     PM_RESET_TIMER - deviced resets timer.
- *     (lcd normal : reset timer to predfined value
- *     which is set in setting module,
- *     lcd dim : reset timer to 5 seconds, lcd off : reset timer to 1 seconds)\n
- *     PM_KEEP_TIMER - deviced uses the existing timer
- *     (if timer is already expired, deviced changes the status) \n
- * @return 0 on success, negative if failed
- * @see display_lock_state(), display_change_state()
- * @par Example
- * @code
- *  ...
- *  result = display_unlock_state(LCD_NORMAL,PM_RESET_TIMER);
- *  if( result < 0 )
- *      printf("[ERROR] return value result =%d, \n",result);
- *  else
- *      printf("[SUCCESS]return value result =%d \n",result);
- *  ...
- * @endcode
- */
-int display_unlock_state(unsigned int state, unsigned int flag);
-
-/**
- * @brief This API is used to change display state by force.
- * @param[in] state display state - LCD_NORMAL, LCD_DIM, LCD_OFF
- * @return 0 on success, negative if failed.
- * @see display_lock_state(), display_unlock_state()
- * @par Example
- * @code
- *  ...
- *  result = display_change_state(LCD_OFF);
- *  if( result < 0 )
- *      printf("[ERROR] return value result =%d, \n",result);
- *  else
- *      printf("[SUCCESS]return value result =%d \n",result);
- *  ...
- * @endcode
- */
-int display_change_state(unsigned int state);
-
-/**
- * @} // end of CAPI_SYSTEM_DEVICED_DISPLAY_MODULE
- */
-
-#ifdef __cplusplus
-}
-#endif
-#endif
diff --git a/src/deviced/dd-haptic.h b/src/deviced/dd-haptic.h
deleted file mode 100644 (file)
index a3ee1ea..0000000
+++ /dev/null
@@ -1,654 +0,0 @@
-/*
- * deviced
- *
- * Copyright (c) 2012 - 2013 Samsung Electronics Co., Ltd.
- *
- * 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 __DD_HAPTIC_H__
-#define __DD_HAPTIC_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * @file        dd-haptic.h
- * @defgroup    CAPI_SYSTEM_DEVICED_HAPTIC_MODULE Haptic
- * @ingroup     CAPI_SYSTEM_DEVICED
- * @brief       This file provides the API for control of haptic
- * @section CAPI_SYSTEM_DEVICED_HAPTI_MODULE_HEADER Required Header
- *   \#include <dd-haptic.h>
- */
-
-/**
- * @addtogroup CAPI_SYSTEM_DEVICED_HAPTIC_MODULE
- * @{
- */
-
-/**
- * @brief The handle of haptic device
- */
-typedef int haptic_device_h;
-
-/**
- * @brief The handle of haptic effect
- */
-typedef int haptic_effect_h;
-
-/**
- * @brief Enumerations of device id for the Haptic API.
- * @details We support two motors now.
- */
-typedef enum {
-       HAPTIC_DEVICE_0 = 0x0,                  /**< 1st motor */
-       HAPTIC_DEVICE_1 = 0x1,                  /**< 2nd motor */
-       HAPTIC_DEVICE_ALL = 0x4,                /**< both of them */
-} haptic_device_e;
-
-/**
- * @brief Enumerations of priority level for the Haptic API.
- */
-typedef enum
-{
-       HAPTIC_PRIORITY_MIN = 0,                /**< Minimum effect priority for developers (default) */
-       HAPTIC_PRIORITY_MIDDLE,                 /**< Maximum effect priority for developers */
-       HAPTIC_PRIORITY_HIGH,                   /**< Maximum effect priority for OEMs */
-} haptic_priority_e;
-
-/**
- * @brief Enumerations of feedback level for the Haptic API.
- * @details Haptic level means vibration power (intensity).
- */
-typedef enum
-{
-       HAPTIC_FEEDBACK_0 = 0,                          /**< feedback level 0 */
-       HAPTIC_FEEDBACK_1 = 20,                         /**< feedback level 1 */
-       HAPTIC_FEEDBACK_2 = 40,                         /**< feedback level 2 */
-       HAPTIC_FEEDBACK_3 = 60,                         /**< feedback level 3 */
-       HAPTIC_FEEDBACK_4 = 80,                         /**< feedback level 4 */
-       HAPTIC_FEEDBACK_5 = 100,                        /**< feedback level 5 */
-       HAPTIC_FEEDBACK_AUTO,                           /**< feedback level auto */
-} haptic_feedback_e;
-
-/**
- * @brief Enumerations of unlimited duration for the Haptic API.
- */
-typedef enum {
-       HAPTIC_DURATION_UNLIMITED = 0x7FFFFFFF,
-} haptic_duration_e;
-
-/**
- * @brief Enumerations of iteration count for the Haptic API.
- */
-typedef enum
-{
-       HAPTIC_ITERATION_ONCE = 1,
-       HAPTIC_ITERATION_INFINITE = 256,
-} haptic_iteration_e;
-
-/**
- * @brief Enumerations of effect or device state for the Haptic API.
- */
-typedef enum
-{
-       HAPTIC_STATE_STOP = 0,
-       HAPTIC_STATE_PLAYING,
-} haptic_state_e;
-
-/**
- * @brief Enumerations of error codes for the Haptic API.
- */
-typedef enum
-{
-       HAPTIC_ERROR_NONE                 = 0, //TIZEN_ERROR_NONE,                      /**< Successful */
-       HAPTIC_ERROR_INVALID_PARAMETER    = -1, //TIZEN_ERROR_INVALID_PARAMETER,        /**< Invalid parameter */
-       HAPTIC_ERROR_FILE_EXISTS          = -2, //TIZEN_ERROR_FILE_EXISTS,              /**< File exists */
-       HAPTIC_ERROR_NOT_INITIALIZED      = -3, //TIZEN_ERROR_SYSTEM_CLASS | 0x26,      /**< Not initialized */
-       HAPTIC_ERROR_OPERATION_FAILED     = -4, //TIZEN_ERROR_SYSTEM_CLASS | 0x28,      /**< Operation failed */
-       HAPTIC_ERROR_NOT_SUPPORTED_DEVICE = -5, //TIZEN_ERROR_SYSTEM_CLASS | 0x30,      /**< Not supported device */
-} haptic_error_e;
-
-/**
- * @brief Gets the number of the vibrators.
- *
- * @remarks The index HAPTIC_DEVICE_ALL is reserved meaning for all vibrators at a time.
- *
- * @param[in] device_number A number of vibrators
- *
- * @return 0 on success, otherwise a negative error value.
- * @retval #HAPTIC_ERROR_NONE                   Successful
- * @retval #HAPTIC_ERROR_INVALID_PARAMETER     Invalid parameter
- * @retval #HAPTIC_ERROR_OPERATION_FAILED      Operation failed
- * @retval #HAPTIC_ERROR_NOT_SUPPORTED_DEVICE  Not supported device
- */
-int haptic_get_count(int *device_number);
-
-/**
- * @brief Opens a haptic-vibration device.
- *
- * @details Internally, it makes a connection to the vibrator.
- *
- * @remarks If this function is not called in advance, other functions will return #HAPTIC_ERROR_NOT_INITIALIZED.
- * @remarks Haptic API must be closed by haptic_close().
- *
- * @return 0 on success, otherwise a negative error value.
- * @retval #HAPTIC_ERROR_NONE                  Successful
- * @retval #HAPTIC_ERROR_INVALID_PARAMETER     Invalid parameter
- * @retval #HAPTIC_ERROR_OPERATION_FAILED      Operation failed
- * @retval #HAPTIC_ERROR_NOT_SUPPORTED_DEVICE  Not supported device
- *
- * @see haptic_close()
- */
-int haptic_open(haptic_device_e device, haptic_device_h *device_handle);
-
-/**
- * @brief Closes a haptic-vibration device.
- *
- * @details Internally, it disconnects the connection to vibrator.
- *
- * @return 0 on success, otherwise a negative error value.
- * @retval #HAPTIC_ERROR_NONE                  Successful
- * @retval #HAPTIC_ERROR_INVALID_PARAMETER     Invalid parameter
- * @retval #HAPTIC_ERROR_NOT_INITIALIZED       Not initialized
- * @retval #HAPTIC_ERROR_OPERATION_FAILED      Operation failed
- * @retval #HAPTIC_ERROR_NOT_SUPPORTED_DEVICE  Not supported device
- *
- * @see haptic_open()
- */
-int haptic_close(haptic_device_h device_handle);
-
-/**
- * @brief Vibrates during the specified time with a constant intensity.
- * @details
- * This function can be used to start monotonous vibration for specified time.
- *
- * @remark
- * If you don't use th api regarding effect_handle, you can pass in a NULL value to last parameter.\n
- * And default value of feedback and priority is used.\n
- * feedback level is reserved for auto chaning to save variable in the settings.\n
- * priority level uses HAPTIC_PRIORITY_MIN.
- *
- * @param[in] device_handle    The device handle from haptic_open()
- * @param[in] duration         The play duration in milliseconds
- * @param[out] effect_handle   Pointer to the variable that will receive a handle to the playing effect
- *
- * @return 0 on success, otherwise a negative error value.
- * @retval #HAPTIC_ERROR_NONE                  Successful
- * @retval #HAPTIC_ERROR_INVALID_PARAMETER     Invalid parameter
- * @retval #HAPTIC_ERROR_NOT_INITIALIZED       Not initialized
- * @retval #HAPTIC_ERROR_OPERATION_FAILED      Operation failed
- * @retval #HAPTIC_ERROR_NOT_SUPPORTED_DEVICE  Not supported device
- *
- * @see haptic_vibrate_monotone_with_detail()
- * @see haptic_vibrate_file()
- * @see haptic_vibrate_buffer()
- * @see haptic_get_count()
- */
-int haptic_vibrate_monotone(haptic_device_h device_handle, int duration, haptic_effect_h *effect_handle);
-
-/**
- * @brief Vibrates during the specified time with a constant intensity.
- * @details
- * This function can be used to start monotonous vibration for specified time.
- *
- * @remark
- * If you don't use th api regarding effect_handle, you can pass in a NULL value to last parameter.
- *
- * @param[in] device_handle    The device handle from haptic_open()
- * @param[in] duration         The play duration in milliseconds
- * @param[in] feedback         The amount of the intensity variation
- * @param[in] priority         The priority from HAPTIC_PRIORITY_MIN to HAPTIC_PRIORITY_HIGH
- * @param[out] effect_handle   Pointer to the variable that will receive a handle to the playing effect
- *
- * @return 0 on success, otherwise a negative error value.
- * @retval #HAPTIC_ERROR_NONE                  Successful
- * @retval #HAPTIC_ERROR_INVALID_PARAMETER     Invalid parameter
- * @retval #HAPTIC_ERROR_NOT_INITIALIZED       Not initialized
- * @retval #HAPTIC_ERROR_OPERATION_FAILED      Operation failed
- * @retval #HAPTIC_ERROR_NOT_SUPPORTED_DEVICE  Not supported device
- *
- * @see haptic_vibrate_monotone()
- * @see haptic_vibrate_file_with_detail()
- * @see haptic_vibrate_buffer_with_detail()
- * @see haptic_get_count()
- */
-int haptic_vibrate_monotone_with_detail(haptic_device_h device_handle,
-                                                                               int duration,
-                                                                               haptic_feedback_e feedback,
-                                                                               haptic_priority_e priority,
-                                                                               haptic_effect_h *effect_handle);
-
-/**
- * @brief Vibrates a predefined rhythmic haptic-vibration pattern file.
- * @details
- * This function can be used to play a haptic-vibration pattern file.
- *
- * @remark
- * If you don't use th api regarding effect_handle, you can pass in a NULL value to last parameter.\n
- * And default value of feedback and priority is used.\n
- * feedback level is reserved for auto chaning to save variable in the settings.\n
- * priority level uses HAPTIC_PRIORITY_MIN.
- *
- * @param[in] device_handle    The device handle from haptic_open()
- * @param[in] file_path        Vibration pattern file with path
- * @param[out] effect_handle   Pointer to the variable that will receive a handle to the playing effect
- *
- * @return 0 on success, otherwise a negative error value.
- * @retval #HAPTIC_ERROR_NONE                  Successful
- * @retval #HAPTIC_ERROR_INVALID_PARAMETER     Invalid parameter
- * @retval #HAPTIC_ERROR_NOT_INITIALIZED       Not initialized
- * @retval #HAPTIC_ERROR_OPERATION_FAILED      Operation failed
- * @retval #HAPTIC_ERROR_NOT_SUPPORTED_DEVICE  Not supported device
- *
- * @see haptic_vibrate_file_with_detail()
- * @see haptic_vibrate_monotone()
- * @see haptic_vibrate_buffer()
- * @see haptic_get_count()
- */
-int haptic_vibrate_file(haptic_device_h device_handle, const char *file_path, haptic_effect_h *effect_handle);
-
-/**
- * @brief Vibrates a predefined rhythmic haptic-vibration pattern file.
- * @details
- * This function can be used to play a haptic-vibration pattern file.
- *
- * @remark
- * If you don't use th api regarding effect_handle, you can pass in a NULL value to last parameter.
- *
- * @param[in] device_handle    The device handle from haptic_open()
- * @param[in] file_path        Vibration pattern file with path
- * @param[in] iteration        The number of times to repeat the effect
- * @param[in] feedback         The amount of the intensity variation
- * @param[in] priority         The priority from HAPTIC_PRIORITY_MIN to HAPTIC_PRIORITY_HIGH
- * @param[out] effect_handle   Pointer to the variable that will receive a handle to the playing effect
- *
- * @return 0 on success, otherwise a negative error value.
- * @retval #HAPTIC_ERROR_NONE                  Successful
- * @retval #HAPTIC_ERROR_INVALID_PARAMETER     Invalid parameter
- * @retval #HAPTIC_ERROR_NOT_INITIALIZED       Not initialized
- * @retval #HAPTIC_ERROR_OPERATION_FAILED      Operation failed
- * @retval #HAPTIC_ERROR_NOT_SUPPORTED_DEVICE  Not supported device
- *
- * @see haptic_vibrate_file()
- * @see haptic_vibrate_monotone_with_detail()
- * @see haptic_vibrate_buffer_with_detail()
- * @see haptic_get_count()
- */
-int haptic_vibrate_file_with_detail(haptic_device_h device_handle,
-                                                                       const char *file_path,
-                                                                       haptic_iteration_e iteration,
-                                                                       haptic_feedback_e feedback,
-                                                                       haptic_priority_e priority,
-                                                                       haptic_effect_h *effect_handle);
-
-/**
- * @brief Vibrates a predefined rhythmic haptic-vibration pattern buffer.
- * @details
- * This function can be used to play a haptic-vibration pattern buffer.
- *
- * @remark
- * If you don't use th api regarding effect_handle, you can pass in a NULL value to last parameter.\n
- * And default value of feedback and priority is used.\n
- * feedback level is reserved for auto chaning to save variable in the settings.\n
- * priority level uses HAPTIC_PRIORITY_MIN.
- *
- * @param[in] device_handle    The device handle from haptic_open()
- * @param[in] vibe_buffer              Pointer to the vibration pattern
- * @param[out] effect_handle   Pointer to the variable that will receive a handle to the playing effect
- *
- * @return 0 on success, otherwise a negative error value.
- * @retval #HAPTIC_ERROR_NONE                  Successful
- * @retval #HAPTIC_ERROR_INVALID_PARAMETER     Invalid parameter
- * @retval #HAPTIC_ERROR_NOT_INITIALIZED       Not initialized
- * @retval #HAPTIC_ERROR_OPERATION_FAILED      Operation failed
- * @retval #HAPTIC_ERROR_NOT_SUPPORTED_DEVICE  Not supported device
- *
- * @see haptic_vibrate_buffer_with_detail()
- * @see haptic_vibrate_monotone()
- * @see haptic_vibrate_file()
- * @see haptic_get_count()
- */
-int haptic_vibrate_buffer(haptic_device_h device_handle, const unsigned char *vibe_buffer, haptic_effect_h *effect_handle);
-
-/**
- * @brief Vibrates a predefined rhythmic haptic-vibration pattern buffer.
- * @details
- * This function can be used to play a haptic-vibration pattern buffer.
- *
- * @remark
- * If you don't use th api regarding effect_handle, you can pass in a NULL value to last parameter.
- *
- * @param[in] device_handle    The device handle from haptic_open()
- * @param[in] vibe_buffer      Pointer to the vibration pattern
- * @param[in] iteration        The number of times to repeat the effect
- * @param[in] feedback         The amount of the intensity variation
- * @param[in] priority         The priority from HAPTIC_PRIORITY_MIN to HAPTIC_PRIORITY_HIGH
- * @param[out] effect_handle   Pointer to the variable that will receive a handle to the playing effect
- *
- * @return 0 on success, otherwise a negative error value.
- * @retval #HAPTIC_ERROR_NONE                  Successful
- * @retval #HAPTIC_ERROR_INVALID_PARAMETER     Invalid parameter
- * @retval #HAPTIC_ERROR_NOT_INITIALIZED       Not initialized
- * @retval #HAPTIC_ERROR_OPERATION_FAILED      Operation failed
- * @retval #HAPTIC_ERROR_NOT_SUPPORTED_DEVICE  Not supported device
- *
- * @see haptic_vibrate_buffer()
- * @see haptic_vibrate_monotone_with_detail()
- * @see haptic_vibrate_file_with_detail()
- * @see haptic_get_count()
- */
-int haptic_vibrate_buffer_with_detail(haptic_device_h device_handle,
-                                                                         const unsigned char *vibe_buffer,
-                                                                         haptic_iteration_e iteration,
-                                                                         haptic_feedback_e feedback,
-                                                                         haptic_priority_e priority,
-                                                                         haptic_effect_h *effect_handle);
-
-/**
- * @brief Vibrates a predefined rhythmic haptic-vibration pattern buffer.
- * @details
- * This function can be used to play a haptic-vibration pattern buffer.
- *
- * @remark
- * If you don't use th api regarding effect_handle, you can pass in a NULL value to last parameter.\n
- * And default value of feedback and priority is used.\n
- * feedback level is reserved for auto chaning to save variable in the settings.\n
- * priority level uses HAPTIC_PRIORITY_MIN.
- *
- * @param[in] device_handle    The device handle from haptic_open()
- * @param[in] vibe_buffer              Pointer to the vibration pattern
- * @param[in] size                     Size to the vibration pattern
- * @param[out] effect_handle   Pointer to the variable that will receive a handle to the playing effect
- *
- * @return 0 on success, otherwise a negative error value.
- * @retval #HAPTIC_ERROR_NONE                  Successful
- * @retval #HAPTIC_ERROR_INVALID_PARAMETER     Invalid parameter
- * @retval #HAPTIC_ERROR_NOT_INITIALIZED       Not initialized
- * @retval #HAPTIC_ERROR_OPERATION_FAILED      Operation failed
- * @retval #HAPTIC_ERROR_NOT_SUPPORTED_DEVICE  Not supported device
- *
- * @see haptic_vibrate_buffer_with_detail()
- * @see haptic_vibrate_monotone()
- * @see haptic_vibrate_file()
- * @see haptic_get_count()
- */
-int haptic_vibrate_buffers(haptic_device_h device_handle,
-                                                       const unsigned char *vibe_buffer,
-                                                       int size,
-                                                       haptic_effect_h *effect_handle);
-
-/**
- * @brief Vibrates a predefined rhythmic haptic-vibration pattern buffer.
- * @details
- * This function can be used to play a haptic-vibration pattern buffer.
- *
- * @remark
- * If you don't use th api regarding effect_handle, you can pass in a NULL value to last parameter.
- *
- * @param[in] device_handle    The device handle from haptic_open()
- * @param[in] vibe_buffer      Pointer to the vibration pattern
- * @param[in] size              Size to the vibration pattern
- * @param[in] iteration        The number of times to repeat the effect
- * @param[in] feedback         The amount of the intensity variation
- * @param[in] priority         The priority from HAPTIC_PRIORITY_MIN to HAPTIC_PRIORITY_HIGH
- * @param[out] effect_handle   Pointer to the variable that will receive a handle to the playing effect
- *
- * @return 0 on success, otherwise a negative error value.
- * @retval #HAPTIC_ERROR_NONE                  Successful
- * @retval #HAPTIC_ERROR_INVALID_PARAMETER     Invalid parameter
- * @retval #HAPTIC_ERROR_NOT_INITIALIZED       Not initialized
- * @retval #HAPTIC_ERROR_OPERATION_FAILED      Operation failed
- * @retval #HAPTIC_ERROR_NOT_SUPPORTED_DEVICE  Not supported device
- *
- * @see haptic_vibrate_buffer()
- * @see haptic_vibrate_monotone_with_detail()
- * @see haptic_vibrate_file_with_detail()
- * @see haptic_get_count()
- */
-int haptic_vibrate_buffers_with_detail(haptic_device_h device_handle,
-                                      const unsigned char *vibe_buffer,
-                                                                         int size,
-                                      haptic_iteration_e iteration,
-                                      haptic_feedback_e feedback,
-                                      haptic_priority_e priority,
-                                      haptic_effect_h *effect_handle);
-
-/**
- * @brief Stops the current vibration effect which is being played.
- * @details This function can be used to stop each effect started by haptic_vibrate_xxx().
- *
- * @remark
- *
- * @param[in] device_handle    The device handle from haptic_open()
- * @param[in] effect_handle    The effect handle from haptic_vibrate_xxx()
- *
- * @return 0 on success, otherwise a negative error value.
- * @retval #HAPTIC_ERROR_NONE                  Successful
- * @retval #HAPTIC_ERROR_INVALID_PARAMETER     Invalid parameter
- * @retval #HAPTIC_ERROR_NOT_INITIALIZED       Not initialized
- * @retval #HAPTIC_ERROR_OPERATION_FAILED      Operation failed
- * @retval #HAPTIC_ERROR_NOT_SUPPORTED_DEVICE  Not supported device
- *
- * @see haptic_vibrate_buffer()
- * @see haptic_vibrate_monotone()
- * @see haptic_vibrate_file()
- * @see haptic_get_count()
- * @see haptic_stop_all_effects()
- */
-int haptic_stop_effect(haptic_device_h device_handle, haptic_effect_h effect_handle);
-
-/**
- * @brief Stops all vibration effects which are being played.
- * @details This function can be used to stop all effects started by haptic_vibrate_xxx().
- *
- * @remark
- *
- * @param[in] device_handle    The device handle from haptic_open()
- *
- * @return 0 on success, otherwise a negative error value.
- * @retval #HAPTIC_ERROR_NONE                  Successful
- * @retval #HAPTIC_ERROR_INVALID_PARAMETER     Invalid parameter
- * @retval #HAPTIC_ERROR_NOT_INITIALIZED       Not initialized
- * @retval #HAPTIC_ERROR_OPERATION_FAILED      Operation failed
- * @retval #HAPTIC_ERROR_NOT_SUPPORTED_DEVICE  Not supported device
- *
- * @see haptic_vibrate_buffer()
- * @see haptic_vibrate_monotone()
- * @see haptic_vibrate_file()
- * @see haptic_get_count()
- * @see haptic_stop_effect()
- */
-int haptic_stop_all_effects(haptic_device_h device_handle);
-
-/**
- * @brief Gets the status of the effect.
- * @details This function can be used to get the status of the effect wheter the effect are playing or not.
- *
- * @remark
- *
- * @param[in] device_handle    The device handle from haptic_open()
- * @param[in] effect_handle    The effect handle from haptic_vibrate_xxx()
- * @param[out] state           The pointer to variable that will receive the status of the effect.
- *
- * @return 0 on success, otherwise a negative error value.
- * @retval #HAPTIC_ERROR_NONE                  Successful
- * @retval #HAPTIC_ERROR_INVALID_PARAMETER     Invalid parameter
- * @retval #HAPTIC_ERROR_NOT_INITIALIZED       Not initialized
- * @retval #HAPTIC_ERROR_OPERATION_FAILED      Operation failed
- * @retval #HAPTIC_ERROR_NOT_SUPPORTED_DEVICE  Not supported device
- *
- * @see haptic_vibrate_buffer()
- * @see haptic_vibrate_monotone()
- * @see haptic_vibrate_file()
- * @see haptic_get_count()
- * @see haptic_stop_effect()
- * @see haptic_stop_all_effects()
- */
-int haptic_get_effect_state(haptic_device_h device_handle, haptic_effect_h effect_handle, haptic_state_e *state);
-
-/**
- * @par Description:
- *      effect element for haptic.
- */
-typedef struct {
-       int haptic_duration;    /**< Start time of the effect element in millisecond */
-       int haptic_level;       /**< Duration of the effect element in millisecond */
-} haptic_effect_element_s;
-
-/**
- * @brief Creates an effect buffer.
- * @details This function can be used to create an effect buffer using effeclt_element variable.
- *
- * @remark
- *
- * @param[out] vibe_buffer     Pointer to the vibration pattern
- * @param[in] max_bufsize              The size of the buffer pointed to by vibe_buffer
- * @param[in] elem_arr                 Pointer to an haptic_effect_element_s structure
- * @param[in] max_elemcnt              The size fo the buffer pointed to by elem_arr
- *
- * @return 0 on success, otherwise a negative error value.
- * @retval #HAPTIC_ERROR_NONE                  Successful
- * @retval #HAPTIC_ERROR_INVALID_PARAMETER     Invalid parameter
- * @retval #HAPTIC_ERROR_NOT_INITIALIZED       Not initialized
- * @retval #HAPTIC_ERROR_OPERATION_FAILED      Operation failed
- * @retval #HAPTIC_ERROR_NOT_SUPPORTED_DEVICE  Not supported device
- *
- * @see haptic_save_effect()
- */
-int haptic_create_effect(unsigned char *vibe_buffer,
-                                                int max_bufsize,
-                                                haptic_effect_element_s *elem_arr,
-                                                int max_elemcnt);
-
-/**
- * @brief Save an effect buffer to the file.
- * @details This function can be used to save an effect buffer to the file using third parameter.
- *
- * @remark
- *
- * @param[in] vibe_buffer      Pointer to the vibration pattern
- * @param[in] max_bufsize              The size of the buffer pointed to by vibe_buffer
- * @param[in] file_path                The pointer to the character buffer containing the path to save
- *
- * @return 0 on success, otherwise a negative error value.
- * @retval #HAPTIC_ERROR_NONE                  Successful
- * @retval #HAPTIC_ERROR_INVALID_PARAMETER     Invalid parameter
- * @retval #HAPTIC_ERROR_NOT_INITIALIZED       Not initialized
- * @retval #HAPTIC_ERROR_FILE_EXISTS           File exists
- * @retval #HAPTIC_ERROR_OPERATION_FAILED      Operation failed
- * @retval #HAPTIC_ERROR_NOT_SUPPORTED_DEVICE  Not supported device
- *
- * @see haptic_create_effect()
- */
-int haptic_save_effect(const unsigned char *vibe_buffer,
-                                          int max_bufsize,
-                                          const char *file_path);
-
-/**
- * @brief Gets a duration time value from file.
- * @details This function can be used to get a duration time value from the file using second parameter.
- *
- * @remark
- *
- * @param[in] device_handle    The device handle from haptic_open()
- * @param[in] file_path                The pointer to the character buffer containing the path to save
- * @param[out] duration                The pointer to the duration time value
- *
- * @return 0 on success, otherwise a negative error value.
- * @retval #HAPTIC_ERROR_NONE                  Successful
- * @retval #HAPTIC_ERROR_INVALID_PARAMETER     Invalid parameter
- * @retval #HAPTIC_ERROR_NOT_INITIALIZED       Not initialized
- * @retval #HAPTIC_ERROR_OPERATION_FAILED      Operation failed
- * @retval #HAPTIC_ERROR_NOT_SUPPORTED_DEVICE  Not supported device
- *
- * @see haptic_get_buffer_duration()
- */
-int haptic_get_file_duration(haptic_device_h device_handle, const char *file_path, int *duration);
-
-/**
- * @brief Gets a duration time value from buffer.
- * @details This function can be used to get a duration time value from the buffer using second parameter.
- *
- * @remark
- *
- * @param[in] device_handle    The device handle from haptic_open()
- * @param[in] vibe_buffer              Pointer to the vibration pattern buffer
- * @param[out] duration                The pointer to the duration time value
- *
- * @return 0 on success, otherwise a negative error value.
- * @retval #HAPTIC_ERROR_NONE                  Successful
- * @retval #HAPTIC_ERROR_INVALID_PARAMETER     Invalid parameter
- * @retval #HAPTIC_ERROR_NOT_INITIALIZED       Not initialized
- * @retval #HAPTIC_ERROR_OPERATION_FAILED      Operation failed
- * @retval #HAPTIC_ERROR_NOT_SUPPORTED_DEVICE  Not supported device
- *
- * @see haptic_get_file_duration()
- */
-int haptic_get_buffer_duration(haptic_device_h device_handle, const unsigned char *vibe_buffer, int *duration);
-
-/**
- * @brief Gets a duration time value from buffer.
- * @details This function can be used to get a duration time value from the buffer using second parameter.
- *
- * @remark
- *
- * @param[in] device_handle    The device handle from haptic_open()
- * @param[in] vibe_buffer              Pointer to the vibration pattern buffer
- * @param[in] size                     Size to the vibration pattern buffer
- * @param[out] buffer_duration                 The pointer to the duration time value
- *
- * @return 0 on success, otherwise a negative error value.
- * @retval #HAPTIC_ERROR_NONE                  Successful
- * @retval #HAPTIC_ERROR_INVALID_PARAMETER     Invalid parameter
- * @retval #HAPTIC_ERROR_NOT_INITIALIZED       Not initialized
- * @retval #HAPTIC_ERROR_OPERATION_FAILED      Operation failed
- * @retval #HAPTIC_ERROR_NOT_SUPPORTED_DEVICE  Not supported device
- *
- * @see haptic_get_file_duration()
- */
-int haptic_get_buffers_duration(haptic_device_h device_handle, const unsigned char *vibe_buffer, int size, int *buffer_duration);
-
-/**
- * @brief Save an effect buffer to the led file.
- * @details This function can be used to save an effect buffer to the led file which name is third parameter.
- *
- * @remark
- * Third parameter should be compatible with ledplayer file.
- *
- * @param[in] vibe_buffer              Pointer to the vibration pattern
- * @param[in] max_bufsize              The size of the buffer pointed to by vibe_buffer
- * @param[in] file_path                The pointer to the character buffer containing the path to save
- *
- * @return 0 on success, otherwise a negative error value.
- * @retval #HAPTIC_ERROR_NONE                  Successful
- * @retval #HAPTIC_ERROR_INVALID_PARAMETER     Invalid parameter
- * @retval #HAPTIC_ERROR_NOT_INITIALIZED       Not initialized
- * @retval #HAPTIC_ERROR_FILE_EXISTS           File exists
- * @retval #HAPTIC_ERROR_OPERATION_FAILED      Operation failed
- * @retval #HAPTIC_ERROR_NOT_SUPPORTED_DEVICE  Not supported device
- *
- * @see haptic_save_effect()
- */
-int haptic_save_led(const unsigned char *vibe_buffer, int max_bufsize, const char *file_path);
-
-/**
- * @} end of CAPI_SYSTEM_DEVICED_HAPTIC_MODULE
- */
-
-#ifdef __cplusplus
-}
-#endif
-#endif
diff --git a/src/deviced/dd-led.h b/src/deviced/dd-led.h
deleted file mode 100644 (file)
index 86cce22..0000000
+++ /dev/null
@@ -1,112 +0,0 @@
-/*
- * deviced
- *
- * Copyright (c) 2012 - 2013 Samsung Electronics Co., Ltd.
- *
- * 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 __DD_LED_H__
-#define __DD_LED_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <stdbool.h>
-
-/**
- * @file        dd-led.h
- * @defgroup    CAPI_SYSTEM_DEVICED_LED_MODULE Led
- * @ingroup     CAPI_SYSTEM_DEVICED
- * @brief       This file provides the API for control of led
- * @section CAPI_SYSTEM_DEVICED_LED_MODULE_HEADER Required Header
- *   \#include <dd-led.h>
- */
-
-/**
- * @addtogroup CAPI_SYSTEM_DEVICED_LED_MODULE
- * @{
- */
-
-#define led_set_brightness(val)        \
-               led_set_brightness_with_noti(val, false)
-
-/**
- * @par Description:
- *  This API is used to get the current brightness of the led.\n
- *  It gets the current brightness of the led by calling device_get_property() function.\n
- *  It returns integer value which is the current brightness on success.\n
- *  Or a negative value(-1) is returned on failure.
- * @return current brightness value on success, -1 if failed
- * @see led_set_brightness_with_noti()
- * @par Example
- * @code
- *  ...
- *  int cur_brt;
- *  cur_brt = led_get_brightness();
- *  if( cur_brt < 0 )
- *      printf("Fail to get the current brightness of the led.\n");
- *  else
- *      printf("Current brightness of the led is %d\n", cur_brt);
- *  ...
- * @endcode
- */
-int led_get_brightness(void);
-
-/**
- * @par Description:
- *  This API is used to get the max brightness of the led.\n
- *  It gets the max brightness of the led by calling device_get_property() function.\n
- *  It returns integer value which is the max brightness on success.\n
- *  Or a negative value(-1) is returned on failure
- * @return max brightness value on success, -1 if failed
- * @par Example
- * @code
- *  ...
- *  int max_brt;
- *  max_brt = led_get_max_brightness();
- *  if( max_brt < 0 )
- *      printf("Fail to get the max brightness of the led.\n");
- *  ...
- * @endcode
- */
-int led_get_max_brightness(void);
-
-/**
- * @par Description:
- *  This API is used to set the current brightness of the led.\n
- *      It sets the current brightness of the led by calling device_set_property() function.\n
- * @param[in] val brightness value that you want to set
- * @param[in] enable noti
- * @return 0 on success, -1 if failed
- * @see led_get_brightness()
- * @par Example
- * @code
- *  ...
- *  if( led_set_brightness_with_noti(1, 1) < 0 )
- *     printf("Fail to set the brightness of the led\n");
- *  ...
- * @endcode
- */
-int led_set_brightness_with_noti(int val, bool enable);
-
-/**
- * @} // end of CAPI_SYSTEM_DEVICED_LED_MODULE
- */
-
-#ifdef __cplusplus
-}
-#endif
-#endif
diff --git a/src/deviced/dd-mmc.h b/src/deviced/dd-mmc.h
deleted file mode 100644 (file)
index af09714..0000000
+++ /dev/null
@@ -1,135 +0,0 @@
-/*
- * deviced
- *
- * Copyright (c) 2012 - 2013 Samsung Electronics Co., Ltd.
- *
- * 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 __DD_MMC_H__
-#define __DD_MMC_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * @file        dd-mmc.h
- * @defgroup    CAPI_SYSTEM_DEVICED_MMC_MODULE MMC
- * @ingroup     CAPI_SYSTEM_DEVICED
- * @brief       This file provides the API for control of mmc(sd-card)
- * @section CAPI_SYSTEM_DEVICED_MMC_MODULE_HEADER Required Header
- *   \#include <dd-mmc.h>
- */
-
-/**
- * @addtogroup CAPI_SYSTEM_DEVICED_MMC_MODULE
- * @{
- */
-
-/**
- * @brief This structure defines the data for receive result of mmc operations(mount/unmount/format)
- */
-struct mmc_contents {
-       void (*mmc_cb) (int result, void* data);/**< user callback function for receive result of mmc operations */
-       void* user_data;/**< input data for callback function's second-param(data) */
-};
-
-/**
- * @fn int deviced_request_mount_mmc(struct mmc_contents *mmc_data)
- * @brief This API is used to mount mmc.\n
- *             Internally, this API call predefined action API. That is send a notify message. \n
- *             and when mount operation is finished, cb of deviced_mmc_content struct is called with cb's param1(result). \n
- *             means of param1 - 0(mount success) and negative value if failed \n
- *             [mount fail value] \n
- *             -1 : operation not permmitted \n
- *             -2 : no such file or directory \n
- *             -6 : no such device or address \n
- *             -12 : out of memory \n
- *             -13 : A component of a path was not searchable \n
- *             -14 : bad address \n
- *             -15 : block device is requested \n
- *             -16 : device or resource busy \n
- *             -19 : filesystemtype not configured in the kernel \n
- *             -20 : target, or a prefix of source, is not a directory \n
- *             -22 : point does not exist \n
- *             -24 : table of dummy devices is full \n
- *             -36 : requested name is too long \n
- *             -40 : Too many links encountered during pathname resolution. \n
- *                     Or, a move was attempted, while target is a descendant of source \n
- * @param[in] mmc_data for receive result of mount operation
- * @return  non-zero on success message sending, -1 if message sending is failed.
- */
-int deviced_request_mount_mmc(struct mmc_contents *mmc_data);
-
-/**
- * @fn int deviced_request_unmount_mmc(struct mmc_contents *mmc_data,int option)
- * @brief This API is used to unmount mmc.\n
- *             Internally, this API call predefined action API. That is send a notify message. \n
- *             and when unmount opeation is finished, cb of deviced_mmc_content struct is called with cb's param1(result). \n
- *             means of param1 - 0(unmount success) and negative value if failed \n
- *             [unmount fail value] \n
- *             -1 : operation not permmitted \n
- *             -2 : no such file or directory \n
- *             -11 : try again \n
- *             -12 : out of memory \n
- *             -14 : bad address \n
- *             -16 : device or resource busy \n
- *             -22 : point does not exist \n
- *             -36 : requested name is too long \n
- * @param[in] mmc_data for receive result of unmount operation
- * @param[in] option type of unmount option \n
- *             0 : Normal unmount \n
- *                     (if other process still access a sdcard, \n
- *                      unmount will be failed.) \n
- *             1 : Force unmount \n
- *                     (if other process still access a sdcard, \n
- *                     this process will be received SIGTERM or SIGKILL.)
- * @return  non-zero on success message sending, -1 if message sending is failed.
- */
-int deviced_request_unmount_mmc(struct mmc_contents *mmc_data, int option);
-
-/**
- * @fn int deviced_request_format_mmc(struct mmc_contents *mmc_data)
- * @brief This API is used to format mmc.\n
- *             Internally, this API call predefined action API. That is send a notify message. \n
- *             and when format opeation is finished, cb of deviced_mmc_content struct is called with cb's param1(result). \n
- *             means of param1 - 0(format success) , -1(format fail)
- * @param[in] mmc_data for receive result of format operation
- * @return  non-zero on success message sending, -1 if message sending is failed.
- */
-int deviced_request_format_mmc(struct mmc_contents *mmc_data);
-
-/**
- * @fn int deviced_format_mmc(struct mmc_contents *mmc_data, int option)
- * @brief This API is used to format mmc.\n
- *             Internally, this API call predefined action API. That is send a notify message. \n
- *             and when format opeation is finished, cb of deviced_mmc_content struct is called with cb's param1(result). \n
- *             means of param1 - 0(format success) and negative value if failed \n
- *             [format fail value] \n
- *             -22 : Invalid argument(EINVAL) \n
- * @param[in] mmc_data for receive result of format operation
- * @param[in] option FMT_NORMAL is 0, FMT_FORCE is 1
- * @return  non-zero on success message sending, -1 if message sending is failed.
- */
-int deviced_format_mmc(struct mmc_contents *mmc_data, int option);
-
-/**
- * @} // end of CAPI_SYSTEM_DEVICED_MMC_MODULE
- */
-
-#ifdef __cplusplus
-}
-#endif
-#endif
diff --git a/src/deviced/dd-storage.h b/src/deviced/dd-storage.h
deleted file mode 100644 (file)
index 9181e91..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-/*
- * deviced
- *
- * Copyright (c) 2012 - 2013 Samsung Electronics Co., Ltd.
- *
- * 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 __DD_STORAGE_H__
-#define __DD_STORAGE_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * @file        dd-storage.h
- * @defgroup    CAPI_SYSTEM_DEVICED_STORAGE_MODULE Storage
- * @ingroup     CAPI_SYSTEM_DEVICED
- * @brief       This file provides the API for control of storage
- * @section CAPI_SYSTEM_DEVICED_STORAGE_MODULE_HEADER Required Header
- *   \#include <dd-storage.h>
- */
-
-/**
- * @addtogroup CAPI_SYSTEM_DEVICED_STORAGE_MODULE
- * @{
- */
-
-/**
- * @par Description
- * Storage path type
- */
-enum storage_path_type {
-       STORAGE_DEFAULT = 0,
-       STORAGE_INTERNAL,
-       STORAGE_EXTERNAL,
-       STORAGE_MAX,
-};
-
-/**
- * @par Description:
- *  This API is used go get storage path.\n
- * @param[in] type storage path type
- * @param[in] path pointer to a buffer where the path is stored
- * @param[in] size size of buffer
- * @return 0 on success, -1 if failed
- * @see storage_path_type
- * @par Example
- * @code
- *  ...
- *  if ( storage_get_path(STORAGE_INTERNAL, path, 50) < 0 )
- *          printf("Get storage path failed\n");
- *  ...
- * @endcode
- */
-int storage_get_path(int type, char *path, int size);
-
-/**
- * @} // end of CAPI_SYSTEM_DEVICED_STORAGE_MODULE
- */
-
-#ifdef __cplusplus
-}
-#endif
-#endif
diff --git a/src/deviced/dd-usbhost.h b/src/deviced/dd-usbhost.h
deleted file mode 100644 (file)
index 9bae8ae..0000000
+++ /dev/null
@@ -1,353 +0,0 @@
-/*
- * deviced
- *
- * Copyright (c) 2012 - 2013 Samsung Electronics Co., Ltd.
- *
- * 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 __DD_USBHOST_H__
-#define __DD_USBHOST_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * @file        dd-usbhost.h
- * @ingroup     CAPI_SYSTEM_DEVICED
- * @defgroup    CAPI_SYSTEM_DEVICED_USBHOST_MODULE usbhost
- * @brief       This file provides the API for usb host operations
- */
-
-/**
- * @addtogroup CAPI_SYSTEM_DEVICED_USBHOST_MODULE
- * @{
- */
-
-#include <limits.h>
-struct usbhost_device {
-       char devpath[PATH_MAX]; /* unique info. */
-       int baseclass;
-       int subclass;
-       int protocol;
-       int vendorid;
-       int productid;
-       char *manufacturer;
-       char *product;
-       char *serial;
-};
-
-enum usbhost_state {
-       USB_HOST_REMOVED,
-       USB_HOST_ADDED,
-};
-
-/**
- * @par Description:
- *      This API is used to initialize usbhost signal \n
- * @return 0 on success, negative if failed
- * @par Example
- * @code
- *  ...
- *  if (init_usbhost_signal() < 0)
- *      printf("Failed to initialize usbhost signal\n");
- *  ...
- * @endcode
- */
-int init_usbhost_signal(void);
-
-/**
- * @par Description:
- *      This API is used to deinitialize usbhost signal \n
- * @par Example
- * @code
- *  ...
- *  if (init_usbhost_signal() < 0)
- *      printf("Failed to initialize usbhost signal\n");
- *
- *  // Do something
- *
- *  deinit_usbhost_signal();
- *  ...
- * @endcode
- */
-void deinit_usbhost_signal(void);
-
-/**
- * @par Description:
- *      This API is used to register usbhost signal \n
- * @param[in] storage_changed callback function which is called when the usbhost signal is delivered
- * @param[in] data parameter of storage_changed callback function
- * @return 0 on success, negative if failed
- * @par Example
- * @code
- *  ...
- *  if (init_usbhost_signal() < 0)
- *      printf("Failed to initialize usbhost signal\n");
- *
- *  if (register_usb_storage_change_handler(storage_cb, data) < 0) {
- *      printf("Failed to register storage signal\n");
- *      deinit_usbhost_signal();
- *      return;
- *  }
- *
- *  // Do something
- *
- *  if (unregister_usb_storage_change_handler() < 0)
- *      printf("Failed to unregister storage signal\n");
- *
- *  deinit_usbhost_signal();
- *  ...
- * @endcode
- */
-int register_usb_storage_change_handler(
-               void (*storage_changed)(char *type, char *path, int mount, void *),
-               void *data);
-
-/**
- * @par Description:
- *      This API is used to register usbhost signal \n
- * @param[in] device_changed callback function which is called when the device is connected/disconnected
- * @param[in] data parameter of the callback function
- * @return 0 on success, negative if failed
- * @par Example
- * @code
- *  ...
- *  if (init_usbhost_signal() < 0)
- *      printf("Failed to initialize usbhost signal\n");
- *
- *  if (register_usb_device_change_handler(device_cb, data) < 0) {
- *      printf("Failed to register device handler\n");
- *      deinit_usbhost_signal();
- *      return;
- *  }
- *
- *  // Do something
- *
- *  if (unregister_usb_device_changed_handler() < 0)
- *      printf("Failed to unregister device changed signal\n");
- *
- *  deinit_usbhost_signal();
- *  ...
- * @endcode
- */
-int register_usb_device_change_handler(
-               void (*device_changed)(struct usbhost_device *device, int state, void *data),
-               void *data);
-
-/**
- * @par Description:
- *      This API is used to unregister usbhost signal \n
- * @return 0 on success, negative if failed
- * @par Example
- * @code
- *  ...
- *  if (init_usbhost_signal() < 0)
- *      printf("Failed to initialize usbhost signal\n");
- *
- *  if (register_usb_storage_change_handler(storage_cb, data) < 0) {
- *      printf("Failed to register storage signal\n");
- *      deinit_usbhost_signal();
- *      return;
- *  }
- *
- *  // Do something
- *
- *  if (unregister_usb_storage_change_handler() < 0)
- *      printf("Failed to unregister storage signal\n");
- *
- *  deinit_usbhost_signal();
- *  ...
- * @endcode
- */
-int unregister_usb_storage_change_handler(void);
-
-/**
- * @par Description:
- *      This API is used to unregister usb connect/disconnect signal handler\n
- * @return 0 on success, negative if failed
- * @par Example
- * @code
- *  ...
- *  if (init_usbhost_signal() < 0)
- *      printf("Failed to initialize usbhost signal\n");
- *
- *  if (register_usb_device_change_handler(device_cb, data) < 0) {
- *      printf("Failed to register device signal\n");
- *      deinit_usbhost_signal();
- *      return;
- *  }
- *
- *  // Do something
- *
- *  if (unregister_usb_device_change_handler() < 0)
- *      printf("Failed to unregister storage signal\n");
- *
- *  deinit_usbhost_signal();
- *  ...
- * @endcode
- */
-int unregister_usb_device_change_handler(
-               void (*device_changed)(struct usbhost_device *device, int state, void *data));
-
-/**
- * @par Description:
- *      This API is used to request usb storage information \n
- * @return 0 on success, negative if failed
- * @par Example
- * @code
- *  ...
- *  if (init_usbhost_signal() < 0)
- *      printf("Failed to initialize usbhost signal\n");
- *
- *  if (register_usb_storage_change_handler(storage_cb, data) < 0) {
- *      printf("Failed to register storage signal\n");
- *      deinit_usbhost_signal();
- *      return;
- *  }
- *
- *  if (request_usb_storage_info() < 0)
- *      printf("Failed to request all of storage information");
- *
- *  // Do someting
- *
- *  if (unregister_usb_storage_change_handler() < 0)
- *      printf("Failed to unregister storage signal\n");
- *
- *  deinit_usbhost_signal();
- *  ...
- * @endcode
- */
-int request_usb_storage_info(void);
-
-/**
- * @par Description:
- *      This API is used to mount usb storage \n
- * @param[in] path path to unmount
- * @return 0 on success, negative if failed
- * @par Example
- * @code
- *  ...
- *  if (init_usbhost_signal() < 0)
- *      printf("Failed to initialize usbhost signal\n");
- *
- *  if (register_usb_storage_change_handler(storage_cb, data) < 0) {
- *      printf("Failed to register storage signal\n");
- *      deinit_usbhost_signal();
- *      return;
- *  }
- *
- *  if (mount_usb_storage("/opt/storage/usb/UsbDriveA1") < 0)
- *      printf("Failed to mount usb storage");
- *
- *  // Do something.. Mounting takes some time
- *
- *  if (unregister_usb_storage_change_handler() < 0)
- *      printf("Failed to unregister storage signal\n");
- *
- *  deinit_usbhost_signal();
- *  ...
- * @endcode
- */
-int mount_usb_storage(char *path);
-
-/**
- * @par Description:
- *      This API is used to unmount usb storage \n
- * @param[in] path path to mount
- * @return 0 on success, negative if failed
- * @par Example
- * @code
- *  ...
- *  if (init_usbhost_signal() < 0)
- *      printf("Failed to initialize usbhost signal\n");
- *
- *  if (register_usb_storage_change_handler(storage_cb, data) < 0) {
- *      printf("Failed to register storage signal\n");
- *      deinit_usbhost_signal();
- *      return;
- *  }
- *
- *  if (ummount_usb_storage("/opt/storage/usb/UsbDriveA1") < 0)
- *      printf("Failed to unmount usb storage");
- *
- *  // Do something.. Unmounting takes some time
- *
- *  if (unregister_usb_storage_change_handler() < 0)
- *      printf("Failed to unregister storage signal\n");
- *
- *  deinit_usbhost_signal();
- *  ...
- * @endcode
- */
-int unmount_usb_storage(char *path);
-
-/**
- * @par Description:
- *      This API is used to format usb storage \n
- * @param[in] path path to format
- * @return 0 on success, negative if failed
- * @par Example
- * @code
- *  ...
- *  if (init_usbhost_signal() < 0)
- *      printf("Failed to initialize usbhost signal\n");
- *
- *  if (register_usb_storage_change_handler(storage_cb, data) < 0) {
- *      printf("Failed to register storage signal\n");
- *      deinit_usbhost_signal();
- *      return;
- *  }
- *
- *  if (format_usb_storage("/opt/storage/usb/UsbDriveA1") < 0)
- *      printf("Failed to unmount usb storage");
- *
- *  // Do something.. Formatting takes some time
- *
- *  if (unregister_usb_storage_change_handler() < 0)
- *      printf("Failed to unregister storage signal\n");
- *
- *  deinit_usbhost_signal();
- *  ...
- * @endcode
- */
-int format_usb_storage(char *path);
-
-/**
- * @par Description:
- *      This API is used to open usb device \n
- * @param[in] path path to device
- * @return 0 on success, negative error code if failed
- * @par Example
- * @code
- * ...
- *
- * r = open_usb_device(path, &fd);
- * if (r < 0)
- *     printf("failed to open device");
- *
- * ...
- * @endcode
- */
-int open_usb_device(char *path, int *fd);
-
-/**
- * @} // end of CAPI_SYSTEM_DEVICED_USBHOST_MODULE
- */
-
-#ifdef __cplusplus
-}
-#endif
-#endif
diff --git a/src/deviced/haptic-module.h b/src/deviced/haptic-module.h
deleted file mode 100644 (file)
index 68d171e..0000000
+++ /dev/null
@@ -1,95 +0,0 @@
-/*
- * deviced
- *
- * Copyright (c) 2012 - 2013 Samsung Electronics Co., Ltd.
- *
- * 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 __HAPTIC_MODULE_H__
-#define __HAPTIC_MODULE_H__
-
-/**
- * @brief Enumerations of device id for the Haptic Module API.
- * @details We support two motors now.
- */
-typedef enum {
-    HAPTIC_MODULE_DEVICE_0 = 0x0,             /**< 1st motor */
-    HAPTIC_MODULE_DEVICE_1 = 0x1,             /**< 2nd motor */
-    HAPTIC_MODULE_DEVICE_ALL = 0x4,           /**< both of them */
-} haptic_module_device;
-
-/**
- * @brief Enumerations of priority level for the Haptic Module API.
- */
-typedef enum
-{
-    HAPTIC_MODULE_PRIORITY_MIN = 0,        /**< Minimum effect priority for developers (default) */
-    HAPTIC_MODULE_PRIORITY_MIDDLE,         /**< Maximum effect priority for developers */
-    HAPTIC_MODULE_PRIORITY_HIGH,           /**< Maximum effect priority for OEMs */
-} haptic_module_priority;
-
-/**
- * @brief Enumerations of feedback level for the Haptic Module API.
- * @details Haptic level means vibration power (intensity).
- */
-typedef enum
-{
-    HAPTIC_MODULE_FEEDBACK_MIN = 0,
-    HAPTIC_MODULE_FEEDBACK_MAX = 100,
-} haptic_module_feedback;
-
-/**
- * @brief Enumerations of unlimited duration for the Haptic Module API.
- */
-typedef enum {
-       HAPTIC_MODULE_DURATION_UNLIMITED = 0x7FFFFFFF,
-} haptic_module_duration;
-
-/**
- * @brief Enumerations of iteration count for the Haptic Module API.
- */
-typedef enum
-{
-    HAPTIC_MODULE_ITERATION_ONCE = 1,
-    HAPTIC_MODULE_ITERATION_INFINITE = 256,
-} haptic_module_iteration;
-
-/**
- * @brief Enumerations of effect or device state for the Haptic Module API.
- */
-typedef enum
-{
-    HAPTIC_MODULE_STATE_STOP = 0,
-    HAPTIC_MODULE_STATE_PLAYING,
-} haptic_module_state;
-
-/* Error and Return value codes */
-#define HAPTIC_MODULE_ERROR_NONE                                                        0
-#define HAPTIC_MODULE_NOT_INITIALIZED                                                  -1
-#define HAPTIC_MODULE_ALREADY_INITIALIZED                                              -2
-#define HAPTIC_MODULE_INVALID_ARGUMENT                                                 -3
-#define HAPTIC_MODULE_OPERATION_FAILED                                                 -4
-#define HAPTIC_MODULE_NOT_SUPPORTED                                                            -5
-
-/**
- * @par Description:
- *      effect element for haptic module.
- */
-typedef struct {
-    int haptic_duration;           /**< Start time of the effect element in millisecond */
-    int haptic_level;        /**< Duration of the effect element in millisecond */
-} haptic_module_effect_element;
-
-#endif  /* __HAPTIC_MODULE_H__ */
diff --git a/src/deviced/haptic-plugin-intf.h b/src/deviced/haptic-plugin-intf.h
deleted file mode 100644 (file)
index 6fe854d..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * deviced
- *
- * Copyright (c) 2012 - 2013 Samsung Electronics Co., Ltd.
- *
- * 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 __HAPTIC_PLUGIN_INTF_H__
-#define __HAPTIC_PLUGIN_INTF_H__
-
-#include "haptic-module.h"
-
-struct haptic_plugin_ops {
-       int (*get_device_count) (int*);
-       int (*open_device) (int, int*);
-       int (*close_device) (int);
-       int (*vibrate_monotone) (int, int, int, int, int*);
-       int (*vibrate_buffer) (int, const unsigned char*, int, int, int, int*);
-       int (*vibrate_effect) (int, const char*, int, int);
-       int (*is_supported) (const char*);
-       int (*stop_device) (int);
-       int (*get_device_state) (int, int*);
-       int (*create_effect) (unsigned char*, int, haptic_module_effect_element*, int);
-       int (*get_buffer_duration) (int, const unsigned char*, int*);
-       int (*convert_binary) (const unsigned char*, int, const char*);
-};
-
-const struct haptic_plugin_ops *get_haptic_plugin_interface();
-
-#endif /* __HAPTIC_PLUGIN_INTF_H__ */