diff libpurple/connection.h @ 21374:71c1f2da4ff2

PurpleConnectionErrorPair is a better name for struct { PurpleConnectionError; const char *desc } than PurpleAccountCurrentError.
author Will Thompson <will.thompson@collabora.co.uk>
date Sun, 28 Oct 2007 16:32:37 +0000
parents e747ac0c42d6
children f5b223d0cb89
line wrap: on
line diff
--- a/libpurple/connection.h	Sun Oct 28 13:01:45 2007 +0000
+++ b/libpurple/connection.h	Sun Oct 28 16:32:37 2007 +0000
@@ -126,6 +126,15 @@
 	PURPLE_CONNECTION_ERROR_OTHER_ERROR = 15
 } PurpleConnectionError;
 
+/** Holds the type of an error along with its description. */
+typedef struct
+{
+	/** The type of error. */
+	PurpleConnectionError type;
+	/** A localised, human-readable description of the error. */
+	const char *description;
+} PurpleConnectionErrorPair;
+
 #include <time.h>
 
 #include "account.h"