File ca/ca_configFns.c

  $Revision:

CA module: definitions of most functions.
Status: NOT REVIEWED, NOT TESTED
Author(s): Ambrose Magee

Included Files


Preprocessor definitions

#define DICT_INIT

Global Variable dictionary

dict_t dictionary[]
Visible in:  aa/aa.c
   ac/access_control.c
   ca/ca_configFns.c
Used in: ca_get_UpdSourceHandle()ca/ca_configFns.c
  ca_get_adminStrElement()ca/ca_configFns.c
  ca_get_boolean()ca/ca_configFns.c
  ca_get_dirlist()ca/ca_configFns.c
  ca_get_int()ca/ca_configFns.c
  ca_get_string()ca/ca_configFns.c
  ca_mandVarChk()ca/ca_configFns.c
  ca_readConfig()ca/ca_configFns.c
  ca_sanityChk()ca/ca_configFns.c
  ca_set_boolean()ca/ca_configFns.c
  ca_set_dirlist()ca/ca_configFns.c
  ca_set_int()ca/ca_configFns.c
  ca_writeNewValue()ca/ca_configFns.c

Global Variable Lock

pthread_mutex_t Lock
Included from /home/shane/code/RIP/include/ca_defs.h
Visible in:  aa/aa.c
   ac/access_control.c
   ca/ca_configFns.c
Used in: ca_get_adminIntElement()ca/ca_configFns.c
  ca_get_adminStrElement()ca/ca_configFns.c
  ca_get_boolean()ca/ca_configFns.c
  ca_get_dirlist()ca/ca_configFns.c
  ca_get_int()ca/ca_configFns.c
  ca_get_string()ca/ca_configFns.c
  ca_set_boolean()ca/ca_configFns.c
  ca_srchandle2Intelement()ca/ca_configFns.c
  ca_srchandle2Strelement()ca/ca_configFns.c

Global Function ca_UpdSrcHandle2IntElement()

int ca_UpdSrcHandle2IntElement ( ca_updDbSource_t* uh, int srcAttrib )
Prototyped in: /home/shane/code/RIP/include/ca_configFns.h
Calls: fprintf()

Global Function ca_UpdSrcHandle2StrElement()

char* ca_UpdSrcHandle2StrElement ( ca_updDbSource_t* uh, int srcAttrib )
Prototyped in: /home/shane/code/RIP/include/ca_configFns.h
Calls: UT_strdup_real(), fprintf(), puts()

Global Function ca_change_int_value()

int* ca_change_int_value ( char value[] )
Calls: UT_malloc_real(), sscanf()
Called by: ca_set_boolean()ca/ca_configFns.c
  ca_set_int()ca/ca_configFns.c

Global Function ca_getAllSources()

void ca_getAllSources ( GSList* sources )
Prototyped in: /home/shane/code/RIP/include/ca_configFns.h
Calls: printf()

Global Function ca_getAsource()

void ca_getAsource ( char* sourceName, GSList* sources )
Prototyped in: /home/shane/code/RIP/include/ca_configFns.h
Calls: printf(), puts(), strcmp()

Global Function ca_getConfig()

void ca_getConfig ( values_t confVars[], int size )
Prototyped in: /home/shane/code/RIP/include/ca_configFns.h
Calls: printf(), puts()

Global Function ca_getDatabase()

void ca_getDatabase ( ca_database_t db )
Prototyped in: /home/shane/code/RIP/include/ca_configFns.h
Calls: printf()

Global Function ca_getDictionary()

void ca_getDictionary ( dict_t woordenboek[], int size )
Prototyped in: /home/shane/code/RIP/include/ca_configFns.h
Calls: printf()

Global Function ca_getSource()

void ca_getSource ( ca_database_list_t src )
Prototyped in: /home/shane/code/RIP/include/ca_configFns.h
Calls: printf()

Global Function ca_getSourceDetails()

ca_dbSource_t* ca_getSourceDetails ( char* sourceName, GSList* sources )
Prototyped in: /home/shane/code/RIP/include/ca_configFns.h
Calls: strcasecmp()
Called by: ca_get_SourceHandleByName()ca/ca_configFns.c

Global Function ca_getStorageLocation()

int ca_getStorageLocation ( char* confVar, dict_t woordenboek[], int size )
Calls: fprintf(), strcmp()
Called by: ca_readConfig()ca/ca_configFns.c

Global Function ca_getType()

int ca_getType ( char* confVar, dict_t woordenboek[], int size )
Calls: strcmp()
Called by: ca_readConfig()ca/ca_configFns.c

Global Function ca_get_SourceHandleByName()

ca_SrcHdl_t* ca_get_SourceHandleByName ( char* srcName )
Prototyped in: /home/shane/code/RIP/include/ca_configFns.h
Calls: ca_getSourceDetails()ca/ca_configFns.c
References Variables: sourceList

Global Function ca_get_SourceHandleByPosition()

ca_SrcHdl_t* ca_get_SourceHandleByPosition ( int position )
Prototyped in: /home/shane/code/RIP/include/ca_configFns.h
Calls: g_slist_nth_data()
References Variables: sourceList

Global Function ca_get_UpdSourceHandle()

ca_updDbSource_t* ca_get_UpdSourceHandle ( int symbol )
Prototyped in: /home/shane/code/RIP/include/ca_configFns.h
Calls: fprintf(), strcmp()
References Variables: dictionaryca/ca_configFns.c
  confVars

Global Function ca_get_adminIntElement()

int ca_get_adminIntElement ( int symbol, int adminAttrib )
Prototyped in: /home/shane/code/RIP/include/ca_configFns.h
Calls: fprintf(), pthread_mutex_lock(), pthread_mutex_unlock(), puts()
Called by: AC_dbopen_admin()ac/access_control.c
References Variables: Lockca/ca_configFns.c
  confVars

Global Function ca_get_adminStrElement()

char* ca_get_adminStrElement ( int symbol, int adminAttrib )
Prototyped in: /home/shane/code/RIP/include/ca_configFns.h
Calls: UT_strdup_real(), fprintf(), pthread_mutex_lock(), pthread_mutex_unlock(), puts(), strcmp()
Called by: AC_dbopen_admin()ac/access_control.c
References Variables: Lockca/ca_configFns.c
  dictionaryca/ca_configFns.c
  confVars

Global Function ca_get_boolean()

int ca_get_boolean ( int symbol )
Prototyped in: /home/shane/code/RIP/include/ca_configFns.h
Calls: fprintf(), printf(), pthread_mutex_lock(), pthread_mutex_unlock(), strcmp()
References Variables: Lockca/ca_configFns.c
  dictionaryca/ca_configFns.c
  confVars

Global Function ca_get_dirlist()

char* ca_get_dirlist ( int symbol )
Prototyped in: /home/shane/code/RIP/include/ca_configFns.h
Calls: UT_strdup_real(), fprintf(), printf(), pthread_mutex_lock(), pthread_mutex_unlock(), strcmp()
References Variables: Lockca/ca_configFns.c
  dictionaryca/ca_configFns.c
  confVars

Global Function ca_get_int()

int ca_get_int ( int symbol )
Prototyped in: /home/shane/code/RIP/include/ca_configFns.h
Calls: fprintf(), printf(), pthread_mutex_lock(), pthread_mutex_unlock(), strcmp()
Called by: AC_decay()ac/access_control.c
References Variables: Lockca/ca_configFns.c
  dictionaryca/ca_configFns.c
  confVars

Global Function ca_get_string()

char* ca_get_string ( int symbol )
Prototyped in: /home/shane/code/RIP/include/ca_configFns.h
Calls: UT_strdup_real(), fprintf(), pthread_mutex_lock(), pthread_mutex_unlock(), strcmp()
References Variables: Lockca/ca_configFns.c
  dictionaryca/ca_configFns.c
  confVars

Global Function ca_mandVarChk()

int ca_mandVarChk ( void )
Prototyped in: /home/shane/code/RIP/include/ca_configFns.h
Calls: fprintf()
References Variables: dictionaryca/ca_configFns.c
  confVars, configError_1Str, configError_2Str, configWarningStr

Global Function ca_populateDictionary()

void ca_populateDictionary ( dict_t woordenboek[], int size )
Prototyped in: /home/shane/code/RIP/include/ca_configFns.h
Calls: stringPack()ca/ca_configFns.c
  fdwrap_fclose(), feof(), fgets(), fopen(), fprintf(), g_strchomp(), g_strfreev(), g_strsplit(), strcpy(), strlen(), strncmp()

Global Function ca_readConfig()

void ca_readConfig ( const char* configFile, values_t confVars[], int size )
Prototyped in: /home/shane/code/RIP/include/ca_configFns.h
Calls: ca_getStorageLocation()ca/ca_configFns.c
  ca_getType()ca/ca_configFns.c
  UT_calloc_real(), UT_free_real(), UT_malloc_real(), atoi(), feof(), fgets(), fopen(), fprintf(), fscanf(), g_strchomp(), g_strchug(), g_strfreev(), g_string_append(), g_string_new(), g_strsplit(), memcpy(), printf(), sscanf(), strcpy(), strlen(), strncmp()
References Variables: dictionaryca/ca_configFns.c

Global Function ca_sanityChk()

int ca_sanityChk ( values_t confVars[] )
Prototyped in: /home/shane/code/RIP/include/ca_configFns.h
Calls: fprintf()
References Variables: dictionaryca/ca_configFns.c
  configError_1Str, configError_2Str, configWarningStr

Global Function ca_set_boolean()

void ca_set_boolean ( int symbol )
Prototyped in: /home/shane/code/RIP/include/ca_configFns.h
Calls: ca_change_int_value()ca/ca_configFns.c
  fdwrap_fclose(), feof(), fflush(), fgets(), fopen(), fprintf(), fscanf(), g_string_assign(), printf(), pthread_mutex_lock(), pthread_mutex_unlock(), puts(), scanf(), sscanf(), strcmp(), strcpy(), strlen()
References Variables: Lockca/ca_configFns.c
  dictionaryca/ca_configFns.c
  globals, locals, tempFile, testFile

Global Function ca_set_dirlist()

void ca_set_dirlist ( int symbol )
Prototyped in: /home/shane/code/RIP/include/ca_configFns.h
Calls: UT_free_real(), UT_malloc_real(), exit(), fflush(), fprintf(), g_string_assign(), printf(), scanf(), strcmp(), strcpy()
References Variables: dictionaryca/ca_configFns.c
  globals, locals

Global Function ca_set_int()

void ca_set_int ( int symbol )
Prototyped in: /home/shane/code/RIP/include/ca_configFns.h
Calls: ca_change_int_value()ca/ca_configFns.c
  ca_writeNewValue()ca/ca_configFns.c
  fflush(), fprintf(), g_string_assign(), printf(), puts(), scanf(), sscanf(), strcmp()
References Variables: dictionaryca/ca_configFns.c
  globals, locals

Global Function ca_srchandle2Intelement()

int ca_srchandle2Intelement ( ca_SrcHdl_t* ah, int srcAttrib )
Prototyped in: /home/shane/code/RIP/include/ca_configFns.h
Calls: fprintf(), pthread_mutex_lock(), pthread_mutex_unlock()
References Variables: Lockca/ca_configFns.c

Global Function ca_srchandle2Strelement()

char* ca_srchandle2Strelement ( ca_SrcHdl_t* ah, int srcAttrib )
Prototyped in: /home/shane/code/RIP/include/ca_configFns.h
Calls: UT_strdup_real(), fprintf(), pthread_mutex_lock(), pthread_mutex_unlock(), puts()
References Variables: Lockca/ca_configFns.c

Global Function ca_writeNewValue()

int ca_writeNewValue ( int dictSymbol, char* newValue )
Prototyped in: /home/shane/code/RIP/include/ca_configFns.h
Calls: fdwrap_fclose(), feof(), fflush(), fgets(), fopen(), fprintf(), fscanf(), printf(), strcmp(), strcpy(), strlen(), unlink()
Called by: ca_set_int()ca/ca_configFns.c
References Variables: dictionaryca/ca_configFns.c
  tempFile, testFile

Global Function opSplitsen()

void opSplitsen ( FILE* filePtr, gchar** tokenArray )
Prototyped in: /home/shane/code/RIP/include/ca_configFns.h
Calls: stringPack()ca/ca_configFns.c
  feof(), fgets(), g_strchomp(), g_strsplit(), strcpy(), strlen(), strncmp()

Global Function stringPack()

void stringPack ( char* dest, const char* source )
Prototyped in: /home/shane/code/RIP/include/ca_configFns.h
Called by: ca_populateDictionary()ca/ca_configFns.c
  opSplitsen()ca/ca_configFns.c

Global Function testFunction()

void testFunction ( values_t array[] )
Calls: printf()

Local Function asctime_r()

static char* asctime_r ( const struct tm* __tm, char* __buf )
Included from: /usr/include/time.h
Calls: __posix_asctime_r()

Local Function ctime_r()

static char* ctime_r ( const time_t* __time, char* __buf )
Included from: /usr/include/time.h
Calls: __posix_ctime_r()

Local Function getlogin_r()

static int getlogin_r ( char* __name, int __len )
Included from: /usr/include/unistd.h
Calls: __posix_getlogin_r()

Local Function readdir_r()

static int readdir_r ( DIR* __dp, struct dirent* __ent, struct dirent** __res )
Included from: /usr/include/dirent.h
Calls: __posix_readdir_r()

Local Function sigwait()

static int sigwait ( const sigset_t* __setp, int* __signo )
Included from: /usr/include/signal.h
Calls: __posix_sigwait()

Local Function ttyname_r()

static int ttyname_r ( int __fildes, char* __buf, size_t __size )
Included from: /usr/include/unistd.h
Calls: __posix_ttyname_r()