/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 struct agent_s;
00077 AP_QUEUE_DECL_TEMPLATE(
00078     agent_queue,
00079     agent
00080     )
00081 
00082 AP_QUEUE_GENERIC_DECL_TEMPLATE(
00083     agent_queue,
00084     Search,
00085     struct agent_s*,
00086     int
00087     )
00088 
00089 AP_QUEUE_GENERIC_DECL_TEMPLATE(
00090     agent_queue,
00091     SearchName,
00092     struct agent_s*,
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 /* Agent variables */
00114 #include "interpreter_variable_data.h"
00115 AP_QUEUE_DECL_TEMPLATE(
00116     agent_variable_list,
00117     interpreter_variable_data)
00118 
00119 AP_QUEUE_GENERIC_DECL_TEMPLATE(
00120     agent_variable_list,
00121     Search,
00122     interpreter_variable_data_t*,
00123     char* )
00124 
00125 AP_QUEUE_GENERIC_DECL_TEMPLATE(
00126     agent_variable_list,
00127     Remove,
00128     int,
00129     char* )
00130 
00131 /* Mail Queue */
00132 AP_QUEUE_DECL_TEMPLATE(
00133     mail_queue,
00134     fipa_acl_message
00135     )
00136 
00137 AP_QUEUE_GENERIC_DECL_TEMPLATE(
00138     mail_queue,
00139     SearchReceivers,
00140     fipa_acl_message_p,
00141     char*
00142     )
00143 
00144 AP_QUEUE_GENERIC_DECL_TEMPLATE(
00145     mail_queue,
00146     RemoveName,
00147     int,
00148     char*
00149     )
00150 
00151 /* Mailbox Queue */
00152 AP_QUEUE_DECL_TEMPLATE(
00153     mailbox_queue,
00154     agent_mailbox
00155     )
00156 
00157 AP_QUEUE_GENERIC_DECL_TEMPLATE(
00158     mailbox_queue,
00159     SearchName,
00160     agent_mailbox_p,
00161     char*
00162     )
00163 
00164 AP_QUEUE_GENERIC_DECL_TEMPLATE(
00165     mailbox_queue,
00166     SearchID,
00167     agent_mailbox_p,
00168     int
00169     )
00170 
00171 AP_QUEUE_GENERIC_DECL_TEMPLATE(
00172     mailbox_queue,
00173     RemoveID,
00174     int,
00175     int
00176     )
00177 
00178 #endif

Generated on Mon Jun 23 16:01:09 2008 for Mobile-C by  doxygen 1.5.4