diff libpurple/certificate.h @ 19049:8cbc110456ac

- Add purple_certificate_pool_delete
author William Ehlhardt <williamehlhardt@gmail.com>
date Fri, 27 Jul 2007 07:31:47 +0000
parents 8b627694bf4a
children c79b54f03f9d
line wrap: on
line diff
--- a/libpurple/certificate.h	Fri Jul 27 07:27:34 2007 +0000
+++ b/libpurple/certificate.h	Fri Jul 27 07:31:47 2007 +0000
@@ -118,6 +118,8 @@
 	 *  @return TRUE if the operation succeeded, otherwise FALSE
 	 */
 	gboolean (* put_cert)(const gchar *id, PurpleCertificate *crt);
+	/** Delete a certificate from the pool */
+	gboolean (* delete_cert)(const gchar *id);
 
 	/** Returns a list of IDs stored in the pool */
 	GList * (* get_idlist)(void);
@@ -538,6 +540,16 @@
 purple_certificate_pool_store(PurpleCertificatePool *pool, const gchar *id, PurpleCertificate *crt);
 
 /**
+ * Remove a certificate from a pool
+ *
+ * @param pool   Pool to remove from
+ * @param id     ID to remove
+ * @return TRUE if the operation succeeded, otherwise FALSE
+ */
+gboolean
+purple_certificate_pool_delete(PurpleCertificatePool *pool, const gchar *id);
+
+/**
  * Get the list of IDs currently in the pool.
  *
  * @param pool   Pool to enumerate