summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/eulogium.c11
-rw-r--r--src/eulogium.h1
2 files changed, 12 insertions, 0 deletions
diff --git a/src/eulogium.c b/src/eulogium.c
index 48cb1df..d752a76 100644
--- a/src/eulogium.c
+++ b/src/eulogium.c
@@ -3316,6 +3316,17 @@ static int eulogium_dbus_init(struct eulogium_data *eulogium)
EINA_LOG_WARN("Could not get dbus printer proxy.");
return -EFAULT;
}
+
+ obj = eldbus_object_get(eulogium->dbus.conn, "nl.ultimaker.network", "/nl/ultimaker/network");
+ if (!obj) {
+ EINA_LOG_WARN("Could not get nl.ultimaker.network object.");
+ return -EFAULT;
+ }
+ eulogium->dbus.proxy[NETWORK] = eldbus_proxy_get(obj, "nl.ultimaker");
+ if (!eulogium->dbus.proxy[NETWORK]) {
+ EINA_LOG_WARN("Could not get dbus network proxy.");
+ return -EFAULT;
+ }
/* First query the status and store it, we don't know the initial status,
* and the statusChanged signal may not have been fired yet
*/
diff --git a/src/eulogium.h b/src/eulogium.h
index d6eaf45..c516b27 100644
--- a/src/eulogium.h
+++ b/src/eulogium.h
@@ -66,6 +66,7 @@ struct printer_data {
enum proxy_idx {
PRINTER,
+ NETWORK,
LED,
LAST /* sentinel */
};