diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-12-22 21:43:08 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-12-22 21:43:08 +0000 |
commit | 07ddfbd5994267e0f1aba52040a25db90ed8924b (patch) | |
tree | e33f1fe629f4e74b4bb31cbdcf41a2c2451bf599 /plugins/!NotAdopted/IMO2sProxy/src/imo2skype/msgqueue.h | |
parent | 3c0a624abd362e45502619648670ace62b2efa3e (diff) |
IMO2sProxy reverted. maybe will be needed later
git-svn-id: http://svn.miranda-ng.org/main/trunk@2809 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/!NotAdopted/IMO2sProxy/src/imo2skype/msgqueue.h')
-rw-r--r-- | plugins/!NotAdopted/IMO2sProxy/src/imo2skype/msgqueue.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/plugins/!NotAdopted/IMO2sProxy/src/imo2skype/msgqueue.h b/plugins/!NotAdopted/IMO2sProxy/src/imo2skype/msgqueue.h new file mode 100644 index 0000000000..ac8ce1cf8d --- /dev/null +++ b/plugins/!NotAdopted/IMO2sProxy/src/imo2skype/msgqueue.h @@ -0,0 +1,28 @@ +#include "cJSON.h"
+#include "queue.h"
+#include <time.h>
+
+typedef struct
+{
+ QUEUEHDR hdr;
+ char *pszUser;
+ char *pszAuthor; // In case of groupchat, pszUser is the Groupchat ID and pszAuthor is the user sending it, if not a GC message, pszAuthor is NULL
+ char *pszAlias;
+ char *pszMessage;
+ time_t timestamp;
+ char szStatus[16];
+ char szFailure[256];
+ char szType[20]; // TEXT, SETTOPIC, ADDEDMEMBERS, CREATEDCHATWITH, LEFT, KICKED, ...
+ unsigned int uRqId;
+} MSGENTRY;
+
+TYP_LIST *MsgQueue_Init(void);
+void MsgQueue_Exit(TYP_LIST *hList);
+
+MSGENTRY *MsgQueue_Insert(TYP_LIST *hList, cJSON *pNick);
+MSGENTRY *MsgQueue_AddReflect(TYP_LIST *hList, cJSON *pNick, TYP_LIST *hBuddyList);
+MSGENTRY *MsgQueue_AddSent(TYP_LIST *hList, char *pszUser, char *pszAlias, char *pszMessage, unsigned int *puMsgId);
+MSGENTRY *MsgQueue_AddEvent(TYP_LIST *hList, char *pszUser, char *pszType);
+BOOL MsgQueue_Remove(TYP_LIST *hList, unsigned int uMsgNr);
+MSGENTRY *MsgQueue_Find(TYP_LIST *hList, unsigned int uMsgNr);
+MSGENTRY *MsgQueue_FindByRqId(TYP_LIST *hList, unsigned int uRqId);
|