Cross reference for include/ca_defs.h of index.

# File include/ca_defs.h

     * This is the definitions header file for the configuration module.  It
     * includes the definitions of data structures, external declarations and
     * definitions, definitions of sybolic constants.
     *

Included in: | modules/rp/rp.h

## Included Files

- `#include <pthread.h>`

- `#include <glib.h>`

## Preprocessor definitions

`#define CA_DEFS`

`#define VARS 89`

`#define SCOPE_GLOBAL 1`

`#define SCOPE_LOCAL 99`

`#define STRLENGTH 160`

`#define STRLENGTH_S 40`

`#define STRLENGTH_M 80`

`#define STRLENGTH_L 160`

`#define STRLENGTH_XL 320`

`#define STRLENGTH_XXL 640`

`#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`

## Typedef dict_t

`typedef struct dict_s dict_t`

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

## Typedef values_t

`typedef struct values_s values_t`

`struct values_s` |
`{` |
`char* 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;` |
`}` |

## 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[16];` |
`}` |

## 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

## Global Variable Lock

`pthread_mutex_t Lock`

Visible in: |  | include/ca_defs.h
|  | modules/ca/ca_configFns.c
|  | modules/ca/ca_defs.h
|  | modules/ca/ca_values.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/qi/query_instructions.h
|  | modules/rp/rp.h
|  | 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_int.h
|  | modules/ud/ud_main.c
|  | modules/ud/ud_misc.c
|  | modules/ud/ud_process_stream.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

## Global Variable newPort

`char newPort[16]`

Visible in: |  | include/ca_defs.h
|  | modules/ca/ca_configFns.c
|  | modules/ca/ca_defs.h
|  | modules/ca/ca_values.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/qi/query_instructions.h
|  | modules/rp/rp.h
|  | 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_int.h
|  | modules/ud/ud_main.c
|  | modules/ud/ud_misc.c
|  | modules/ud/ud_process_stream.c
|  | modules/ud/ud_rx.c
|  | modules/ud/ud_serial.c

## External Variables

dictionary
`extern dict_t dictionary[]`

Defined in: | modules/ca/ca_values.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

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

theSrc
`extern ca_dbSource_t* theSrc`

Defined in: | modules/ca/ca_values.c