This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch modules/convertible
in repository enlightenment.
View the commit online.
commit 58c88e6f8b633b4065d43c3fedd701318020537f
Author: rafspiny <rafsp...@gmail.com>
AuthorDate: Mon Nov 20 18:30:10 2023 +0100
Align header
WIP
---
src/modules/convertible/dbus_acceleration.c | 7 ++++++-
src/modules/convertible/dbus_acceleration.h | 5 ++---
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/modules/convertible/dbus_acceleration.c b/src/modules/convertible/dbus_acceleration.c
index 3dbb1a6db..62c5669d3 100644
--- a/src/modules/convertible/dbus_acceleration.c
+++ b/src/modules/convertible/dbus_acceleration.c
@@ -144,6 +144,8 @@ enum screen_rotation access_string_property(const Eldbus_Message *msg, Eina_Bool
}
DBG("Before assign");
+ DBG("variant: %s", variant);
+ DBG("msg: %s", msg);
const char **string_property_value = calloc(PATH_MAX, sizeof(char));
if (!eldbus_message_iter_arguments_get(variant, "s", string_property_value))
{
@@ -250,7 +252,7 @@ on_accelerometer_orientation(void *data, const Eldbus_Message *msg, Eldbus_Pendi
return;
}
- orientation = access_string_property(msg, &variant, result);
+ orientation = access_string_property(msg, result);
if (*result == EINA_FALSE)
{
INF("Failed to retrieve the orientation from dbus message");
@@ -372,9 +374,12 @@ int _is_device_a_touch_pointer(int dev_counter, int num_properties, char **itera
}
void _fetch_and_rotate_screen(const char* randr_id, enum screen_rotation orientation) {
+ DBG("Passed Orientation: %d", orientation);
DBG("Working on screen %s", randr_id);
E_Randr2_Screen *rotatable_screen = e_randr2_screen_id_find(randr_id);
+ DBG("Obtained screen obj for %s", randr_id);
E_Config_Randr2_Screen *screen_randr_cfg = e_randr2_config_screen_find(rotatable_screen, e_randr2_cfg);
+ DBG("Obtained Randr2_screen cfg for %s", randr_id);
int rotation = _convertible_rotation_get(orientation);
DBG("Screen %s is going to be rotated from %d to %d", randr_id, screen_randr_cfg->rotation, rotation);
diff --git a/src/modules/convertible/dbus_acceleration.h b/src/modules/convertible/dbus_acceleration.h
index b194ff08d..aa4740241 100644
--- a/src/modules/convertible/dbus_acceleration.h
+++ b/src/modules/convertible/dbus_acceleration.h
@@ -39,12 +39,11 @@ Eldbus_Proxy *get_dbus_interface(const char *IFACE);
/**
* Helper function to extract ta string property from the message
* @param msg The message coming from the get property invocation
- * @param variant
* @param result 1 if result is ok, 0 if it failed
* @return Enum specifying the orientation
*/
enum screen_rotation
-access_string_property(const Eldbus_Message *msg, Eldbus_Message_Iter **variant, Eina_Bool* result);
+access_string_property(const Eldbus_Message *msg, Eina_Bool* result);
/**
* Helper function to extract ta boolean property from the message
@@ -54,7 +53,7 @@ access_string_property(const Eldbus_Message *msg, Eldbus_Message_Iter **variant,
* @return
*/
Eina_Bool
-access_bool_property(const Eldbus_Message *msg, Eldbus_Message_Iter **variant, Eina_Bool *boolean_property_value);
+access_bool_property(const Eldbus_Message *msg, Eina_Bool *boolean_property_value);
/**
* Callback definition to handle the request of the hasAccelerometer property of DBUS interface net.hadess.SensorProxy
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.