Permalink
Browse files

Fix indentation using tabs instead of spaces to match current coding …

…standards
  • Loading branch information...
1 parent 63952b8 commit 130394d3c60948659c25370136a2c539d335438e @DrWEbOS DrWEbOS committed with Damian Kowalewski Apr 12, 2012
Showing with 312 additions and 319 deletions.
  1. +1 −1 include/nyx/client/nyx_bluetooth_input_detect.h
  2. +1 −1 include/nyx/client/nyx_charger.h
  3. +5 −5 include/nyx/client/nyx_device_info.h
  4. +1 −1 include/nyx/client/nyx_haptics.h
  5. +3 −3 include/nyx/client/nyx_led_controller.h
  6. +4 −4 include/nyx/client/nyx_led_controller_core_configuration.h
  7. +1 −1 include/nyx/client/nyx_sensor_angular_velocity.h
  8. +1 −1 include/nyx/client/nyx_sensor_bearing.h
  9. +1 −1 include/nyx/client/nyx_sensor_linear_acceleration.h
  10. +1 −1 include/nyx/client/nyx_sensor_magnetic_field.h
  11. +1 −1 include/nyx/client/nyx_sensor_orientation.h
  12. +1 −1 include/nyx/client/nyx_sensor_proximity.h
  13. +1 −1 include/nyx/client/nyx_sensor_rotation.h
  14. +2 −2 include/nyx/client/nyx_touchpanel.h
  15. +4 −4 include/nyx/common/nyx_battery_common.h
  16. +7 −7 include/nyx/common/nyx_bluetooth_input_detect_common.h
  17. +15 −15 include/nyx/common/nyx_charger_common.h
  18. +2 −2 include/nyx/common/nyx_core.h
  19. +32 −32 include/nyx/common/nyx_device.h
  20. +1 −1 include/nyx/common/nyx_error.h
  21. +3 −3 include/nyx/common/nyx_event.h
  22. +2 −2 include/nyx/common/nyx_firmware_update_common.h
  23. +12 −12 include/nyx/common/nyx_haptics_common.h
  24. +32 −32 include/nyx/common/nyx_keys_common.h
  25. +17 −17 include/nyx/common/nyx_led_controller_common.h
  26. +31 −31 include/nyx/common/nyx_led_controller_core_configuration_common.h
  27. +6 −6 include/nyx/common/nyx_macros.h
  28. +3 −3 include/nyx/common/nyx_sensor_acceleration_common.h
  29. +3 −3 include/nyx/common/nyx_sensor_angular_velocity_common.h
  30. +6 −6 include/nyx/common/nyx_sensor_bearing_common.h
  31. +3 −3 include/nyx/common/nyx_sensor_gravity_common.h
  32. +6 −6 include/nyx/common/nyx_sensor_linear_acceleration_common.h
  33. +6 −6 include/nyx/common/nyx_sensor_magnetic_field_common.h
  34. +7 −7 include/nyx/common/nyx_sensor_orientation_common.h
  35. +10 −14 include/nyx/common/nyx_sensor_rotation_common.h
  36. +6 −6 include/nyx/common/nyx_sensor_shake_common.h
  37. +17 −17 include/nyx/common/nyx_system_common.h
  38. +19 −19 include/nyx/common/nyx_touchpanel_common.h
  39. +2 −5 include/nyx/module/nyx_device_haptics_internal.h
  40. +17 −17 include/nyx/module/nyx_device_internal.h
  41. +6 −6 include/nyx/module/nyx_event_internal.h
  42. +3 −3 include/nyx/module/nyx_event_touchpanel_internal.h
  43. +4 −4 include/nyx/module/nyx_log.h
  44. +5 −5 include/nyx/module/nyx_module_internal.h
  45. +1 −1 include/nyx/module/nyx_utils.h
@@ -20,7 +20,7 @@
* @file nyx_bluetooth_input_detect.h
*
*/
-
+
/**
* @brief Nyx's public API for accessing a bluetooth input detection device
* and the events it generates.
@@ -25,7 +25,7 @@
* @brief Nyx's public charging API.
*
*/
-
+
#ifndef _NYX_CHARGER_H_
#define _NYX_CHARGER_H_
@@ -20,11 +20,11 @@
* @file nyx_device_info.h
*
*/
-
- /**
- * @brief Nyx's public API for accessing device info.
- *
- */
+
+/**
+ * @brief Nyx's public API for accessing device info.
+ *
+ */
#ifndef _NYX_DEVICE_INFO_H_
#define _NYX_DEVICE_INFO_H_
@@ -20,7 +20,7 @@
* @file nyx_haptics.h
*
*/
-
+
/**
* @brief Nyx's public API for accessing a haptics device.
*
@@ -24,7 +24,7 @@
/**
* @brief Nyx's public LED Controller API.
*/
-
+
#ifndef _NYX_LED_CONTROLLER_H_
#define _NYX_LED_CONTROLLER_H_
@@ -74,7 +74,7 @@ NYX_API_EXPORT nyx_error_t nyx_led_controller_stop(nyx_device_handle_t handle, n
*
*/
NYX_API_EXPORT nyx_error_t nyx_led_controller_get_state(nyx_device_handle_t handle,
- nyx_led_controller_led_t led, nyx_led_controller_state_t* state_out_ptr);
+ nyx_led_controller_led_t led, nyx_led_controller_state_t* state_out_ptr);
/**
@@ -88,7 +88,7 @@ NYX_API_EXPORT nyx_error_t nyx_led_controller_get_state(nyx_device_handle_t hand
*
*/
NYX_API_EXPORT nyx_error_t nyx_led_controller_set_abl_state(nyx_device_handle_t handle,
- nyx_led_controller_led_t led, nyx_led_controller_abl_state_t abl_state);
+ nyx_led_controller_led_t led, nyx_led_controller_abl_state_t abl_state);
/** @} */
#ifdef __cplusplus
@@ -49,7 +49,7 @@ extern "C" {
*
*/
NYX_API_EXPORT nyx_error_t nyx_led_controller_core_configuration_create(nyx_led_controller_effect_type_t effect_type,
- nyx_led_controller_core_configuration_handle_t* handle_ptr);
+ nyx_led_controller_core_configuration_handle_t* handle_ptr);
/*
* Set a parameter in an LED core configuration.
@@ -345,7 +345,7 @@ NYX_API_EXPORT nyx_error_t nyx_led_controller_core_configuration_create(nyx_led_
*
*/
NYX_API_EXPORT nyx_error_t nyx_led_controller_core_configuration_set_param(
- nyx_led_controller_core_configuration_handle_t handle, nyx_led_controller_parameter_type_t param, int32_t new_value);
+ nyx_led_controller_core_configuration_handle_t handle, nyx_led_controller_parameter_type_t param, int32_t new_value);
/**
* Finalize an LED core configuration.
@@ -359,7 +359,7 @@ NYX_API_EXPORT nyx_error_t nyx_led_controller_core_configuration_set_param(
*
*/
NYX_API_EXPORT nyx_error_t nyx_led_controller_core_configuration_finalize(
- nyx_led_controller_core_configuration_handle_t handle);
+ nyx_led_controller_core_configuration_handle_t handle);
/**
* Release memory associated with a handle.
@@ -371,7 +371,7 @@ NYX_API_EXPORT nyx_error_t nyx_led_controller_core_configuration_finalize(
*
*/
NYX_API_EXPORT nyx_error_t nyx_led_controller_core_configuration_release(
- nyx_led_controller_core_configuration_handle_t handle);
+ nyx_led_controller_core_configuration_handle_t handle);
@@ -20,7 +20,7 @@
* @file nyx_sensor_angular_velocity.h
*
*/
-
+
/**
* @brief Nyx's public API for accessing an angular velocity sensor
* device and the events it generates.
@@ -20,7 +20,7 @@
* @file nyx_sensor_bearing.h
*
*/
-
+
/**
* @brief Nyx's public API for accessing a bearing sensor
* device and the events it generates.
@@ -20,7 +20,7 @@
* @file nyx_sensor_linear_acceleration.h
*
*/
-
+
/**
* @brief Nyx's public API for accessing a linear acceleration sensor
* device and the events it generates.
@@ -20,7 +20,7 @@
* @file nyx_sensor_magnetic_field.h
*
*/
-
+
/**
* @brief Nyx's public API for accessing a magnetic field sensor
* device and the events it generates.
@@ -20,7 +20,7 @@
* @file nyx_sensor_orientation.h
*
*/
-
+
/**
* @brief Nyx's public API for accessing an orientation sensor
* device and the events it generates.
@@ -20,7 +20,7 @@
* @file nyx_sensor_proximity.h
*
*/
-
+
/**
* @brief Nyx's public API for accessing a proximity sensor
* device and the events it generates.
@@ -20,7 +20,7 @@
* @file nyx_sensor_rotation.h
*
*/
-
+
/**
* @brief Nyx's public API for accessing a rotation sensor
* device and the events it generates.
@@ -20,7 +20,7 @@
* @file nyx_touchpanel.h
*
*/
-
+
/**
* @brief Nyx's public API for accessing a touchpanel
* device and the events it generates.
@@ -132,7 +132,7 @@ NYX_API_EXPORT nyx_error_t nyx_touchpanel_event_get_type(nyx_event_handle_t hand
*
*/
NYX_API_EXPORT nyx_error_t nyx_touchpanel_event_get_touches(nyx_event_handle_t handle, nyx_touchpanel_event_item_t** touches_out_ptr,
- int32_t *count_out_ptr);
+ int32_t *count_out_ptr);
/** @} */
#ifdef __cplusplus
@@ -60,10 +60,10 @@ typedef struct {
* Battery Charging Parameters
*/
typedef struct {
- int32_t charge_min_temp_c; /** Temperature below which charging is turned off */
- int32_t charge_max_temp_c; /** Temperature above which charging is turned off */
- int32_t battery_crit_max_temp; /** Temperature above which device is shut down */
- bool skip_battery_authentication; /** Is battery authentication required (True/False) */
+ int32_t charge_min_temp_c; /** Temperature below which charging is turned off */
+ int32_t charge_max_temp_c; /** Temperature above which charging is turned off */
+ int32_t battery_crit_max_temp; /** Temperature above which device is shut down */
+ bool skip_battery_authentication; /** Is battery authentication required (True/False) */
} nyx_battery_ctia_t;
/** @} */
@@ -41,17 +41,17 @@ extern "C" {
* This type is an enum describing the type of the bluetooth_input_detect event.
*/
typedef enum {
- NYX_BLUETOOTH_INPUT_DETECT_EVENT_UNDEFINED = 0, /**< value NYX_BLUETOOTH_INPUT_DETECT_EVENT_UNDEFINED. */
- NYX_BLUETOOTH_INPUT_DETECT_EVENT_DEVICE_ID_ADD, /**< value NYX_BLUETOOTH_INPUT_DETECT_EVENT_DEVICE_ID_ADD. */
- NYX_BLUETOOTH_INPUT_DETECT_EVENT_DEVICE_ID_REMOVE, /**< value NYX_BLUETOOTH_INPUT_DETECT_EVENT_DEVICE_ID_REMOVE. */
- NYX_BLUETOOTH_INPUT_DETECT_EVENT_DEVICE_KEYBOARD_TYPE, /**< value NYX_BLUETOOTH_INPUT_DETECT_EVENT_DEVICE_KEYBOARD_TYPE. */
- NYX_BLUETOOTH_INPUT_DETECT_EVENT_DEVICE_COUNTRY, /**< value NYX_BLUETOOTH_INPUT_DETECT_EVENT_DEVICE_COUNTRY. */
+ NYX_BLUETOOTH_INPUT_DETECT_EVENT_UNDEFINED = 0, /**< value NYX_BLUETOOTH_INPUT_DETECT_EVENT_UNDEFINED. */
+ NYX_BLUETOOTH_INPUT_DETECT_EVENT_DEVICE_ID_ADD, /**< value NYX_BLUETOOTH_INPUT_DETECT_EVENT_DEVICE_ID_ADD. */
+ NYX_BLUETOOTH_INPUT_DETECT_EVENT_DEVICE_ID_REMOVE, /**< value NYX_BLUETOOTH_INPUT_DETECT_EVENT_DEVICE_ID_REMOVE. */
+ NYX_BLUETOOTH_INPUT_DETECT_EVENT_DEVICE_KEYBOARD_TYPE, /**< value NYX_BLUETOOTH_INPUT_DETECT_EVENT_DEVICE_KEYBOARD_TYPE. */
+ NYX_BLUETOOTH_INPUT_DETECT_EVENT_DEVICE_COUNTRY, /**< value NYX_BLUETOOTH_INPUT_DETECT_EVENT_DEVICE_COUNTRY. */
} nyx_bluetooth_input_detect_event_type_t;
typedef struct {
- nyx_bluetooth_input_detect_event_type_t event_type;
- int32_t value;
+ nyx_bluetooth_input_detect_event_type_t event_type;
+ int32_t value;
} nyx_bluetooth_input_detect_event_item_t;
@@ -62,25 +62,25 @@ extern "C" {
*/
typedef struct nyx_charger_status {
- int32_t charger_max_current; /** Max current that can be drawn from any charger connected*/
- int32_t connected; /** ORing of all charger types connected */
- int32_t powered; /** ORing of all charger types powering the device */
- bool is_charging; /** True if device is being charged from a charger with sufficient capacity */
- char dock_serial_number[NYX_DOCK_SERIAL_NUMBER_LEN]; /** Serial number of dock (if connected) */
+ int32_t charger_max_current; /** Max current that can be drawn from any charger connected*/
+ int32_t connected; /** ORing of all charger types connected */
+ int32_t powered; /** ORing of all charger types powering the device */
+ bool is_charging; /** True if device is being charged from a charger with sufficient capacity */
+ char dock_serial_number[NYX_DOCK_SERIAL_NUMBER_LEN]; /** Serial number of dock (if connected) */
} nyx_charger_status_t;
-#define NYX_NO_NEW_EVENT 0 /** No new event generated */
-#define NYX_CHARGER_CONNECTED 1 /** Charge source present */
-#define NYX_CHARGER_DISCONNECTED 2 /** No charge source present */
-#define NYX_CHARGER_FAULT 4 /** Some charging fault detected */
-#define NYX_CHARGE_COMPLETE 8 /** Charging completed */
-#define NYX_CHARGE_RESTART 16 /** Restart charging */
-#define NYX_BATTERY_PRESENT 32 /** Battery is present */
-#define NYX_BATTERY_ABSENT 64 /** Battery is removed */
-#define NYX_BATTERY_CRITICAL_VOLTAGE 128 /** Battery voltage below threshold */
-#define NYX_BATTERY_TEMPERATURE_LIMIT 256 /** Battery temperature below/above limits */
+#define NYX_NO_NEW_EVENT 0 /** No new event generated */
+#define NYX_CHARGER_CONNECTED 1 /** Charge source present */
+#define NYX_CHARGER_DISCONNECTED 2 /** No charge source present */
+#define NYX_CHARGER_FAULT 4 /** Some charging fault detected */
+#define NYX_CHARGE_COMPLETE 8 /** Charging completed */
+#define NYX_CHARGE_RESTART 16 /** Restart charging */
+#define NYX_BATTERY_PRESENT 32 /** Battery is present */
+#define NYX_BATTERY_ABSENT 64 /** Battery is removed */
+#define NYX_BATTERY_CRITICAL_VOLTAGE 128 /** Battery voltage below threshold */
+#define NYX_BATTERY_TEMPERATURE_LIMIT 256 /** Battery temperature below/above limits */
typedef int32_t nyx_charger_event_t;
@@ -20,12 +20,12 @@
* @file nyx_core.h
*
*/
-
+
/**
* @brief Nyx's public core API.
*
*/
-
+
#ifndef _NYX_CORE_H_
#define _NYX_CORE_H_
@@ -64,34 +64,34 @@ typedef enum {
NYX_DEVICE_LED,
NYX_DEVICE_LED_CONTROLLER,
NYX_DEVICE_MEMORY,
- NYX_DEVICE_SENSOR_FIRST, /* all psc sensors */
- NYX_DEVICE_SENSOR_ACCELERATION = NYX_DEVICE_SENSOR_FIRST,
- NYX_DEVICE_SENSOR_ALS,
- NYX_DEVICE_SENSOR_ANGULAR_VELOCITY,
- NYX_DEVICE_SENSOR_BEARING,
- NYX_DEVICE_SENSOR_GRAVITY,
- NYX_DEVICE_SENSOR_LINEAR_ACCELERATION,
- NYX_DEVICE_SENSOR_MAGNETIC_FIELD,
- NYX_DEVICE_SENSOR_ORIENTATION,
- NYX_DEVICE_SENSOR_PROXIMITY,
- NYX_DEVICE_SENSOR_ROTATION,
- NYX_DEVICE_SENSOR_SHAKE,
- NYX_DEVICE_SENSOR_LAST = NYX_DEVICE_SENSOR_SHAKE,
+ NYX_DEVICE_SENSOR_FIRST, /* all psc sensors */
+ NYX_DEVICE_SENSOR_ACCELERATION = NYX_DEVICE_SENSOR_FIRST,
+ NYX_DEVICE_SENSOR_ALS,
+ NYX_DEVICE_SENSOR_ANGULAR_VELOCITY,
+ NYX_DEVICE_SENSOR_BEARING,
+ NYX_DEVICE_SENSOR_GRAVITY,
+ NYX_DEVICE_SENSOR_LINEAR_ACCELERATION,
+ NYX_DEVICE_SENSOR_MAGNETIC_FIELD,
+ NYX_DEVICE_SENSOR_ORIENTATION,
+ NYX_DEVICE_SENSOR_PROXIMITY,
+ NYX_DEVICE_SENSOR_ROTATION,
+ NYX_DEVICE_SENSOR_SHAKE,
+ NYX_DEVICE_SENSOR_LAST = NYX_DEVICE_SENSOR_SHAKE,
NYX_DEVICE_TOUCHPANEL,
NYX_DEVICE_SYSTEM,
NYX_DEVICE_MEDIA_CAMERA,
- NYX_DEVICE_TYPE_COUNT, /* should always be the last, used primarly in testing
- for iterating over all known devices */
+ NYX_DEVICE_TYPE_COUNT, /* should always be the last, used primarly in testing
+ for iterating over all known devices */
} nyx_device_type_t;
/**
* Set of flags that determine which Nyx modules will be included in the iterator
* returned by @ref nyx_device_get_iterator()
*/
typedef enum {
- NYX_FILTER_DEFAULT = 0, /**< include default set of devices */
- NYX_FILTER_INCLUDE_MOCK_DEVICES = 0x1, /**< include the mock devices in the iterator */
- NYX_FILTER_INCLUDE_STATIC_DEVICES = 0x2, /**< include the static devices in the iterator */
+ NYX_FILTER_DEFAULT = 0, /**< include default set of devices */
+ NYX_FILTER_INCLUDE_MOCK_DEVICES = 0x1, /**< include the mock devices in the iterator */
+ NYX_FILTER_INCLUDE_STATIC_DEVICES = 0x2, /**< include the static devices in the iterator */
NYX_FILTER_INCLUDE_MOCK_AND_STATIC_DEVICES = NYX_FILTER_INCLUDE_MOCK_DEVICES | NYX_FILTER_INCLUDE_STATIC_DEVICES,
NYX_FILTER_ALL = 0xffff,
} nyx_device_filter_t;
@@ -101,8 +101,8 @@ typedef enum {
*/
typedef enum {
NYX_OPERATING_MODE_UNKNOWN = -1,
- NYX_OPERATING_MODE_OFF, /**< Device is not operational */
- NYX_OPERATING_MODE_ON, /**< Device is operational */
+ NYX_OPERATING_MODE_OFF, /**< Device is not operational */
+ NYX_OPERATING_MODE_ON, /**< Device is operational */
} nyx_operating_mode_t;
struct nyx_device;
@@ -118,13 +118,13 @@ typedef struct nyx_device_iterator* nyx_device_iterator_handle_t;
* This status is passed as a parameter to the callback function (@ref nyx_device_callback_function_t).
*/
typedef enum {
- NYX_CALLBACK_STATUS_UNDEFINED = 0, /**< Status of worker thread is unknown */
- NYX_CALLBACK_STATUS_DONE, /**< Worker thread has finished */
+ NYX_CALLBACK_STATUS_UNDEFINED = 0, /**< Status of worker thread is unknown */
+ NYX_CALLBACK_STATUS_DONE, /**< Worker thread has finished */
NYX_CALLBACK_STATUS_ASYNC,
NYX_CALLBACK_STATUS_HARDWARE_ASYNC,
- NYX_CALLBACK_STATUS_FAILED, /**< Worker thread has finished but got an error */
- NYX_CALLBACK_STATUS_CANCELLED, /**< Worker thread was cancelled before finishing */
- NYX_CALLBACK_STATUS_PREMPTIED, /**< Another request/event arrived that replaces (preempts) the worker thread */
+ NYX_CALLBACK_STATUS_FAILED, /**< Worker thread has finished but got an error */
+ NYX_CALLBACK_STATUS_CANCELLED, /**< Worker thread was cancelled before finishing */
+ NYX_CALLBACK_STATUS_PREMPTIED, /**< Another request/event arrived that replaces (preempts) the worker thread */
} nyx_callback_status_t;
/**
@@ -139,13 +139,13 @@ typedef void (*nyx_device_callback_function_t)(nyx_device_handle_t, nyx_callback
* for each of these values.
*/
typedef enum {
- NYX_REPORT_RATE_UNKNOWN = -1, /**< Report rate is unknown */
- NYX_REPORT_RATE_DEFAULT = 0, /**< Default reporting rate for sensor when user has not requested specific rate */
- NYX_REPORT_RATE_LOW, /**< Slow rate of reporting sensor events */
- NYX_REPORT_RATE_MEDIUM, /**< Medium rate of reporting sensor events */
- NYX_REPORT_RATE_HIGH, /**< Fast rate of reporting sensor events */
- NYX_REPORT_RATE_HIGHEST, /**< Fastest rate of reporting sensor events */
- NYX_REPORT_RATE_COUNT, /* Must always be last */
+ NYX_REPORT_RATE_UNKNOWN = -1, /**< Report rate is unknown */
+ NYX_REPORT_RATE_DEFAULT = 0, /**< Default reporting rate for sensor when user has not requested specific rate */
+ NYX_REPORT_RATE_LOW, /**< Slow rate of reporting sensor events */
+ NYX_REPORT_RATE_MEDIUM, /**< Medium rate of reporting sensor events */
+ NYX_REPORT_RATE_HIGH, /**< Fast rate of reporting sensor events */
+ NYX_REPORT_RATE_HIGHEST, /**< Fastest rate of reporting sensor events */
+ NYX_REPORT_RATE_COUNT, /* Must always be last */
} nyx_report_rate_t;
@@ -62,7 +62,7 @@ typedef enum {
NYX_ERROR_GENERIC, /**< Generic NYX_LOG_ERROR */
NYX_ERROR_ALREADY_UP_TO_DATE, /**< Firmware is already up-to-date */
NYX_ERROR_BAD_CHECKSUM, /**< Bad checksum */
- NYX_ERROR_INCOMPATIBLE_LIBRARY, /**< The available nyx-lib is incompatible with the ABI the caller or module expects */
+ NYX_ERROR_INCOMPATIBLE_LIBRARY, /**< The available nyx-lib is incompatible with the ABI the caller or module expects */
} nyx_error_t;
/** @} */
Oops, something went wrong.

0 comments on commit 130394d

Please sign in to comment.