#include <dbus/dbus.h>
#include <Ecore.h>
+#include <Eina.h>
#ifdef EAPI
#undef EAPI
EAPI E_DBus_Object *e_dbus_object_add(E_DBus_Connection *conn, const char *object_path, void *data);
EAPI void e_dbus_object_free(E_DBus_Object *obj);
EAPI void *e_dbus_object_data_get(E_DBus_Object *obj);
+ EAPI E_DBus_Connection *e_dbus_object_conn_get(E_DBus_Object *obj);
+ EAPI const char *e_dbus_object_path_get(E_DBus_Object *obj);
+ EAPI const Eina_List *e_dbus_object_interfaces_get(E_DBus_Object *obj);
EAPI void e_dbus_object_property_get_cb_set(E_DBus_Object *obj, E_DBus_Object_Property_Get_Cb func);
EAPI void e_dbus_object_property_set_cb_set(E_DBus_Object *obj, E_DBus_Object_Property_Set_Cb func);
#include "E_DBus.h"
#include "e_dbus_private.h"
-#include <Ecore_Data.h>
+#include <Eina.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
}
/**
+ * @brief Get the dbus connection of a dbus object
+ * @param obj the dbus object
+ */
+EAPI E_DBus_Connection *
+e_dbus_object_conn_get(E_DBus_Object *obj)
+{
+ return obj->conn;
+}
+
+/**
+ * @brief Get the path of a dbus object
+ * @param obj the dbus object
+ */
+EAPI const char *
+e_dbus_object_path_get(E_DBus_Object *obj)
+{
+ return obj->path;
+}
+
+/**
+ * @brief Get the interfaces of a dbus object
+ * @param obj the dbus object
+ */
+EAPI const Eina_List *
+e_dbus_object_interfaces_get(E_DBus_Object *obj)
+{
+ return obj->interfaces;
+}
+
+/**
* @brief Sets the callback to fetch properties from an object
* @param obj the object
* @param func the callback