constants.h

Go to the documentation of this file.
00001 #ifndef __CONST_H
00002 #define __CONST_H
00003 
00004 #define HASH_SIZE      1000
00005 // used by hash
00006 #define INITIAL_CAPACITY        100
00007 
00008 
00009 #define MAXFILTERS                      20 ///< maximum number of filters allowed
00010 #define MAXINPSTREAMS           MAXFILTERS
00011 #define MAXOUTSTREAMS           MAXFILTERS
00012 #define MAXSTREAMS                      ((MAXINPSTREAMS+MAXOUTSTREAMS)/2)*MAXFILTERS
00013 #define MAXRESOURCES            5 ///< maximum number of resources a host can have
00014 #define MAXHOSTS                        40 ///< maximum number of hosts the system can have
00015 #define MAXINSTANCES            40 ///< maximum number of instances a filter can have
00016 
00017 
00018 #define MINSIZE                         100 //< buffer minimum size for pack and unpacks
00019 
00020 #define PROD_CONS_SIZE 1000 ///< 
00021 #define ID_LIST_INIT_SIZE 10
00022 
00023 /* String lengths ******************************/
00024 // all lengths DO NOT include the terminating \0
00025 // so the variable should be declared as varname[MAX...+1]
00026 #define MAX_CWD_LENGTH          500 ///< max cwd string length
00027 #define MAX_XNAME_LENGTH        100 ///< max executable name
00028 #define MAX_COM_LENGTH          (MAX_CWD_LENGTH+MAX_XNAME_LENGTH+1) ///< max command length
00029 #define MAX_FNAME_LENGTH                50 ///< max filtername length
00030 #define MAX_LBL_LENGTH          1000 ///< max label length
00031 #define MAX_LNAME_LENGTH                (MAX_FNAME_LENGTH+6) ///< max libname length, +6 for the lib and .so
00032 #define MAX_HNAME_LENGTH                100 ///< max hostname length
00033 #define MAX_PTNAME_LENGTH       50 ///< max port name length
00034 #define MAX_PLNAME_LENGTH       50 ///< max policy name length
00035 #define MAX_SNAME_LENGTH                50 ///< max stream name length
00036 #define MAX_RNAME_LENGTH        50 ///< max resource name length
00037 #define MAX_IDIR_LENGTH         500 ///< max instrumentation directory length
00038 /***********************************************/
00039 
00040 
00041 // Error Codes:
00042 #define E_TASK_EXISTS -2           ///< task already exists
00043 #define E_TASK_NOT_RUNNING      -3 ///< task already finished or still created
00044 #define E_NO_SUCH_TASK -4               ///< Task dosn't exist
00045 #define E_COULD_NOT_RECOVER_TASK -5 ///< error opening/reading task serialization file
00046 
00047 #define MANAGER_MAIN_RECV_TIMEOUT 1 ///< appendWork() main loop trecv timeout, in seconds
00048 
00049 #endif

Generated on Tue Jan 17 19:18:37 2006 for Void by  doxygen 1.4.6