Commit graph

15 commits

Author SHA1 Message Date
Colin Guthrie
d69eba34e2 device-manager: Remove unneeded logic for checking for and (un)loading module-stream-restore. We can co-exist 2009-11-11 17:44:24 +00:00
Colin Guthrie
a0567fb41b device-manager: Rough framework (slots etc.) for handling routing.
This is incomplete, it just adds the slots in question and assigns noops to them.
Some minor cleanup of types.

Due to the priority of the hooks, it seems we can actually coexist with module-stream restore so
the code to detect and unload it will be removed shortly.
2009-11-11 17:44:24 +00:00
Colin Guthrie
fd5a5084d8 device-manager: debug and comments 2009-11-11 17:44:24 +00:00
Colin Guthrie
2b714801c1 device-manager: Fix the freeing of the datum on prefer/defer.
Also fix a log typo
2009-11-11 17:44:24 +00:00
Colin Guthrie
0541028797 device-manager: When a new device is encountered, initialise the priority list to an appropriate value 2009-11-11 17:44:23 +00:00
Colin Guthrie
5e3f1c2363 device-manager: Let subscribed clients know when something changes. 2009-11-11 17:44:23 +00:00
Colin Guthrie
6d4afac194 device-manager: Change the write function to a rename function.
The structure itself will contain various bits of info so exposing this fully to the client is a bad idea.
By keeping to a rename operation we keep what we do store abstracted from the clients.

Also fix some doxy comments.
2009-11-11 17:44:23 +00:00
Colin Guthrie
4981268738 device-manager: Provide a method for prefering/defering a device.
This allows clients to edit the priroity order. What is not yet in place is the initialisation of that priority list
when new devices are detected or the cleaning (remove holes) when devices are removed.

In order to keep the storage transparent I will likely remove the write functionality and replace it with a
simple rename method.

I also still need to expose the priority itself when reading the data.
2009-11-11 17:44:23 +00:00
Colin Guthrie
a9bd1ab69c device-manager: Fix copy+paste code that looped over the tagstruct when not necessary 2009-11-11 17:44:23 +00:00
Colin Guthrie
c1ece6ce85 device-manager: Provide a way for clients to enable/disable role-based device-priority routing.
The routing logic itself does not yet exist, but the command currently will unload/load module-stream-restore as approriate.
(module-stream-restore would conflict with the role-based priority-routing).
2009-11-11 17:44:23 +00:00
Colin Guthrie
58bc037884 device-manager: Only store and save details for non-monitor sources 2009-11-11 17:44:22 +00:00
Colin Guthrie
276e9534b5 device-restore: Fix the application of an entry to allow changing the name of devices.
This fixes a few bugs in the copy+pasted implementation of apply_entry()/get_name().
2009-11-11 17:44:22 +00:00
Colin Guthrie
b8b28ef57e device-manager: Fix tagstruct description extraction (copy+paste blunder) 2009-11-11 17:44:22 +00:00
Colin Guthrie
0f6ace75c9 device-manager: Add an untested protocol extension.
This is effectively copied from the stream restore extension.
2009-11-11 17:44:22 +00:00
Colin Guthrie
4c68fe7b9f device-manager: Add a new module to keep track of the names and descriptions of various sinks.
This will be used as the basis for a queryable system for past and present devices, initially for use in KDE.
Currently all this module does is save lists of sinks/sources and their descriptions, so it needs to
gain a protocol extension to make this queryable.

As things stand it will save the device descriptions of all sinks and restore them if they differ from whats on record.
2009-11-11 17:44:22 +00:00