00001 /* SVN FILE INFO 00002 * $Revision: 174 $ : Last Committed Revision 00003 * $Date: 2008-06-24 10:50:29 -0700 (Tue, 24 Jun 2008) $ : Last Committed Date */ 00004 00005 #ifndef _AGENT_MAILBOX_H_ 00006 #define _AGENT_MAILBOX_H_ 00007 00008 typedef struct agent_mailbox_s 00009 { 00010 struct mail_queue_s* mail_queue; 00011 } agent_mailbox_t; 00012 typedef agent_mailbox_t* agent_mailbox_p; 00013 00014 agent_mailbox_p agent_mailbox_New(void); 00015 00016 agent_mailbox_p agent_mailbox_Copy(agent_mailbox_p src); 00017 00018 int agent_mailbox_Destroy(agent_mailbox_t* mailbox); 00019 00020 int agent_mailbox_Post(agent_mailbox_p mailbox, fipa_acl_message_t* message); 00021 00022 fipa_acl_message_t* agent_mailbox_Retrieve(agent_mailbox_p mailbox); 00023 00024 fipa_acl_message_t* agent_mailbox_WaitRetrieve(agent_mailbox_p mailbox); 00025 #endif