diff options
author | Olliver Schinagl <o.schinagl@ultimaker.com> | 2015-05-18 11:34:57 (GMT) |
---|---|---|
committer | Olliver Schinagl <o.schinagl@ultimaker.com> | 2015-05-18 13:50:01 (GMT) |
commit | 3fc08a5e8c4ff92daf39f98a106fc3e0c5e1840f (patch) | |
tree | 8adf5af04fcfcd93eaf43051c38c5a611a1cc940 /src/eulogium.h | |
parent | 0ef725d3698d1e58ad7a5de00caeda8f89a65184 (diff) | |
download | eulogium-3fc08a5e8c4ff92daf39f98a106fc3e0c5e1840f.zip eulogium-3fc08a5e8c4ff92daf39f98a106fc3e0c5e1840f.tar.gz eulogium-3fc08a5e8c4ff92daf39f98a106fc3e0c5e1840f.tar.bz2 |
[griffin.display] Add initial USB mount detection support
This patch adds support for external mounts, when a user inserts or
removes a USB stick (technically, if the fs is being mounted) and systemd
takes notice of this, an eeze_disk object is created for this. Other media
types are ignored for now, until they can be properly identified.
All storage kinds should eventually end up in the mounts struct, so that
the UI can scan that for mount points. Right now, only USB storage is
added to this. A hack to add local storage will be required (tmpfs?)
Also, all available storage is scanned during startup, in case storage
was mounted during boot and thus no hotplug event is being generated.
Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
Diffstat (limited to 'src/eulogium.h')
-rw-r--r-- | src/eulogium.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/eulogium.h b/src/eulogium.h index a4c16b0..ca9c1b6 100644 --- a/src/eulogium.h +++ b/src/eulogium.h @@ -68,6 +68,13 @@ struct dbus_data { Eldbus_Proxy *proxy[LAST]; }; +struct mount_data { + char *id; + Eldbus_Proxy *proxy; + Eeze_Disk *disk; + Eina_List **mounts; +}; + struct eulogium_data { Evas_Object *navi; Evas_Object *time; @@ -78,6 +85,7 @@ struct eulogium_data { struct printer_data printer; struct print_data print; struct dbus_data dbus; + Eina_List *mounts; void *data; }; |