view doc/imgstore-signals.dox @ 29928:cead5610c89a

Add a cast to silence this warning. perl-handlers.c: In function ¡Æperl_signal_cb¡Ç: perl-handlers.c:306: warning: passing argument 2 of ¡Æpurple_perl_sv_from_vargs¡Ç from incompatible pointer type perl-common.h:69: note: expected ¡Æstruct __va_list_tag (*)[1]¡Ç but argument is of type ¡Æstruct __va_list_tag *¡Ç This may not be the most elegant solution, but va_args aren't really elegant, and this solution is at least easy. Thanks very much to the expert bug reporting and research done by dharding! Fixes #11431 (that ticket has a lot of information about this change)
author Mark Doliner <mark@kingant.net>
date Thu, 04 Mar 2010 21:25:50 +0000
parents e0613cf8c493
children
line wrap: on
line source

/** @page imgstore-signals Image Store Signals

 @signals
  @signal image-deleting
 @endsignals

 @see imgstore.h

 <hr>

 @signaldef image-deleting
  @signalproto
char *(*image_deleting)(const PurpleStoredImage *img);
  @endsignalproto
  @signaldesc
   Emitted when a #PurpleStoredImage is about to be destroyed.  This allows
   for what amounts to weak references.  Code can hold onto a pointer to
   the PurpleStoredImage without actually "holding" a reference.  They can
   then use a signal handler to let them know when their img is about to
   be destroyed.
  @param img The image about to be destroyed.
  @note It's not possible to purple_imgstore_ref() img to save it.
 @endsignaldef

*/
// vim: syntax=c.doxygen tw=75 et