Cross reference for modules/ca/ca_configFns.c of index.

# File modules/ca/ca_configFns.c

     * This file contains the definitions of all	*
     * the functions.										*

## Included Files

- `#include <stdio.h>`

- `#include <stdlib.h>`

- `#include <glib.h>`

- `#include <string.h>`

- `#include <include/stubs.h>`

- `#include "modules/ca/ca_defs.h"`
  - `#include <pthread.h>`
  - `#include <glib.h>`

- `#include "modules/ca/ca_configFns.h"`
  - `#include "include/ca_defs.h"`

- `#include <unistd.h>`

## Global Variable Lock

`pthread_mutex_t Lock`

Included from | modules/ca/ca_defs.h
Visible in: |  | modules/ac/access_control.c
|  | modules/ca/ca_configFns.c
Used in: | ca_get_adminIntElement() | modules/ca/ca_configFns.c
| ca_get_adminStrElement() | modules/ca/ca_configFns.c
| ca_get_boolean() | modules/ca/ca_configFns.c
| ca_get_dirlist() | modules/ca/ca_configFns.c
| ca_get_int() | modules/ca/ca_configFns.c
| ca_get_string() | modules/ca/ca_configFns.c
| ca_set_boolean() | modules/ca/ca_configFns.c
| ca_set_string() | modules/ca/ca_configFns.c

## Global Variable newPort

`char newPort[16]`

Included from | modules/ca/ca_defs.h
Visible in: |  | modules/ac/access_control.c
|  | modules/ca/ca_configFns.c

## Global Function ca_change_int_value()

`int* ca_change_int_value ( char value[] )`

Calls: | fprintf(), malloc(), sscanf()
Called by: | ca_set_boolean() | modules/ca/ca_configFns.c
| ca_set_int() | modules/ca/ca_configFns.c

## Global Function ca_getAllSources()

`void ca_getAllSources ( GSList* sources )`

Prototyped in: | modules/ca/ca_configFns.h
Calls: | printf()

## Global Function ca_getAsource()

`void ca_getAsource ( char* sourceName, GSList* sources )`

Prototyped in: | modules/ca/ca_configFns.h
Calls: | printf(), puts(), strcmp()

## Global Function ca_getConfig()

`void ca_getConfig ( values_t confVars[], int size )`

Prototyped in: | modules/ca/ca_configFns.h
Calls: | printf(), puts()

## Global Function ca_getDatabase()

`void ca_getDatabase ( ca_database_t db )`

Prototyped in: | modules/ca/ca_configFns.h
Calls: | printf()

## Global Function ca_getDictionary()

`void ca_getDictionary ( dict_t woordenboek[], int size )`

Prototyped in: | modules/ca/ca_configFns.h
Calls: | printf()

## Global Function ca_getSource()

`void ca_getSource ( ca_database_list_t src )`

Prototyped in: | modules/ca/ca_configFns.h
Calls: | printf()

## Global Function ca_getSourceDetails()

`ca_dbSource_t* ca_getSourceDetails ( char* sourceName, GSList* sources )`

Prototyped in: | modules/ca/ca_configFns.h
Calls: | strcmp()
Called by: | ca_get_SourceHandleByName() | modules/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() | modules/ca/ca_configFns.c

## Global Function ca_getType()

`int ca_getType ( char* confVar, dict_t woordenboek[], int size )`

Calls: | strcmp()
Called by: | ca_readConfig() | modules/ca/ca_configFns.c

## Global Function ca_get_SourceHandleByName()

`ca_SrcHdl_t* ca_get_SourceHandleByName ( char* srcName )`

Prototyped in: | modules/ca/ca_configFns.h
Calls: | ca_getSourceDetails() | modules/ca/ca_configFns.c
References Variables: | sourceList

## Global Function ca_get_SourceHandleByPosition()

`ca_SrcHdl_t* ca_get_SourceHandleByPosition ( int position )`

Prototyped in: | modules/ca/ca_configFns.h
Calls: | g_slist_nth_data()
References Variables: | sourceList

## Global Function ca_get_adminIntElement()

`int ca_get_adminIntElement ( int symbol, int adminAttrib )`

Prototyped in: | modules/ca/ca_configFns.h
Calls: | fprintf(), pthread_mutex_lock(), pthread_mutex_unlock(), puts()
Called by: | AC_dbopen_admin() | modules/ac/access_control.c
References Variables: | Lock | modules/ca/ca_configFns.c
| confVars

## Global Function ca_get_adminStrElement()

`char* ca_get_adminStrElement ( int symbol, int adminAttrib )`

Prototyped in: | modules/ca/ca_configFns.h
Calls: | fprintf(), pthread_mutex_lock(), pthread_mutex_unlock(), puts(), strcmp(), strdup()
Called by: | AC_dbopen_admin() | modules/ac/access_control.c
References Variables: | Lock | modules/ca/ca_configFns.c
| confVars, dictionary

## Global Function ca_get_boolean()

`int ca_get_boolean ( int symbol )`

Prototyped in: | modules/ca/ca_configFns.h
Calls: | fprintf(), pthread_mutex_lock(), pthread_mutex_unlock(), strcmp()
References Variables: | Lock | modules/ca/ca_configFns.c
| confVars, dictionary

## Global Function ca_get_dirlist()

`char* ca_get_dirlist ( int symbol )`

Prototyped in: | modules/ca/ca_configFns.h
Calls: | fprintf(), pthread_mutex_lock(), pthread_mutex_unlock(), strcmp(), strdup()
References Variables: | Lock | modules/ca/ca_configFns.c
| confVars, dictionary

## Global Function ca_get_int()

`int ca_get_int ( int symbol )`

Prototyped in: | modules/ca/ca_configFns.h
Calls: | fprintf(), pthread_mutex_lock(), pthread_mutex_unlock(), strcmp()
References Variables: | Lock | modules/ca/ca_configFns.c
| confVars, dictionary

## Global Function ca_get_string()

`char* ca_get_string ( int symbol )`

Prototyped in: | modules/ca/ca_configFns.h
Calls: | fprintf(), pthread_mutex_lock(), pthread_mutex_unlock(), strcmp(), strdup()
References Variables: | Lock | modules/ca/ca_configFns.c
| confVars, dictionary

## Global Function ca_malloc()

`void ca_malloc ( char* someStr, int memSize )`

Calls: | exit(), fprintf(), malloc()

## Global Function ca_populateDictionary()

`void ca_populateDictionary ( dict_t woordenboek[], int size )`

Prototyped in: | modules/ca/ca_configFns.h
Calls: | stringPack() | modules/ca/ca_configFns.c
| fclose(), 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: | modules/ca/ca_configFns.h
Calls: | ca_getStorageLocation() | modules/ca/ca_configFns.c
| ca_getType() | modules/ca/ca_configFns.c
| atoi(), calloc(), fgets(), fopen(), fprintf(), free(), fscanf(), g_slist_append(), g_strchomp(), g_strchug(), g_strfreev(), g_strsplit(), malloc(), memcpy(), printf(), sscanf(), strcat(), strcpy(), strlen(), strncmp()
References Variables: | dictionary, sourceList

## Global Function ca_set_boolean()

`void ca_set_boolean ( int symbol )`

Prototyped in: | modules/ca/ca_configFns.h
Calls: | ca_change_int_value() | modules/ca/ca_configFns.c
| fclose(), fflush(), fgets(), fopen(), fprintf(), fscanf(), printf(), pthread_mutex_lock(), pthread_mutex_unlock(), puts(), scanf(), sscanf(), strcmp(), strcpy(), strlen()
References Variables: | Lock | modules/ca/ca_configFns.c
| dictionary, globals, locals, tempFile, testFile

## Global Function ca_set_dirlist()

`void ca_set_dirlist ( int symbol )`

Prototyped in: | modules/ca/ca_configFns.h
Calls: | exit(), fflush(), fprintf(), free(), malloc(), printf(), scanf(), strcmp(), strcpy()
References Variables: | dictionary, globals, locals

## Global Function ca_set_int()

`void ca_set_int ( int symbol )`

Prototyped in: | modules/ca/ca_configFns.h
Calls: | ca_change_int_value() | modules/ca/ca_configFns.c
| ca_writeNewValue() | modules/ca/ca_configFns.c
| calloc(), exit(), fflush(), fprintf(), printf(), puts(), scanf(), sscanf(), strcmp(), strcpy()
References Variables: | dictionary, globals, locals

## Global Function ca_set_string()

`void ca_set_string ( int symbol )`

Prototyped in: | modules/ca/ca_configFns.h
Calls: | exit(), fflush(), fprintf(), free(), gets(), malloc(), printf(), pthread_mutex_lock(), pthread_mutex_unlock(), strcmp(), strcpy()
References Variables: | Lock | modules/ca/ca_configFns.c
| dictionary, globals, locals

## Global Function ca_srchandle2Intelement()

`int ca_srchandle2Intelement ( ca_SrcHdl_t* ah, int srcAttrib )`

Prototyped in: | modules/ca/ca_configFns.h
Calls: | fprintf()

## Global Function ca_srchandle2Strelement()

`char* ca_srchandle2Strelement ( ca_SrcHdl_t* ah, int srcAttrib )`

Prototyped in: | modules/ca/ca_configFns.h
Calls: | fprintf(), puts(), strdup()

## Global Function ca_writeNewValue()

`int ca_writeNewValue ( int dictSymbol, char* newValue )`

Prototyped in: | modules/ca/ca_configFns.h
Calls: | fclose(), fflush(), fgets(), fopen(), fprintf(), fscanf(), printf(), strcmp(), strcpy(), strlen(), unlink()
Called by: | ca_set_int() | modules/ca/ca_configFns.c
References Variables: | dictionary, tempFile, testFile

## Global Function opSplitsen()

`void opSplitsen ( FILE* filePtr, gchar** tokenArray )`

Prototyped in: | modules/ca/ca_configFns.h
Calls: | stringPack() | modules/ca/ca_configFns.c
| fgets(), g_strchomp(), g_strsplit(), strcpy(), strlen(), strncmp()

## Global Function stringPack()

`void stringPack ( char* dest, const char* source )`

Prototyped in: | modules/ca/ca_configFns.h
Called by: | ca_populateDictionary() | modules/ca/ca_configFns.c
| opSplitsen() | modules/ca/ca_configFns.c

## Global Function testFunction()

`void testFunction ( values_t array[] )`

Calls: | printf()