This is an automated email from the git hooks/post-receive script.
git pushed a commit to reference refs/pull/49/head
in repository enlightenment.
View the commit online.
commit a139e88811bceb16d45b08be5cf357947d8af5f1
Author: rafspiny <rafsp...@gmail.com>
AuthorDate: Thu Aug 3 12:27:04 2023 +0200
Enum with all caps values.
---
src/modules/convertible/accelerometer-orientation.h | 2 +-
src/modules/convertible/dbus_acceleration.c | 12 ++++++------
src/modules/convertible/dbus_acceleration.h | 2 +-
3 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/modules/convertible/accelerometer-orientation.h b/src/modules/convertible/accelerometer-orientation.h
index f1f92d08e..d2bc856c1 100755
--- a/src/modules/convertible/accelerometer-orientation.h
+++ b/src/modules/convertible/accelerometer-orientation.h
@@ -5,7 +5,7 @@
#ifndef E_GADGET_CONVERTIBLE_IIO_SENSOR_ACCELEROMETER_H
#define E_GADGET_CONVERTIBLE_IIO_SENSOR_ACCELEROMETER_H
-// Those costants are the possible states for the orientation of the acceleromenter.
+// Those costants are the possible states for the orientation of the accelerometer.
#define ACCELEROMETER_ORIENTATION_UNDEFINED "undefined"
#define ACCELEROMETER_ORIENTATION_NORMAL "normal"
diff --git a/src/modules/convertible/dbus_acceleration.c b/src/modules/convertible/dbus_acceleration.c
index b2ea5a333..e2be711a8 100644
--- a/src/modules/convertible/dbus_acceleration.c
+++ b/src/modules/convertible/dbus_acceleration.c
@@ -126,7 +126,7 @@ access_string_property(const Eldbus_Message *msg, Eldbus_Message_Iter **variant,
{
WARN("Unable to get the type.");
*result = EINA_FALSE;
- return undefined;
+ return UNDEFINED;
}
type = eldbus_message_iter_signature_get((*variant));
@@ -148,15 +148,15 @@ access_string_property(const Eldbus_Message *msg, Eldbus_Message_Iter **variant,
*result = EINA_FALSE;
}
- enum screen_rotation rotation = undefined;
+ enum screen_rotation rotation = UNDEFINED;
if (strcmp(ACCELEROMETER_ORIENTATION_RIGHT, *string_property_value) == 0)
- rotation = right_up;
+ rotation = RIGHT_UP;
if (strcmp(ACCELEROMETER_ORIENTATION_LEFT, *string_property_value) == 0)
- rotation = left_up;
+ rotation = LEFT_UP;
if (strcmp(ACCELEROMETER_ORIENTATION_BOTTOM, *string_property_value) == 0)
- rotation = flipped;
+ rotation = FLIPPED;
if (strcmp(ACCELEROMETER_ORIENTATION_NORMAL, *string_property_value) == 0)
- rotation = normal;
+ rotation = NORMAL;
free(type);
free(string_property_value);
diff --git a/src/modules/convertible/dbus_acceleration.h b/src/modules/convertible/dbus_acceleration.h
index cd473449f..614bdc7d3 100644
--- a/src/modules/convertible/dbus_acceleration.h
+++ b/src/modules/convertible/dbus_acceleration.h
@@ -10,7 +10,7 @@
#define EFL_DBUS_ACC_IFACE "net.hadess.SensorProxy"
// This enum represents the 4 states of screen rotation plus undefined
-enum screen_rotation {undefined, normal, right_up, flipped, left_up};
+enum screen_rotation {UNDEFINED, NORMAL, RIGHT_UP, FLIPPED, LEFT_UP};
typedef struct _DbusAccelerometer DbusAccelerometer;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.