On Mon, Apr 04, 2011 at 03:06:48PM +0000, Ronald S. Bultje wrote: > Hi, > > On Mon, Apr 4, 2011 at 11:01 AM, Anton Khirnov <an...@khirnov.net> wrote: > > Lesson learned: don't program while half-asleep. > > > > And now something that actually works :) > [..] > > +const char *avio_enum_protocols(void **opaque) > > +{ > > + URLProtocol **p = opaque; > > + *p = av_protocol_next(*p); > > + return *p ? (*p)->name : NULL; > > +} > > Is this how people would use it? I'd assume someone would call a > function to list all protocols in an array or so, and then iterate > through the array myself.
My version is simpler ;) And it's only a RFC, I don't know how will people want to use this (if at all). -- Anton Khirnov
signature.asc
Description: Digital signature
_______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel