1 /* @(#) $Id: mail_list.h,v 1.6 2009/06/24 17:06:30 dcid Exp $ */
3 /* Copyright (C) 2009 Trend Micro Inc.
6 * This program is a free software; you can redistribute it
7 * and/or modify it under the terms of the GNU General Public
8 * License (version 3) as published by the FSF - Free Software
17 /* Events List structure */
18 typedef struct _MailNode
21 struct _MailNode *next;
22 struct _MailNode *prev;
26 /* Add an email to the list */
27 void OS_AddMailtoList(MailMsg *ml);
29 /* Return the last event from the Event list
30 * removing it from there
32 MailNode *OS_PopLastMail();
34 /* Returns a pointer to the last email, not removing it */
35 MailNode *OS_CheckLastMail();
37 /* Create the mail list. Maxsize must be specified */
38 void OS_CreateMailList(int maxsize);
40 /* Free an email node */
41 void FreeMail(MailNode *ml);
44 void FreeMailMsg(MailMsg *ml);