summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/Messenger.h31
1 files changed, 18 insertions, 13 deletions
diff --git a/core/Messenger.h b/core/Messenger.h
index 581c4ba9..e808529f 100644
--- a/core/Messenger.h
+++ b/core/Messenger.h
@@ -48,23 +48,28 @@ extern "C" {
48#define PACKET_ID_MESSAGE 64 48#define PACKET_ID_MESSAGE 64
49#define PACKET_ID_ACTION 63 49#define PACKET_ID_ACTION 63
50 50
51
51/* status definitions */ 52/* status definitions */
52#define FRIEND_ONLINE 4 53enum {
53#define FRIEND_CONFIRMED 3 54 NOFRIEND,
54#define FRIEND_REQUESTED 2 55 FRIEND_ADDED,
55#define FRIEND_ADDED 1 56 FRIEND_REQUESTED,
56#define NOFRIEND 0 57 FRIEND_CONFIRMED,
58 FRIEND_ONLINE,
59};
57 60
58/* errors for m_addfriend 61/* errors for m_addfriend
59 * FAERR - Friend Add Error */ 62 * FAERR - Friend Add Error */
60#define FAERR_TOOLONG -1 63enum {
61#define FAERR_NOMESSAGE -2 64 FAERR_TOOLONG = -1,
62#define FAERR_OWNKEY -3 65 FAERR_NOMESSAGE = -2,
63#define FAERR_ALREADYSENT -4 66 FAERR_OWNKEY = -3,
64#define FAERR_UNKNOWN -5 67 FAERR_ALREADYSENT = -4,
65#define FAERR_BADCHECKSUM -6 68 FAERR_UNKNOWN = -5,
66#define FAERR_SETNEWNOSPAM -7 69 FAERR_BADCHECKSUM = -6,
67#define FAERR_NOMEM -8 70 FAERR_SETNEWNOSPAM = -7,
71 FAERR_NOMEM = -8
72};
68 73
69/* don't assume MAX_STATUSMESSAGE_LENGTH will stay at 128, it may be increased 74/* don't assume MAX_STATUSMESSAGE_LENGTH will stay at 128, it may be increased
70 to an absurdly large number later */ 75 to an absurdly large number later */