On Mon, Jul 9, 2012 at 5:24 PM, Nathan <[email protected]> wrote:
> On Mon, Jul 9, 2012 at 1:59 AM, anatoly techtonik <[email protected]> wrote:
>>> How about this set of functions?
>>>
>>> + avbin_get_backend_name()       ("Libav")
>>> + avbin_get_backend_version()     ("0.6.6")
>>> + avbin_get_backend_repo()         ("https://github.com/AVbin/libav.git";)
>>> + avbin_get_backend_commit()     ("123abc456def...")
>>
>> The last two are too excessive - will needlessly bloat the API.
>> avbin_get_backend_version(details=True) can return "%s %s %s %s" with
>> all this information.
>
> Hmm.  I don't like the idea of requiring parsing to make sense of a
> response, but I do like the idea of not adding tons of functions.
>
> Perhaps I should consolidate it into one function call, maybe
> avbin_get_info() which returns a struct with all of this sort of
> version metadata.  I could include AVbin-specific information like the
> release number as well, and then the calling function can simply
> access whichever information it is interested in.

If AVbin version info is not present anywhere then avbin_get_info()
looks like is a way to go to me.
--
anatoly t.

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en.

Reply via email to