[PATCH] Plugin-like extensions for Amarok

Patryk Cisek patryk at prezu.one.pl
Tue Sep 4 14:40:40 UTC 2007


Maximilian Kossick writes: 

> Hi Patryk,
> I didn't have time to actually try your patch yet, but it seems very 
> interesting and i'm definitely going to give it a try later today. There's 
> one important problem with your patch I noticed while reading it: You are 
> installing our headers, and we are not going to do that. All plugins would 
> have to live in Amarok's source tree. Can you remove those
> changes from the patch? 
> 
> Cheers, Max
Sure thing, here you go:
http://kadu.net/~patryk/amarok/extensions-2007-09-04b.patch 

In this case I also temporarily added a dummy extension -- 
src/dummy_extension dir -- that does nothing (only displays 
KMessageBox::information() on constructor and destructor) to have at least 
two plugins, so you can play with dependencies. 

Note that resolving dependencies is not yet finished. Issue you might meet: 
suppose you had extensions "A" and "B" loaded, and "A" depends on "B". When 
Amarok starts it will try to load both. But if "A" will be the first in a 
row, loading it will fail, because it depends on "B", and the latter is not 
yet loaded. Finishing dependency tracking is next on my roadmap. :)



More information about the Amarok mailing list