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

# File modules/ca/ca_sourceLoader.c

      $Revision:

      CA module: definitions of functions that read a file of databases and
                 sources.

      Status: NOT REVIEWED, NOT TESTED

      Author(s):       Ambrose Magee

## Included Files

- `#include <stdio.h>`

- `#include <stdlib.h>`

- `#include <glib.h>`

- `#include <string.h>`

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

- `#include <unistd.h>`

- `#include "modules/ca/ca_configFns.h"`
  - `#include "modules/ca/ca_defs.h"`
    - `#include <pthread.h>`
    - `#include <glib.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
|  | modules/ca/ca_initFn.c
|  | modules/ca/ca_sanityCheck.c
|  | modules/ca/ca_sourceLoader.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
| ca_srchandle2Intelement() | modules/ca/ca_configFns.c
| ca_srchandle2Strelement() | 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
|  | modules/ca/ca_initFn.c
|  | modules/ca/ca_sanityCheck.c
|  | modules/ca/ca_sourceLoader.c

## Global Function ca_getAllDatabases()

`void ca_getAllDatabases ( GSList* databases )`

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

## Global Function ca_getAllMirrors()

`void ca_getAllMirrors ( GSList* mirrors )`

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

## Global Function ca_getDbHandleByName()

`ca_database_t* ca_getDbHandleByName ( char* databaseNameStr )`

Prototyped in: | modules/ca/ca_configFns.h
Calls: | strcmp()
Called by: | ca_parseSrcLine() | modules/ca/ca_sourceLoader.c
References Variables: | dbList

## Global Function ca_getNrtmHandleByName()

`ca_mirror_t* ca_getNrtmHandleByName ( char* nrtmNameStr )`

Prototyped in: | modules/ca/ca_configFns.h
Calls: | strcmp()
Called by: | ca_parseSrcLine() | modules/ca/ca_sourceLoader.c
References Variables: | nrtmList

## Global Function ca_parseDbLine()

`void ca_parseDbLine ( char* lineStr, ca_database_t* dbStructPtr )`

Calls: | atoi(), fprintf(), g_strchomp(), g_strchug(), g_strfreev(), g_strsplit(), strcmp(), strcpy()
Called by: | ca_readSources() | modules/ca/ca_sourceLoader.c

## Global Function ca_parseNrtmLine()

`void ca_parseNrtmLine ( char* lineStr, ca_mirror_t* mrStructPtr )`

Calls: | atoi(), fprintf(), g_strchomp(), g_strchug(), g_strfreev(), g_strsplit(), strcmp(), strcpy()
Called by: | ca_readSources() | modules/ca/ca_sourceLoader.c

## Global Function ca_parseSrcLine()

`void ca_parseSrcLine ( char* lineStr, ca_dbSource_t* srcStructPtr )`

Calls: | ca_getDbHandleByName() | modules/ca/ca_sourceLoader.c
| ca_getNrtmHandleByName() | modules/ca/ca_sourceLoader.c
| atoi(), fprintf(), g_strchomp(), g_strchug(), g_strfreev(), g_strsplit(), strcmp(), strcpy()
Called by: | ca_readSources() | modules/ca/ca_sourceLoader.c

## Global Function ca_readSources()

`void ca_readSources ( const char* sourcesDefFile, values_t confVars[] )`

Prototyped in: | modules/ca/ca_configFns.h
Calls: | ca_parseDbLine() | modules/ca/ca_sourceLoader.c
| ca_parseNrtmLine() | modules/ca/ca_sourceLoader.c
| ca_parseSrcLine() | modules/ca/ca_sourceLoader.c
| calloc(), fclose(), fgets(), fopen(), fprintf(), g_slist_append(), g_strchomp(), g_strchug(), printf(), sscanf(), strcmp(), strcpy(), strlen(), strncmp()
Called by: | ca_init() | modules/ca/ca_initFn.c
References Variables: | dbList, nrtmList, sourceList