1 /* @(#) $Id: ./src/os_maild/mail_list.h, 2011/09/08 dcid Exp $
4 /* Copyright (C) 2009 Trend Micro Inc.
7 * This program is a free software; you can redistribute it
8 * and/or modify it under the terms of the GNU General Public
9 * License (version 2) as published by the FSF - Free Software
18 /* Events List structure */
19 typedef struct _MailNode
22 struct _MailNode *next;
23 struct _MailNode *prev;
27 /* Add an email to the list */
28 void OS_AddMailtoList(MailMsg *ml);
30 /* Return the last event from the Event list
31 * removing it from there
33 MailNode *OS_PopLastMail();
35 /* Returns a pointer to the last email, not removing it */
36 MailNode *OS_CheckLastMail();
38 /* Create the mail list. Maxsize must be specified */
39 void OS_CreateMailList(int maxsize);
41 /* Free an email node */
42 void FreeMail(MailNode *ml);
45 void FreeMailMsg(MailMsg *ml);