Skip to content
Browse files

Add missing NYX_ prefix to various public identifiers

  • Loading branch information...
1 parent 5ccb5ed commit 8a1452e3e21645efb7b3cb55cd08b7e7f08d7369 @GayathriSrini GayathriSrini committed
View
4 include/nyx/common/nyx_charger_common.h
@@ -55,7 +55,7 @@ extern "C" {
#define NYX_CHARGER_INDUCTIVE_POWERED 2
#define NYX_CHARGER_DIRECT_POWERED 4
-#define DOCK_SERIAL_NUMBER_LEN 32
+#define NYX_DOCK_SERIAL_NUMBER_LEN 32
/**
* Struct to get charger status
@@ -66,7 +66,7 @@ typedef struct nyx_charger_status {
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[DOCK_SERIAL_NUMBER_LEN]; /** Serial number of dock (if connected) */
+ char dock_serial_number[NYX_DOCK_SERIAL_NUMBER_LEN]; /** Serial number of dock (if connected) */
} nyx_charger_status_t;
View
16 include/nyx/common/nyx_haptics_common.h
@@ -42,12 +42,12 @@ extern "C" {
* This type is an enum describing the types of haptics effects
*/
typedef enum {
- HAPTICS_EFFECT_UNDEFINED = 0, /**< value HAPTICS_EFFECT_UNDEFINED. */
- HAPTICS_EFFECT_RINGTONE, /**< value HAPTICS_EFFECT_RINGTONE. */
- HAPTICS_EFFECT_ALERT, /**< value HAPTICS_EFFECT_ALERT. */
- HAPTICS_EFFECT_NOTIFICATION, /**< value HAPTICS_EFFECT_NOTIFICATION. */
- HAPTICS_EFFECT_TAPDOWN, /**< value HAPTICS_EFFECT_TAPDOWN. */
- HAPTICS_EFFECT_TAPUP, /**< value HAPTICS_EFFECT_TAPUP. */
+ NYX_HAPTICS_EFFECT_UNDEFINED = 0, /**< value NYX_HAPTICS_EFFECT_UNDEFINED. */
+ NYX_HAPTICS_EFFECT_RINGTONE, /**< value NYX_HAPTICS_EFFECT_RINGTONE. */
+ NYX_HAPTICS_EFFECT_ALERT, /**< value NYX_HAPTICS_EFFECT_ALERT. */
+ NYX_HAPTICS_EFFECT_NOTIFICATION, /**< value NYX_HAPTICS_EFFECT_NOTIFICATION. */
+ NYX_HAPTICS_EFFECT_TAPDOWN, /**< value NYX_HAPTICS_EFFECT_TAPDOWN. */
+ NYX_HAPTICS_EFFECT_TAPUP, /**< value NYX_HAPTICS_EFFECT_TAPUP. */
} nyx_haptics_effect_type_t;
@@ -57,8 +57,8 @@ typedef enum {
* This type is an enum describing the direction for a custom haptics effect
*/
typedef enum {
- HAPTICS_DIRECTION_RIGHT, /**< value HAPTICS_DIRECTION_RIGHT. */
- HAPTICS_DIRECTION_LEFT, /**< value HAPTICS_DIRECTION_LEFT. */
+ NYX_HAPTICS_DIRECTION_RIGHT, /**< value NYX_HAPTICS_DIRECTION_RIGHT. */
+ NYX_HAPTICS_DIRECTION_LEFT, /**< value NYX_HAPTICS_DIRECTION_LEFT. */
} nyx_haptics_direction_t;
View
4 include/nyx/module/nyx_event_touchpanel_internal.h
@@ -29,12 +29,12 @@
#include "nyx_event_internal.h"
-#define MAX_TOUCH_EVENTS (20)
+#define NYX_MAX_TOUCH_EVENTS (20)
typedef struct {
nyx_event_t _parent;
nyx_touchpanel_event_type_t type;
- nyx_touchpanel_event_item_t item_array[MAX_TOUCH_EVENTS];
+ nyx_touchpanel_event_item_t item_array[NYX_MAX_TOUCH_EVENTS];
int32_t item_count;
} nyx_event_touchpanel_t;

0 comments on commit 8a1452e

Please sign in to comment.
Something went wrong with that request. Please try again.