changeset 19022:1f07f96dc1ce

- Add purple_certificate_get_handle
author William Ehlhardt <williamehlhardt@gmail.com>
date Sat, 14 Jul 2007 02:35:54 +0000
parents fcca10d0ac7d
children eb86ff3ba21a
files libpurple/certificate.c libpurple/certificate.h
diffstat 2 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/certificate.c	Fri Jul 13 09:09:52 2007 +0000
+++ b/libpurple/certificate.c	Sat Jul 14 02:35:54 2007 +0000
@@ -720,6 +720,13 @@
 	/* TODO: Unregistering everything would be good... */
 }
 
+gpointer
+purple_certificate_get_handle(void)
+{
+	static gint handle;
+	return &handle;
+}
+
 PurpleCertificateScheme *
 purple_certificate_find_scheme(const gchar *name)
 {
--- a/libpurple/certificate.h	Fri Jul 13 09:09:52 2007 +0000
+++ b/libpurple/certificate.h	Sat Jul 14 02:35:54 2007 +0000
@@ -541,6 +541,12 @@
 void
 purple_certificate_uninit(void);
 
+/**
+ * Get the Certificate subsystem handle for signalling purposes
+ */
+gpointer
+purple_certificate_get_handle(void);
+
 /** Look up a registered CertificateScheme by name
  * @param name   The scheme name. Case insensitive.
  * @return Pointer to the located Scheme, or NULL if it isn't found.