diff src/plugin.h @ 5944:158196b2db19

[gaim-migrate @ 6385] Added #ifdef __cplusplus lines so that things will link right with C++. Also added some doxygen comment blocks that didn't previously exist. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Mon, 23 Jun 2003 06:40:13 +0000
parents 8f5ccf9e590a
children 90d0849abd3c
line wrap: on
line diff
--- a/src/plugin.h	Mon Jun 23 02:00:15 2003 +0000
+++ b/src/plugin.h	Mon Jun 23 06:40:13 2003 +0000
@@ -22,29 +22,28 @@
  */
 #ifndef _GAIM_PLUGIN_H_
 #define _GAIM_PLUGIN_H_
+
 #include <gmodule.h>
 
-typedef enum   _GaimPluginType GaimPluginType;     /**< GaimPluginType   */
 typedef struct _GaimPlugin     GaimPlugin;         /**< GaimPlugin       */
 typedef struct _GaimPluginInfo GaimPluginInfo;     /**< GaimPluginInfo   */
 typedef struct _GaimPluginLoaderInfo GaimPluginLoaderInfo;
 
 typedef int GaimPluginPriority; /**< Plugin priority. */
 
-/* XXX */
-#include "config.h"
 #include "event.h"
 
 /**
  * Plugin types.
  */
-enum _GaimPluginType
+typedef enum
 {
 	GAIM_PLUGIN_UNKNOWN  = -1,  /**< Unknown type.    */
 	GAIM_PLUGIN_STANDARD = 0,   /**< Standard plugin. */
 	GAIM_PLUGIN_LOADER,         /**< Loader plugin.   */
 	GAIM_PLUGIN_PROTOCOL        /**< Protocol plugin. */
-};
+
+} GaimPluginType;
 
 #define GAIM_PRIORITY_DEFAULT     0
 #define GAIM_PRIORITY_HIGHEST  9999
@@ -134,8 +133,12 @@
 	}
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /**************************************************************************/
-/** @name Plugin namespace                                                */
+/** @name Plugin API                                                      */
 /**************************************************************************/
 /*@{*/
 
@@ -226,7 +229,7 @@
 /*@}*/
 
 /**************************************************************************/
-/** @name Plugins namespace                                               */
+/** @name Plugins API                                                     */
 /**************************************************************************/
 /*@{*/
 
@@ -368,4 +371,8 @@
 
 /*@}*/
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _GAIM_PLUGIN_H_ */