[vlc-devel] [PATCH] GSoC: lua services discovery, take two

Fabio Ritrovato exsephiroth87 at gmail.com
Sun Jul 26 01:32:37 CEST 2009


> So if it's only used here, inline it.

That's not possible, it need to access the pl_priv part of the
playlist, and it can0t be done outside of the playlist API

>Instead of saying I don't like, here is the kind of API that we should
>look to develop:....

I can't understand what it is that you want, but I think you probably
didn't fully undestrood what that's for...
It's not something realted to searching, the string can be anything,
and, actually, the SD never access or use the parameter list...
It is only used by the interface to create a nice dialog to make the
user choice what he wants to add, and that can be anything...
For example, in the youtube SD, you can create a string like :
category="Games" category_order="most_viewed"  time="all_time"...
The parameter list is just a list of all the things an user can choose
to display, nothing obscure or critical...
Also, I don't understand what you mean by "checking"...
Everything will probably easier to understand by compiling...

>ItemPut() name is also too vague, and seems to be unrelated to string
>passing to the SD.

It has to be vague, that's the point, every SD act in a different way,
one could accept a string to parse, one could need an url or a file
path...
The function is to add something to the SD, regardless of what that is...
And, for example, input_item_New, name, is unrelated to the fact you
give it a string to create it...

>Please don't implement them yet then.

My task was to create an API to let everyone code their own script,
those functions are not used by me at the moment, but they can be
useful for someone else (actually, i use them too, but not on these
scripts...)



More information about the vlc-devel mailing list