diff src/conversation.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 059d95c67cda
children 5239a3b4ab33
line wrap: on
line diff
--- a/src/conversation.h	Mon Jun 23 02:00:15 2003 +0000
+++ b/src/conversation.h	Mon Jun 23 06:40:13 2003 +0000
@@ -28,10 +28,6 @@
 /** Data Structures                                                       */
 /**************************************************************************/
 
-typedef enum   _GaimConversationType  GaimConversationType;
-typedef enum   _GaimUnseenState       GaimUnseenState;
-typedef enum   _GaimConvUpdateType    GaimConvUpdateType;
-typedef enum   _GaimTypingState       GaimTypingState;
 typedef struct _GaimWindowUiOps       GaimWindowUiOps;
 typedef struct _GaimWindow            GaimWindow;
 typedef struct _GaimConversationUiOps GaimConversationUiOps;
@@ -42,28 +38,30 @@
 /**
  * A type of conversation.
  */
-enum _GaimConversationType
+typedef enum
 {
 	GAIM_CONV_UNKNOWN = 0, /**< Unknown conversation type. */
 	GAIM_CONV_IM,          /**< Instant Message.           */
 	GAIM_CONV_CHAT,        /**< Chat room.                 */
 	GAIM_CONV_MISC         /**< A misc. conversation.      */
-};
+
+} GaimConversationType;
 
 /**
  * Unseen text states.
  */
-enum _GaimUnseenState
+typedef enum
 {
 	GAIM_UNSEEN_NONE = 0,  /**< No unseen text in the conversation. */
 	GAIM_UNSEEN_TEXT,      /**< Unseen text in the conversation.    */
 	GAIM_UNSEEN_NICK,      /**< Unseen text and the nick was said.  */
-};
+
+} GaimUnseenState;
 
 /**
  * Conversation update type.
  */
-enum _GaimConvUpdateType
+typedef enum
 {
 	GAIM_CONV_UPDATE_ADD = 0, /**< The buddy associated with the conversation
 							       was added.   */
@@ -83,23 +81,23 @@
 	GAIM_CONV_ACCOUNT_ONLINE,  /**< One of the user's accounts went online.  */
 	GAIM_CONV_ACCOUNT_OFFLINE, /**< One of the user's accounts went offline. */
 	GAIM_CONV_UPDATE_AWAY      /**< The other user went away.                */
-};
+
+} GaimConvUpdateType;
 
 /**
  * The typing state of a user.
  */
-enum _GaimTypingState
+typedef enum
 {
 	GAIM_NOT_TYPING = 0,  /**< Not typing.                 */
 	GAIM_TYPING,          /**< Currently typing.           */
 	GAIM_TYPED            /**< Stopped typing momentarily. */
-};
 
+} GaimTypingState;
 
 #include "account.h"
 #include "server.h"
 
-
 /**
  * Conversation window operations.
  *
@@ -238,6 +236,10 @@
 
 typedef void (*GaimConvPlacementFunc)(GaimConversation *);
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /**************************************************************************/
 /** @name Conversation Window API                                         */
 /**************************************************************************/
@@ -1178,4 +1180,8 @@
 
 /*@}*/
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _GAIM_CONVERSATION_H_ */