00001 /* SVN FILE INFO 00002 * $Revision: 446 $ : Last Committed Revision 00003 * $Date: 2010-03-16 15:12:24 -0700 (Tue, 16 Mar 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 00038 MC_AclDestroy_chdl(void* varg); 00039 00040 EXPORTCH void* 00041 MC_AclNew_chdl(void* varg); 00042 00043 EXPORTCH void* 00044 MC_AclPost_chdl(void* varg); 00045 00046 EXPORTCH void* 00047 MC_AclReply_chdl(void* varg); 00048 00049 EXPORTCH void* 00050 MC_AclRetrieve_chdl(void* varg); 00051 00052 EXPORTCH int 00053 MC_AclSend_chdl(void* varg); 00054 00055 EXPORTCH void* 00056 MC_AclWaitRetrieve_chdl(void *varg); 00057 00058 /* BEGIN Acl helper functions */ 00059 00060 EXPORTCH void* 00061 MC_AclSetProtocol_chdl(void *varg); 00062 00063 EXPORTCH void* 00064 MC_AclSetConversationID_chdl(void *varg); 00065 00066 EXPORTCH void* 00067 MC_AclSetPerformative_chdl(void *varg); 00068 00069 EXPORTCH void* 00070 MC_AclSetSender_chdl(void *varg); 00071 00072 EXPORTCH void* 00073 MC_AclAddReceiver_chdl(void *varg); 00074 00075 EXPORTCH void* 00076 MC_AclAddReplyTo_chdl(void *varg); 00077 00078 EXPORTCH void* 00079 MC_AclSetContent_chdl(void *varg); 00080 /* END Acl helper functions */ 00081 00082 EXPORTCH int 00083 MC_AddAgent_chdl(void *varg); 00084 00085 EXPORTCH const void* 00086 MC_AgentVariableRetrieve_chdl(void* varg); 00087 00088 EXPORTCH int 00089 MC_AgentVariableSave_chdl(void *varg); 00090 00091 EXPORTCH int 00092 MC_Barrier_chdl(void *varg); 00093 00094 EXPORTCH int 00095 MC_BarrierDelete_chdl(void *varg); 00096 00097 EXPORTCH int 00098 MC_BarrierInit_chdl(void *varg); 00099 00100 EXPORTCH int 00101 MC_CallAgentFunc_chdl(void *varg); 00102 00103 EXPORTCH int 00104 MC_ComposeAgent_chdl(void *varg); 00105 00106 EXPORTCH int 00107 MC_ComposeAgentS_chdl(void *varg); 00108 00109 EXPORTCH int 00110 MC_CondBroadcast_chdl(void *varg); 00111 00112 EXPORTCH int 00113 MC_CondWait_chdl(void *varg); 00114 00115 EXPORTCH int 00116 MC_CondReset_chdl(void *varg); 00117 00118 EXPORTCH int 00119 MC_CondSignal_chdl(void *varg); 00120 00121 EXPORTCH int 00122 MC_DeleteAgent_chdl(void *varg); 00123 00124 EXPORTCH int 00125 MC_DeleteAgentWG_chdl(void *varg); 00126 00127 EXPORTCH int 00128 MC_DeregisterService_chdl(void *varg); 00129 00130 EXPORTCH int 00131 MC_DestroyServiceSearchResult_chdl(void* varg); 00132 00133 EXPORTCH int 00134 MC_End_chdl(void *varg); 00135 00136 EXPORTCH MCAgent_t 00137 MC_FindAgentByID_chdl(void *varg); 00138 00139 EXPORTCH MCAgent_t 00140 MC_FindAgentByName_chdl(void *varg); 00141 00142 #if 0 00143 /* FIXME */ 00144 #ifndef _WIN32 00145 EXPORTCH time_t 00146 #else 00147 EXPORTCH SYSTEMTIME 00148 #endif 00149 MC_GetAgentArrivalTime_chdl(void *varg); 00150 #endif 00151 00152 EXPORTCH int 00153 MC_GetAgentID_chdl(void *varg); 00154 00155 EXPORTCH char* 00156 MC_GetAgentName_chdl(void *varg); 00157 00158 EXPORTCH int 00159 MC_GetAgentNumTasks_chdl(void *varg); 00160 00161 EXPORTCH char * 00162 MC_GetAgentXMLString_chdl(void *varg); 00163 00164 #ifndef _WIN32 00165 EXPORTCH int 00166 MC_GetTimeOfDay_chdl(void *varg); 00167 #endif 00168 00169 EXPORTCH int 00170 MC_HaltAgency_chdl(void *varg); 00171 00172 EXPORTCH int 00173 MC_PrintAgentCode_chdl(void *varg); 00174 00175 EXPORTCH int 00176 MC_MigrateAgent_chdl(void *varg); 00177 00178 EXPORTCH int 00179 MC_MutexLock_chdl(void *varg); 00180 00181 EXPORTCH int 00182 MC_MutexUnlock_chdl(void *varg); 00183 00184 EXPORTCH int 00185 MC_RegisterService_chdl(void *varg); 00186 00187 EXPORTCH int 00188 MC_ResumeAgency_chdl(void *varg); 00189 00190 EXPORTCH MCAgent_t 00191 MC_RetrieveAgent_chdl(void *varg); 00192 00193 EXPORTCH char * 00194 MC_RetrieveAgentCode_chdl(void *varg); 00195 00196 EXPORTCH char * 00197 MC_SearchForService_chdl(void *varg); 00198 00199 EXPORTCH int 00200 MC_SemaphorePost_chdl(void *varg); 00201 00202 EXPORTCH int 00203 MC_SemaphoreWait_chdl(void *varg); 00204 00205 EXPORTCH int 00206 MC_SendSteerCommand_chdl(void *varg); 00207 00208 EXPORTCH int 00209 MC_TerminateAgent_chdl(void *varg); 00210 00211 EXPORTCH int 00212 MC_TerminateAgentWG_chdl(void *varg); 00213 00214 EXPORTCH int 00215 MC_GetAgentStatus_chdl(void *varg); 00216 00217 EXPORTCH int 00218 MC_SaveData_chdl(void* varg); 00219 00220 EXPORTCH int 00221 MC_SendAgentMigrationMessage_chdl(void *varg); 00222 00223 EXPORTCH int 00224 MC_SendAgentMigrationMessageFile_chdl(void *varg); 00225 00226 EXPORTCH int 00227 MC_SetAgentStatus_chdl(void *varg); 00228 00229 EXPORTCH int 00230 MC_SetDefaultAgentStatus_chdl(void *varg); 00231 00232 EXPORTCH int 00233 MC_SyncDelete_chdl(void *varg); 00234 00235 EXPORTCH int 00236 MC_SyncInit_chdl(void *varg); 00237 00238 #endif 00239