annotate include/TaskManager/MailManager.h @ 20:31a7ff27ee20

*** empty log message ***
author gongo
date Sun, 10 Feb 2008 13:46:26 +0900
parents 98bb1b2bb71e
children 7927e00fb8e2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
1 #ifndef INCLUDED_MAIL_MANAGER
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
2 #define INCLUDED_MAIL_MANAGER
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
3
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
4 typedef struct mail_queue {
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
5 unsigned int data;
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
6 struct mail_queue *next;
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
7 } MailQueue, *MailQueuePtr;
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
8
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
9 class MailManager {
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
10 public:
19
98bb1b2bb71e *** empty log message ***
gongo
parents: 3
diff changeset
11 /* constructor */
98bb1b2bb71e *** empty log message ***
gongo
parents: 3
diff changeset
12 MailManager(void);
20
31a7ff27ee20 *** empty log message ***
gongo
parents: 19
diff changeset
13 ~MailManager(void);
19
98bb1b2bb71e *** empty log message ***
gongo
parents: 3
diff changeset
14
3
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
15 /* functions */
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
16 int init_pool_mailQueue(int num);
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
17 int extend_pool_mailQueue(int num);
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
18 MailQueuePtr create_mail(unsigned int data);
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
19 MailQueuePtr get_free_mailQueue(unsigned int data);
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
20 void free_mailQueue(MailQueuePtr q);
20
31a7ff27ee20 *** empty log message ***
gongo
parents: 19
diff changeset
21 void destroy_mailQueue(void);
3
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
22
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
23 private:
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
24 /* variables */
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
25 MailQueuePtr mailQueuePool;
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
26 MailQueuePtr freeMailQueue;
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
27 };
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
28
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
29 extern MailQueuePtr append_mailQueue(MailQueuePtr list, MailQueuePtr q);
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
30
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
31 #endif