Uli Franke [2010-06-22 20:56]: Hi,
> given the case a caller sets up an asychronous xmms command with a certain > object as user data. While the xmms tries to generate a result, the user data > becomes invalid, because an urgent operation needs to free the memory or the > object and the result of the operation isn't required anymore or whatever. > > Is there any way to remove the callback from a result? Like searching the > callback list? I browsed through the source code but couldn't find anything > like > this (I would call it xmmsc_result_notifier_unset). I'm currently using a user > data transfer object which indicates if the initiator of the command is gone > or > not in order callbacks to this (inexistent) object are suppressed. Currently the only thing you can is to use xmmsc_result_unref(my_result); Usually this means you may no longer access my_result. Does this work for you? Regards, Tilman -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?
pgptIJxZr0eOH.pgp
Description: PGP signature
-- _______________________________________________ Xmms2-devel mailing list Xmms2-devel@lists.xmms.se http://lists.xmms.se/cgi-bin/mailman/listinfo/xmms2-devel