/home/dko/projects/mobilec/trunk/src/include/interpreter_variable_data.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_RETURN_DATA_H_
00033 #define _AGENT_RETURN_DATA_H_
00034 #include <ch.h>
00035 
00036 struct agent_s;
00037 /* struct interpreter_variable_data_s */
00038 struct interpreter_variable_data_s {
00039     char* name;
00040     int size; /* Size of the 'data' member */
00041     ChType_t data_type;
00042     int array_dim;
00043     int *array_extent; 
00044     void *data;
00045 };
00046 
00047 typedef struct interpreter_variable_data_s interpreter_variable_data_t;
00048 typedef interpreter_variable_data_t* interpreter_variable_data_p;
00049 
00050 interpreter_variable_data_p
00051 interpreter_variable_data_New(void);
00052 
00053 interpreter_variable_data_p
00054 interpreter_variable_data_Copy(interpreter_variable_data_p src);
00055 
00056 interpreter_variable_data_p
00057 interpreter_variable_data_InitializeFromAgent( struct agent_s* agent );
00058 
00059 interpreter_variable_data_p
00060 interpreter_variable_data_Initialize(struct agent_s* agent, const char* varname);
00061 
00062 int
00063 interpreter_variable_data_Destroy( interpreter_variable_data_p agent_return_data );
00064 
00065 #endif

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