/home/dko/projects/mobilec/trunk/src/include/data_structures.h

Go to the documentation of this file.
00001 /*[
00002  * Copyright (c) 2007 Integration Engineering Laboratory
00003                       University of California, Davis
00004  *
00005  * Permission to use, copy, and distribute this software and its
00006  * documentation for any purpose with or without fee is hereby granted,
00007  * provided that the above copyright notice appear in all copies and
00008  * that both that copyright notice and this permission notice appear
00009  * in supporting documentation.
00010  *
00011  * Permission to modify the software is granted, but not the right to
00012  * distribute the complete modified source code.  Modifications are to
00013  * be distributed as patches to the released version.  Permission to
00014  * distribute binaries produced by compiling modified sources is granted,
00015  * provided you
00016  *   1. distribute the corresponding source modifications from the
00017  *    released version in the form of a patch file along with the binaries,
00018  *   2. add special version identification to distinguish your version
00019  *    in addition to the base release version number,
00020  *   3. provide your name and address as the primary contact for the
00021  *    support of your modified version, and
00022  *   4. retain our contact information in regard to use of the base
00023  *    software.
00024  * Permission to distribute the released version of the source code along
00025  * with corresponding source modifications in the form of a patch file is
00026  * granted with same provisions 2 through 4 for binary distributions.
00027  *
00028  * This software is provided "as is" without express or implied warranty
00029  * to the extent permitted by applicable law.
00030 ]*/
00031 
00032 #ifndef _AP_MODULES_H_
00033 #define _AP_MODULES_H_
00034 #include "ap_queue_template.h"
00035 #include "../mc_list/list.h"
00036 struct mc_platform_s;
00037 /* Connection Queue */
00038 #include "connection.h"
00039 /* Fipa mailbox */
00040 #include "fipa_acl.h"
00041 /* Agent Mailbox */
00042 #include "agent_mailbox.h"
00043 AP_QUEUE_DECL_TEMPLATE(
00044     connection_queue, /* name */
00045     connection /* node_type */
00046     )
00047 
00048 AP_QUEUE_GENERIC_DECL_TEMPLATE(
00049     connection_queue,
00050     Search,
00051     connection_t*,
00052     int
00053     )
00054 
00055 AP_QUEUE_GENERIC_DECL_TEMPLATE(
00056     connection_queue,
00057     Remove,
00058     int,
00059     int
00060     )
00061 
00062 int 
00063 connection_queue_Print(connection_queue_p clist);
00064 
00065 /* Message Queue */
00066 #include"message.h"
00067 AP_QUEUE_DECL_TEMPLATE(
00068     message_queue,
00069     message
00070     )
00071 
00072 int 
00073 message_queue_Print(message_queue_p queue);
00074 
00075 /* Agent Queue */
00076 #include"agent.h"
00077 AP_QUEUE_DECL_TEMPLATE(
00078     agent_queue,
00079     agent
00080     )
00081 
00082 AP_QUEUE_GENERIC_DECL_TEMPLATE(
00083     agent_queue,
00084     Search,
00085     agent_t*,
00086     int
00087     )
00088 
00089 AP_QUEUE_GENERIC_DECL_TEMPLATE(
00090     agent_queue,
00091     SearchName,
00092     agent_t*,
00093     char*
00094     )
00095 
00096 AP_QUEUE_GENERIC_DECL_TEMPLATE(
00097     agent_queue,
00098     Remove,
00099     int,
00100     int
00101     )
00102 
00103 AP_QUEUE_GENERIC_DECL_TEMPLATE(
00104     agent_queue,
00105     RemoveName,
00106     int,
00107     char*
00108     )
00109 
00110 int
00111 agent_queue_Print(agent_queue_p queue);
00112 
00113 /* Mail Queue */
00114 AP_QUEUE_DECL_TEMPLATE(
00115     mail_queue,
00116     fipa_acl_message
00117     )
00118 
00119 AP_QUEUE_GENERIC_DECL_TEMPLATE(
00120     mail_queue,
00121     SearchReceivers,
00122     fipa_acl_message_p,
00123     char*
00124     )
00125 
00126 AP_QUEUE_GENERIC_DECL_TEMPLATE(
00127     mail_queue,
00128     RemoveName,
00129     int,
00130     char*
00131     )
00132 
00133 /* Mailbox Queue */
00134 AP_QUEUE_DECL_TEMPLATE(
00135     mailbox_queue,
00136     agent_mailbox
00137     )
00138 
00139 AP_QUEUE_GENERIC_DECL_TEMPLATE(
00140     mailbox_queue,
00141     SearchName,
00142     agent_mailbox_p,
00143     char*
00144     )
00145 
00146 AP_QUEUE_GENERIC_DECL_TEMPLATE(
00147     mailbox_queue,
00148     SearchID,
00149     agent_mailbox_p,
00150     int
00151     )
00152 
00153 AP_QUEUE_GENERIC_DECL_TEMPLATE(
00154     mailbox_queue,
00155     RemoveID,
00156     int,
00157     int
00158     )
00159 
00160 #endif

Generated on Fri May 16 14:49:54 2008 for Mobile-C by  doxygen 1.5.4