comparison libpurple/certificate.h @ 19018:d6f902265076

- Add purple_certificate_copy and associated machinery
author William Ehlhardt <williamehlhardt@gmail.com>
date Fri, 13 Jul 2007 08:38:21 +0000
parents b1090cbfc286
children d69355001a6e
comparison
equal deleted inserted replaced
19017:e6558bae2bc6 19018:d6f902265076
160 * @return TRUE if the export succeeded, otherwise FALSE 160 * @return TRUE if the export succeeded, otherwise FALSE
161 * @see purple_certificate_export() 161 * @see purple_certificate_export()
162 */ 162 */
163 gboolean (* export_certificate)(const gchar *filename, PurpleCertificate *crt); 163 gboolean (* export_certificate)(const gchar *filename, PurpleCertificate *crt);
164 164
165 /**
166 * Duplicates a certificate
167 *
168 * Certificates are generally assumed to be read-only, so feel free to
169 * do any sort of reference-counting magic you want here. If this ever
170 * changes, please remember to change the magic accordingly.
171 * @return Reference to the new copy
172 */
173 PurpleCertificate * (* copy_certificate)(PurpleCertificate *crt);
174
165 /** Destroys and frees a Certificate structure 175 /** Destroys and frees a Certificate structure
166 * 176 *
167 * Destroys a Certificate's internal data structures and calls 177 * Destroys a Certificate's internal data structures and calls
168 * free(crt) 178 * free(crt)
169 * 179 *
358 /** @name Certificate Functions */ 368 /** @name Certificate Functions */
359 /*****************************************************************************/ 369 /*****************************************************************************/
360 /*@{*/ 370 /*@{*/
361 371
362 /** 372 /**
373 * Makes a duplicate of a certificate
374 *
375 * @param crt Instance to duplicate
376 * @return Pointer to new instance
377 */
378 PurpleCertificate *
379 purple_certificate_copy(PurpleCertificate *crt);
380
381 /**
363 * Destroys and free()'s a Certificate 382 * Destroys and free()'s a Certificate
364 * 383 *
365 * @param crt Instance to destroy. May be NULL. 384 * @param crt Instance to destroy. May be NULL.
366 */ 385 */
367 void 386 void