blob: 4e4cbba2230218b4183245ec6e4fc83cb528252a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include "cJSON.h"
#include "queue.h"
#include <time.h>
typedef struct
{
QUEUEHDR hdr;
char *pszUser;
char *pszAlias;
char *pszMessage;
time_t timestamp;
char szStatus[16];
char szFailure[256];
} 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);
BOOL MsgQueue_Remove(TYP_LIST *hList, unsigned int uMsgNr);
MSGENTRY *MsgQueue_Find(TYP_LIST *hList, unsigned int uMsgNr);
|