This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository enlightenment.
View the commit online.
commit 454ba4a0f0448edaec0ead0342aeb228fe4830c4
Author: rafspiny <rafsp...@gmail.com>
AuthorDate: Sat Aug 19 20:10:26 2023 +0200
Silly me. Order!
---
src/modules/convertible/dbus_acceleration.c | 66 ++++++++++++++---------------
1 file changed, 33 insertions(+), 33 deletions(-)
diff --git a/src/modules/convertible/dbus_acceleration.c b/src/modules/convertible/dbus_acceleration.c
index e5fc6f602..4d41d0d04 100644
--- a/src/modules/convertible/dbus_acceleration.c
+++ b/src/modules/convertible/dbus_acceleration.c
@@ -11,6 +11,39 @@
static DbusAccelerometer* accelerometer_dbus;
+/**
+ * Helper to get the interface
+ * */
+static Eldbus_Proxy *
+get_dbus_interface(const char *IFACE)
+{
+ DBG("Working on interface: %s", IFACE);
+ Eldbus_Connection *conn;
+ Eldbus_Object *obj;
+ Eldbus_Proxy *sensor_proxy;
+
+ conn = eldbus_connection_get(ELDBUS_CONNECTION_TYPE_SYSTEM);
+ if (!conn)
+ {
+ ERR("Error: could not get system bus");
+ return NULL;
+ }
+ obj = eldbus_object_get(conn, EFL_DBUS_ACC_BUS, EFL_DBUS_ACC_PATH);
+ if (!obj)
+ {
+ ERR("Error: could not get object");
+ return NULL;
+ }
+ sensor_proxy = eldbus_proxy_get(obj, IFACE);
+ if (!sensor_proxy)
+ {
+ ERR("Error: could not get proxy for interface %s", IFACE);
+ return NULL;
+ }
+
+ return sensor_proxy;
+}
+
/**
* Helper function to extract ta boolean property from the message
* @param msg The message coming from the get property invocation
@@ -194,39 +227,6 @@ _convertible_rotation_get(const enum screen_rotation orientation);
int
_is_device_a_touch_pointer(int dev_counter, int num_properties, char **iterator);
-/**
- * Helper to get the interface
- * */
-static Eldbus_Proxy *
-get_dbus_interface(const char *IFACE)
-{
- DBG("Working on interface: %s", IFACE);
- Eldbus_Connection *conn;
- Eldbus_Object *obj;
- Eldbus_Proxy *sensor_proxy;
-
- conn = eldbus_connection_get(ELDBUS_CONNECTION_TYPE_SYSTEM);
- if (!conn)
- {
- ERR("Error: could not get system bus");
- return NULL;
- }
- obj = eldbus_object_get(conn, EFL_DBUS_ACC_BUS, EFL_DBUS_ACC_PATH);
- if (!obj)
- {
- ERR("Error: could not get object");
- return NULL;
- }
- sensor_proxy = eldbus_proxy_get(obj, IFACE);
- if (!sensor_proxy)
- {
- ERR("Error: could not get proxy for interface %s", IFACE);
- return NULL;
- }
-
- return sensor_proxy;
-}
-
/**
* Helper function to extract ta string property from the message
* @param msg The message coming from the get property invocation
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.