Plugins can now be disabled and enabled (at least in infrastructure
terms, no UI or code to filter out enabled plugins).
Two new signals will be emitted to main loop:
- ENJOY_EVENT_STARTED
- ENJOY_EVENT_QUIT
Plugins will be enabled on start, disabled on quit. Quit will also
preserve the main loop until everything is done using it. It is
required for stuff like FSO that needs to talk to DBus to re-enable
the CPU policy.
SVN revision: 63163
Keep mpris stuff into mpris itself. Things like status and
capabilities will go into a structure that is easier to use.
Events were simplified, couple of them do not carry arguments anymore,
removing the need of "no_free" and hacks like alocating an integer to
later free it.
The point of event data is when you must use that value, in that exact
sequence. When you have things that just the latest version matters,
like the capabilities or the current song you'll inform MPRIS, then
it's simpler to just query before using. Remember that events are
asynchronous and may run after timers, fd-handlers (mouse, kbd) and
even other events.
I've also fixed the behavior of setting repeat (loop), reflect the
UI. Shuffle also were not updating toolbar, etc.
As a bonus I've added a missing MPRIS TrackList.GetLength :-)
Last but not least... watch out things like giving Edje a MSG_INT
where the given pointer is Eina_Bool (1 byte), it may cause problems
depending on the sibling values :-/
SVN revision: 63145
- enjoy.m4 (similar to lightmediascanner/m4/ac-plugins.m4)
- optional build of modules
- each module in their own directory
- install modules to $(libdir)/enjoy/
- load module from multiple "standard" places, such as
- $(libdir)/enjoy/
- ~/.enjoy
- ${ENJOY_LIB_DIR}/enjoy
- $ENJOY_MODULES_DIR
- each module have its own log stuff
SVN revision: 63142
Still need to install the plugins in a proper directory (probably
$PREFIX/lib/enjoy/plugins) instead of looking for some known filename
prefix. I don't know autofoo enough to do this.
Also needed is a way to load/unload plugins, preferably from the UI.
SVN revision: 62964
TODO: fix elm_toolbar that is resizing the item when the state change
to a large text (Library <-> Now Playing). Right now it was worked
around with a shorter label (Now Playing -> Playing)
SVN revision: 62774
will explicitly do a get or a post. send is still there (deprecated)
and it just does what it did before - it guesses effectively. please
comment. :)
SVN revision: 55926
Determining the mime type of a file based on its content is pretty
expensive, specially if there isn't any kind of hints to narrow Efreet's
magic table: searching only for "image/*" file types would be a lot better
than the current approach of matching with each and every type known to man
just to discard them if they're not images. Enjoy being a music player,
most files on each album directory will be music files, making local cover
art searching pretty slow.
Since there is now code to obtain the cover art from the network, it is
safer to assume the cover art files will either have a .{jpe?g,png}
extension, or will be obtained from the network.
SVN revision: 54889