Cross reference for modules/ca/ca_defs.h of index.

# File modules/ca/ca_defs.h

      $Revision:

      CA module: definitions header file for the configuration module.

      Status: NOT REVIEWED, NOT TESTED

      Author(s):       Ambrose Magee

Included in: | modules/ca/ca_configFns.c
| modules/ca/ca_configFns.h
| modules/ca/ca_initFn.c
| modules/ca/ca_sanityCheck.c
| modules/ca/ca_values.c

## Included Files

- `#include <pthread.h>`

- `#include <glib.h>`

## Preprocessor definitions

`#define CA_DEFS`

`#define VARS 120`

`#define SCOPE_GLOBAL 1`

`#define SCOPE_LOCAL 99`

`#define STRLENGTH 256`

`#define STRLENGTH_XS 40`

`#define STRLENGTH_S 80`

`#define STRLENGTH_M 160`

`#define STRLENGTH_L 320`

`#define STRLENGTH_XL 640`

`#define STRLENGTH_XXL 2560`

`#define CA_DEFHOST "rowan"`

`#define CA_DEFPORT "4343"`

`#define CA_DEFUSER "dbase"`

`#define CA_DEFPASSWORD "encrypt1"`

`#define CA_DEFDBNAME "default-db"`

`#define NOT_FOUND 1`

`#define INCOMPLETE 1`

`#define DATABASE_KEY "DATABASE"`

`#define NRTM_KEY "NRTM"`

`#define SOURCE_KEY "SOURCE"`

## Typedef dict_t

`typedef struct dict_s dict_t`

`struct dict_s` |
`{` |
`char varName[256];` |
`char varSym[256];` |
`char varType[256];` |
`int varNum;` |
`int varMandatory;` |
`int varScope;` |
`}` |

## Typedef values_t

`typedef struct values_s values_t`

`struct values_s` |
`{` |
`GString* strPtr;` |
`void* valPtr;` |
`}` |

## Typedef ca_database_t

`typedef struct ca_database_s ca_database_t`

`struct ca_database_s` |
`{` |
`char host[64];` |
`int port;` |
`char user[16];` |
`char password[9];` |
`char dbName[16];` |
`}` |

## Typedef ca_mirror_t

`typedef struct ca_mirror_s ca_mirror_t`

`struct ca_mirror_s` |
`{` |
`char host[64];` |
`int port;` |
`char log[64];` |
`int delay;` |
`int protocolVer;` |
`char mrName[16];` |
`}` |

## Typedef ca_ripadmin_t

`typedef struct ca_ripadmin_s ca_ripadmin_t`

`struct ca_ripadmin_s` |
`{` |
`char host[64];` |
`int port;` |
`char user[16];` |
`char password[9];` |
`char tableName[72];` |
`}` |

## Typedef ca_database_list_t

`typedef struct ca_database_list_s ca_database_list_t`

`struct ca_database_list_s` |
`{` |
`char name[16];` |
`ca_database_t db;` |
`int opMode;` |
`ca_mirror_t nrtm;` |
`int updPort;` |
`char canupd[2];` |
`char deflook[2];` |
`}` |

## Typedef ca_dbSource_t

`typedef struct ca_dbSource_s ca_dbSource_t`

`struct ca_dbSource_s` |
`{` |
`char name[16];` |
`ca_database_t db;` |
`int opMode;` |
`ca_mirror_t nrtm;` |
`int updPort;` |
`char canupd[2];` |
`char deflook[2];` |
`}` |

## Typedef ca_SrcHdl_t

`typedef ca_dbSource_t ca_SrcHdl_t`

See:
  - Typedef ca_dbSource_t

## Typedef ca_updDbSource_t

`typedef struct ca_updDbSource_s ca_updDbSource_t`

`struct ca_updDbSource_s` |
`{` |
`char name[16];` |
`ca_database_t updDb;` |
`char whoisd_host[32];` |
`int qryPort;` |
`int updPort;` |
`}` |

## Global Variable Lock

`pthread_mutex_t Lock`

Visible in: |  | modules/ac/access_control.c
|  | modules/ca/ca_configFns.c
|  | modules/ca/ca_configFns.h
|  | modules/ca/ca_defs.h
|  | modules/ca/ca_initFn.c
|  | modules/ca/ca_sanityCheck.c
|  | modules/ca/ca_sourceLoader.c
|  | modules/ca/ca_values.c
|  | modules/er/er_macro.c
|  | modules/pc/pc_commands.c
|  | modules/pm/pm_serials.c
|  | modules/pm/protocol_mirror.c
|  | modules/pw/protocol_whois.c
|  | modules/qc/query_command.c
|  | modules/qi/query_instructions.c
|  | modules/rp/rp_convert.c
|  | modules/rp/rp_load.c
|  | modules/rp/rp_search.c
|  | modules/rp/rp_tree.c
|  | modules/rp/rp_update.c
|  | modules/sv/server.c
|  | modules/ud/ud_comrol.c
|  | modules/ud/ud_core.c
|  | modules/ud/ud_main.c
|  | modules/ud/ud_misc.c
|  | modules/ud/ud_process_stream.c
|  | modules/ud/ud_recover.c
|  | modules/ud/ud_rx.c
|  | modules/ud/ud_serial.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

## External Variables

dictionary
`extern dict_t dictionary[]`

Defined in: | modules/ca/ca_configFns.c

globals
`extern values_t globals[]`

Defined in: | modules/ca/ca_values.c

locals
`extern values_t locals[]`

Defined in: | modules/ca/ca_values.c

confVars
`extern values_t confVars[]`

Defined in: | modules/ca/ca_values.c

ripe
`extern ca_database_t ripe`

arin
`extern ca_database_t arin`

radb
`extern ca_database_t radb`

ripeComponent
`extern ca_database_list_t ripeComponent`

arinComponent
`extern ca_database_list_t arinComponent`

radbComponent
`extern ca_database_list_t radbComponent`

sourceList
`extern GSList* sourceList`

Defined in: | modules/ca/ca_values.c

dbList
`extern GSList* dbList`

Defined in: | modules/ca/ca_values.c

nrtmList
`extern GSList* nrtmList`

Defined in: | modules/ca/ca_values.c

testSource
`extern ca_dbSource_t* testSource`

testFile
`extern const char* testFile`

Defined in: | modules/ca/ca_values.c

tempFile
`extern const char* tempFile`

Defined in: | modules/ca/ca_values.c

dictFile
`extern const char* dictFile`

Defined in: | modules/ca/ca_values.c

confFile
`extern const char* confFile`

Defined in: | modules/ca/ca_values.c

sourcesFile
`extern const char* sourcesFile`

Defined in: | modules/ca/ca_values.c

theSrc
`extern ca_dbSource_t* theSrc`

Defined in: | modules/ca/ca_values.c

configWarningStr
`extern const char* configWarningStr`

Defined in: | modules/ca/ca_values.c

configError_1Str
`extern const char* configError_1Str`

Defined in: | modules/ca/ca_values.c

configError_2Str
`extern const char* configError_2Str`

Defined in: | modules/ca/ca_values.c

configVarChk_OK_Str
`extern const char* configVarChk_OK_Str`

Defined in: | modules/ca/ca_values.c