00001 00002 #ifndef _AGENT_MAILBOX_H_ 00003 #define _AGENT_MAILBOX_H_ 00004 00005 typedef struct agent_mailbox_s 00006 { 00007 struct mail_queue_s* mail_queue; 00008 } agent_mailbox_t; 00009 typedef agent_mailbox_t* agent_mailbox_p; 00010 00011 agent_mailbox_p agent_mailbox_New(void); 00012 00013 int agent_mailbox_Destroy(agent_mailbox_t* mailbox); 00014 00015 int agent_mailbox_Post(agent_mailbox_p mailbox, fipa_acl_message_t* message); 00016 00017 fipa_acl_message_t* agent_mailbox_Retrieve(agent_mailbox_p mailbox); 00018 00019 fipa_acl_message_t* agent_mailbox_WaitRetrieve(agent_mailbox_p mailbox); 00020 #endif