/home/dko/projects/mobilec/trunk/src/include/agent_task.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 _AGENT_TASK_H_
00033 #define _AGENT_TASK_H_
00034 #include "interpreter_variable_data.h"
00035 #include "data_structures.h"
00036 
00037 typedef struct agent_task_s{
00038  
00039   /* boolean stand-in that will dictate whether the task has been completed */
00040   int task_completed;
00041   int number_of_elements;
00042   int size_of_element_array;
00043   int persistent;
00044   int init_agent_status;
00045 
00046   char* var_name;
00047   char* server_name;
00048   char* code_id;
00049 
00050   /* data elements */
00051   interpreter_variable_data_t* agent_return_data;
00052   struct agent_variable_list_s* agent_variable_list;
00053   char** saved_variables;
00054   int num_saved_variables;
00055 
00056 } agent_task_t;
00057 
00058 typedef agent_task_t* agent_task_p;
00059 
00060 agent_task_p
00061 agent_task_New(void);
00062 
00063 agent_task_p 
00064 agent_task_Copy(agent_task_p task);
00065 
00066 int
00067 agent_task_Destroy(agent_task_p agent_task);
00068 #endif

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