* Move to GPL v3
[citadel.git] / gaim-citadel / gaim.pkg
index 25183ce014d2d4773f13777fa7a0add36db4a1cb..f2829351c9524020e40593306a4b1d417943888c 100644 (file)
@@ -2,10 +2,10 @@
  * Gaim Citadel plugin.
  *
  * © 2006 David Given.
- * This code is licensed under the GPL v2. See the file COPYING in this
+ * This code is licensed under the GPL v3. See the file COPYING in this
  * directory for the full license text.
  *
- * $Id: auth.c 4258 2006-01-29 13:34:44 +0000 (Sun, 29 Jan 2006) dothebart $
+ * $Id:gaim.pkg 4326 2006-02-18 12:26:22Z hjalfi $
  */
 
 typedef unsigned int size_t;
@@ -21,6 +21,7 @@ $#include "conversation.h"
 $#include "server.h"
 $#include "notify.h"
 $#include "util.h"
+$#include "debug.h"
 
 $#include "interface.h"
 
@@ -289,6 +290,7 @@ typedef enum
 } GaimBuddyPresenceState;
 
 GaimGroup *gaim_group_new(const char *name);
+GaimGroup *gaim_find_group(const char *name);
 GaimGroup *gaim_find_buddys_group(GaimBuddy *buddy);
 GaimBuddy *gaim_buddy_new(GaimAccount *account, const char *screenname, const char *alias);
 const char *gaim_group_get_name(GaimGroup *group); // fake --- added by plugin
@@ -297,6 +299,7 @@ const char *gaim_buddy_get_contact_alias(GaimBuddy *buddy);
 const char *gaim_buddy_get_alias(GaimBuddy *buddy);
 GaimBuddy *gaim_find_buddy(GaimAccount *account, const char *name);
 void gaim_blist_add_buddy(GaimBuddy *buddy, GaimContact *contact, GaimGroup *group, GaimBlistNode *node);
+void gaim_blist_add_group(GaimGroup* group, GaimBlistNode* node);
 
 /* --- notify.h ---------------------------------------------------------- */
 
@@ -357,3 +360,25 @@ gboolean gaim_program_is_valid(const char *program);
 
 const char *gaim_normalize(const GaimAccount *account, const char *str);
 const char *gaim_normalize_nocase(const GaimAccount *account, const char *str);
+
+/* --- debug.h ----------------------------------------------------------- */
+
+typedef enum
+{
+       GAIM_DEBUG_ALL = 0,  /**< All debug levels.              */
+       GAIM_DEBUG_MISC,     /**< General chatter.               */
+       GAIM_DEBUG_INFO,     /**< General operation Information. */
+       GAIM_DEBUG_WARNING,  /**< Warnings.                      */
+       GAIM_DEBUG_ERROR,    /**< Errors.                        */
+       GAIM_DEBUG_FATAL     /**< Fatal errors.                  */
+
+} GaimDebugLevel;
+
+void gaim_debug(GaimDebugLevel level, const char *category,
+                               const char *format);
+void gaim_debug_misc(const char *category, const char *format);
+void gaim_debug_info(const char *category, const char *format);
+void gaim_debug_warning(const char *category, const char *format);
+void gaim_debug_error(const char *category, const char *format);
+void gaim_debug_fatal(const char *category, const char *format);
+