summaryrefslogtreecommitdiff
path: root/libpurple/connection.h
diff options
context:
space:
mode:
authorWill Thompson <resiak@pidgin.im>2007-10-28 16:32:37 +0000
committerWill Thompson <resiak@pidgin.im>2007-10-28 16:32:37 +0000
commitc4bceaf81973b0cfe063a146d47c81dd540268ec (patch)
treedb4ce39399ae33c32d89642cd8da240851062513 /libpurple/connection.h
parent7394fa38207fb64939d725d4b4773e4c104fe14c (diff)
downloadpidgin-c4bceaf81973b0cfe063a146d47c81dd540268ec.tar.gz
PurpleConnectionErrorPair is a better name for struct { PurpleConnectionError;
const char *desc } than PurpleAccountCurrentError.
Diffstat (limited to 'libpurple/connection.h')
-rw-r--r--libpurple/connection.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libpurple/connection.h b/libpurple/connection.h
index 831789d014..7f8436acb2 100644
--- a/libpurple/connection.h
+++ b/libpurple/connection.h
@@ -126,6 +126,15 @@ typedef enum
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"