changeset 6548:d01ba50e3f3e

[gaim-migrate @ 7070] And the .h file is good too. Some people may want it. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Thu, 21 Aug 2003 07:37:47 +0000
parents adf168f002ad
children ed796f756237
files src/signals.h
diffstat 1 files changed, 22 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/signals.h	Thu Aug 21 07:37:30 2003 +0000
+++ b/src/signals.h	Thu Aug 21 07:37:47 2003 +0000
@@ -135,6 +135,28 @@
 						   void *handle, GaimCallback func, void *data);
 
 /**
+ * Connects a signal handler to a signal for a particular object.
+ *
+ * The signal handler will take a va_args of arguments, instead of
+ * individual arguments.
+ *
+ * Take care not to register a handler function twice. Gaim will
+ * not correct any mistakes for you in this area.
+ *
+ * @param instance The instance to connect to.
+ * @param signal   The name of the signal to connect.
+ * @param handle   The handle of the receiver.
+ * @param func     The callback function.
+ * @param data     The data to pass to the callback function.
+ *
+ * @return The signal handler ID.
+ *
+ * @see gaim_signal_disconnect()
+ */
+gulong gaim_signal_connect_vargs(void *instance, const char *signal,
+								 void *handle, GaimCallback func, void *data);
+
+/**
  * Disconnects a signal handler from a signal on an object.
  *
  * @param instance The instance to disconnect from.