00001 /* SVN FILE INFO 00002 * $Revision: 519 $ : Last Committed Revision 00003 * $Date: 2010-06-11 14:26:03 -0700 (Fri, 11 Jun 2010) $ : Last Committed Date */ 00004 /*[ 00005 * Copyright (c) 2007 Integration Engineering Laboratory 00006 University of California, Davis 00007 * 00008 * Permission to use, copy, and distribute this software and its 00009 * documentation for any purpose with or without fee is hereby granted, 00010 * provided that the above copyright notice appear in all copies and 00011 * that both that copyright notice and this permission notice appear 00012 * in supporting documentation. 00013 * 00014 * Permission to modify the software is granted, but not the right to 00015 * distribute the complete modified source code. Modifications are to 00016 * be distributed as patches to the released version. Permission to 00017 * distribute binaries produced by compiling modified sources is granted, 00018 * provided you 00019 * 1. distribute the corresponding source modifications from the 00020 * released version in the form of a patch file along with the binaries, 00021 * 2. add special version identification to distinguish your version 00022 * in addition to the base release version number, 00023 * 3. provide your name and address as the primary contact for the 00024 * support of your modified version, and 00025 * 4. retain our contact information in regard to use of the base 00026 * software. 00027 * Permission to distribute the released version of the source code along 00028 * with corresponding source modifications in the form of a patch file is 00029 * granted with same provisions 2 through 4 for binary distributions. 00030 * 00031 * This software is provided "as is" without express or implied warranty 00032 * to the extent permitted by applicable law. 00033 ]*/ 00034 00035 #ifndef _AGENT_LIB_H_ 00036 #define _AGENT_LIB_H_ 00037 EXPORTCH int MC_AclGetProtocol_chdl(void* varg); 00038 00039 EXPORTCH char* MC_AclGetConversationID_chdl(void *varg); 00040 00041 EXPORTCH int MC_AclGetPerformative_chdl(void *varg); 00042 00043 EXPORTCH int MC_AclGetSender_chdl(void *varg); 00044 00045 EXPORTCH char* MC_AclGetContent_chdl(void *varg); 00046 00047 EXPORTCH int 00048 MC_AclDestroy_chdl(void* varg); 00049 00050 EXPORTCH void* 00051 MC_AclNew_chdl(void* varg); 00052 00053 EXPORTCH int 00054 MC_AclPost_chdl(void* varg); 00055 00056 EXPORTCH void* 00057 MC_AclReply_chdl(void* varg); 00058 00059 EXPORTCH void* 00060 MC_AclRetrieve_chdl(void* varg); 00061 00062 EXPORTCH int 00063 MC_AclSend_chdl(void* varg); 00064 00065 EXPORTCH void* 00066 MC_AclWaitRetrieve_chdl(void *varg); 00067 00068 /* BEGIN Acl helper functions */ 00069 00070 EXPORTCH int 00071 MC_AclSetProtocol_chdl(void *varg); 00072 00073 EXPORTCH int 00074 MC_AclSetConversationID_chdl(void *varg); 00075 00076 EXPORTCH int 00077 MC_AclSetPerformative_chdl(void *varg); 00078 00079 EXPORTCH int 00080 MC_AclSetSender_chdl(void *varg); 00081 00082 EXPORTCH int 00083 MC_AclAddReceiver_chdl(void *varg); 00084 00085 EXPORTCH int 00086 MC_AclAddReplyTo_chdl(void *varg); 00087 00088 EXPORTCH int 00089 MC_AclSetContent_chdl(void *varg); 00090 /* END Acl helper functions */ 00091 00092 EXPORTCH int 00093 MC_AddAgent_chdl(void *varg); 00094 00095 EXPORTCH int 00096 MC_AgentAddTask_chdl(void *varg); 00097 00098 EXPORTCH const void* 00099 MC_AgentVariableRetrieve_chdl(void* varg); 00100 00101 EXPORTCH int 00102 MC_AgentVariableSave_chdl(void *varg); 00103 00104 EXPORTCH int 00105 MC_Barrier_chdl(void *varg); 00106 00107 EXPORTCH int 00108 MC_BarrierDelete_chdl(void *varg); 00109 00110 EXPORTCH int 00111 MC_BarrierInit_chdl(void *varg); 00112 00113 EXPORTCH int 00114 MC_CallAgentFunc_chdl(void *varg); 00115 00116 EXPORTCH MCAgent_t 00117 MC_ComposeAgent_chdl(void *varg); 00118 00119 EXPORTCH MCAgent_t 00120 MC_ComposeAgentWithWorkgroup_chdl(void *varg); 00121 00122 EXPORTCH MCAgent_t 00123 MC_ComposeAgentFromFile_chdl(void *varg); 00124 00125 EXPORTCH MCAgent_t 00126 MC_ComposeAgentFromFileWithWorkgroup_chdl(void *varg); 00127 00128 EXPORTCH int 00129 MC_CondBroadcast_chdl(void *varg); 00130 00131 EXPORTCH int 00132 MC_CondWait_chdl(void *varg); 00133 00134 EXPORTCH int 00135 MC_CondReset_chdl(void *varg); 00136 00137 EXPORTCH int 00138 MC_CondSignal_chdl(void *varg); 00139 00140 EXPORTCH int 00141 MC_DeleteAgent_chdl(void *varg); 00142 00143 EXPORTCH int 00144 MC_DeleteAgentWG_chdl(void *varg); 00145 00146 EXPORTCH int 00147 MC_DeregisterService_chdl(void *varg); 00148 00149 EXPORTCH int 00150 MC_DestroyServiceSearchResult_chdl(void* varg); 00151 00152 EXPORTCH int 00153 MC_End_chdl(void *varg); 00154 00155 EXPORTCH MCAgent_t 00156 MC_FindAgentByID_chdl(void *varg); 00157 00158 EXPORTCH MCAgent_t 00159 MC_FindAgentByName_chdl(void *varg); 00160 00161 #if 0 00162 /* FIXME */ 00163 #ifndef _WIN32 00164 EXPORTCH time_t 00165 #else 00166 EXPORTCH SYSTEMTIME 00167 #endif 00168 MC_GetAgentArrivalTime_chdl(void *varg); 00169 #endif 00170 00171 EXPORTCH int 00172 MC_GetAgentID_chdl(void *varg); 00173 00174 EXPORTCH char* 00175 MC_GetAgentName_chdl(void *varg); 00176 00177 EXPORTCH int 00178 MC_GetAgentNumTasks_chdl(void *varg); 00179 00180 EXPORTCH char * 00181 MC_GetAgentXMLString_chdl(void *varg); 00182 00183 #ifndef _WIN32 00184 EXPORTCH int 00185 MC_GetTimeOfDay_chdl(void *varg); 00186 #endif 00187 00188 EXPORTCH int 00189 MC_HaltAgency_chdl(void *varg); 00190 00191 EXPORTCH int 00192 MC_PrintAgentCode_chdl(void *varg); 00193 00194 EXPORTCH int 00195 MC_MigrateAgent_chdl(void *varg); 00196 00197 EXPORTCH int 00198 MC_MutexLock_chdl(void *varg); 00199 00200 EXPORTCH int 00201 MC_MutexUnlock_chdl(void *varg); 00202 00203 EXPORTCH int 00204 MC_RegisterService_chdl(void *varg); 00205 00206 EXPORTCH int 00207 MC_ResumeAgency_chdl(void *varg); 00208 00209 EXPORTCH MCAgent_t 00210 MC_RetrieveAgent_chdl(void *varg); 00211 00212 EXPORTCH char * 00213 MC_RetrieveAgentCode_chdl(void *varg); 00214 00215 EXPORTCH int 00216 MC_SearchForService_chdl(void *varg); 00217 00218 EXPORTCH int 00219 MC_SemaphorePost_chdl(void *varg); 00220 00221 EXPORTCH int 00222 MC_SemaphoreWait_chdl(void *varg); 00223 00224 EXPORTCH int 00225 MC_SendSteerCommand_chdl(void *varg); 00226 00227 EXPORTCH int 00228 MC_TerminateAgent_chdl(void *varg); 00229 00230 EXPORTCH int 00231 MC_TerminateAgentWG_chdl(void *varg); 00232 00233 EXPORTCH int 00234 MC_GetAgentStatus_chdl(void *varg); 00235 00236 EXPORTCH int 00237 MC_SaveData_chdl(void* varg); 00238 00239 EXPORTCH int 00240 MC_SendAgentMigrationMessage_chdl(void *varg); 00241 00242 EXPORTCH int 00243 MC_SendAgentMigrationMessageFile_chdl(void *varg); 00244 00245 EXPORTCH int 00246 MC_SetAgentStatus_chdl(void *varg); 00247 00248 EXPORTCH int 00249 MC_SetDefaultAgentStatus_chdl(void *varg); 00250 00251 EXPORTCH int 00252 MC_SyncDelete_chdl(void *varg); 00253 00254 EXPORTCH int 00255 MC_SyncInit_chdl(void *varg); 00256 00257 #endif 00258