[gst-devel] handoff calling C++ object member function

Quan Nguyen friday_morning at yahoo.com
Fri Jan 9 09:55:01 CET 2004


Actually, I don't know why callbacks are declared static.  Are there any online resources that I can use to find additional information regarding this?  Thanks.

Mathrick <mnews2 at wp.pl> wrote:W li¶cie z pi±, 09-01-2004, godz. 18:00, Quan Nguyen pisze: 
> Thanks a bunch! It works. The reason I used static void was because
> the sample code I got from this mailing list was written that way. 
> I'm not sure why it's like that either.

Glad to help. There is nothing wrong in declaring static, it's even
recommended for your app's internal functions, as long as you know why
it's declared that way. Otherwise, you may end up debugging strange
linking errors for no apparent reason ;). I suppose it was meant that
way in original code, also function's name (cb_manipulate) is typical
for app's callbacks - begins with cb_ and has no "namespace" prefix. You
may know all that already, but in case not, it's useful as these are
conventions used commonly in Glib/GTK world.

-- 
"Tautologizm to co¶ tautologicznego"
Maciej Katafiasz 
http://mathrick.blog.pl



---------------------------------
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20040109/193ae924/attachment.htm>


More information about the gstreamer-devel mailing list