# HG changeset patch # User William Ehlhardt # Date 1184380554 0 # Node ID 1f07f96dc1cebc69c8bdc9658d765bb1bda4c394 # Parent fcca10d0ac7da23ee5ffd0dcbb9f30040be94ff1 - Add purple_certificate_get_handle diff -r fcca10d0ac7d -r 1f07f96dc1ce libpurple/certificate.c --- 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) { diff -r fcca10d0ac7d -r 1f07f96dc1ce libpurple/certificate.h --- 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.