diff src/privacy.h @ 6378:01289157fc37

[gaim-migrate @ 6883] This solves the problem of 50 billion dialogs on your screen and server requests to re-authorize or re-deny everybody on every privacy list in your protocol. "Oops." committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Tue, 05 Aug 2003 18:59:57 +0000
parents 8f94cce8faa5
children 31c0a9adc1a4
line wrap: on
line diff
--- a/src/privacy.h	Tue Aug 05 18:31:00 2003 +0000
+++ b/src/privacy.h	Tue Aug 05 18:59:57 2003 +0000
@@ -44,42 +44,54 @@
 /**
  * Adds a user to the account's permit list.
  *
- * @param account The account.
- * @Param name    The name of the user to add to the list.
+ * @param account    The account.
+ * @Param name       The name of the user to add to the list.
+ * @param local_only If TRUE, only the local list is updated, and not
+ *                   the server.
  *
  * @return TRUE if the user was added successfully, or @c FALSE otherwise.
  */
-gboolean gaim_privacy_permit_add(GaimAccount *account, const char *name);
+gboolean gaim_privacy_permit_add(GaimAccount *account, const char *name,
+								 gboolean local_only);
 
 /**
  * Removes a user from the account's permit list.
  *
- * @param account The account.
- * @Param name    The name of the user to add to the list.
+ * @param account    The account.
+ * @Param name       The name of the user to add to the list.
+ * @param local_only If TRUE, only the local list is updated, and not
+ *                   the server.
  *
  * @return TRUE if the user was removed successfully, or @c FALSE otherwise.
  */
-gboolean gaim_privacy_permit_remove(GaimAccount *account, const char *name);
+gboolean gaim_privacy_permit_remove(GaimAccount *account, const char *name,
+								 gboolean local_only);
 
 /**
  * Adds a user to the account's deny list.
  *
- * @param account The account.
- * @Param name    The name of the user to add to the list.
+ * @param account    The account.
+ * @Param name       The name of the user to add to the list.
+ * @param local_only If TRUE, only the local list is updated, and not
+ *                   the server.
  *
  * @return TRUE if the user was added successfully, or @c FALSE otherwise.
  */
-gboolean gaim_privacy_deny_add(GaimAccount *account, const char *name);
+gboolean gaim_privacy_deny_add(GaimAccount *account, const char *name,
+								 gboolean local_only);
 
 /**
  * Removes a user from the account's deny list.
  *
- * @param account The account.
- * @Param name    The name of the user to add to the list.
+ * @param account    The account.
+ * @Param name       The name of the user to add to the list.
+ * @param local_only If TRUE, only the local list is updated, and not
+ *                   the server.
  *
  * @return TRUE if the user was removed successfully, or @c FALSE otherwise.
  */
-gboolean gaim_privacy_deny_remove(GaimAccount *account, const char *name);
+gboolean gaim_privacy_deny_remove(GaimAccount *account, const char *name,
+								 gboolean local_only);
 
 /**
  * Sets the UI operations structure for the privacy subsystem.