[gst-devel] does signal has last param user_data in gstreamer?

Stefan Kost ensonic at hora-obscura.de
Mon Jan 10 17:29:58 CET 2011


On 09.01.2011 01:44, Tim-Philipp Müller wrote:
> On Sat, 2011-01-08 at 22:12 +0100, Farkas Levente wrote:
>
>> but it'd be nice to use consistent docs/help ie. either all gst-inspect
>> signal contain it as last param or none (see for example gst-inspect
>> input-selector).
> For action signals (and vfuncs for such action signals) no user_data
> argument should be displayed, since that doesn't make sense. gst-inspect
> doesn't show a user_data argument here, but gtk-doc (html docs) does,
> which looks like a gtk-doc bug to me.
Hmm, one can still conect to an action signal and the callback is called
when the signal is emitted. I agree that it would be quite a strange
thing to do. On the gtk-doc side no one else has complained about it so
far. Filed as enhancement request:
https://bugzilla.gnome.org/show_bug.cgi?id=639155

Stefan

> For normal signals, there should be a user data argument, because what
> you're displaying is basically the signature your callback function
> should have.
>
> Two different things really, and hence two different conventions.
>
> Cheers
>  -Tim
>
>
>
> ------------------------------------------------------------------------------
> Gaining the trust of online customers is vital for the success of any company
> that requires sensitive data to be transmitted over the Web.   Learn how to 
> best implement a security strategy that keeps consumers' information secure 
> and instills the confidence they need to proceed with transactions.
> http://p.sf.net/sfu/oracle-sfdevnl 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel





More information about the gstreamer-devel mailing list