File modules/df/defs.c

  $Revision: 1.6 $

Definitions module (df)
Status: NOT REVUED, NOT TESTED

Included Files


Preprocessor definitions

String sizes

#define STR_S 63

#define STR_M 255

#define STR_L 1023

#define STR_XL 4095

#define STR_XXL 16383


Typedef source_info_t

Source database mirrors

typedef struct {...} source_info_t
struct 
   { 
     char src[32]; 
     char db[32]; 
   } 


Global Variable Class_names

char* const Class_names[]
Included from include/DF_class_names.def
Visible in:  modules/df/defs.c
Used in: DF_get_class_name()modules/df/defs.c
  DF_get_class_names()modules/df/defs.c

Global Variable Class_codes

char* const Class_codes[]
Included from include/DF_class_codes.def
Visible in:  modules/df/defs.c
Used in: DF_get_class_code()modules/df/defs.c

Global Variable Class_aliases

char* const Class_aliases[]
Included from include/DF_class_aliases.def
Visible in:  modules/df/defs.c
Used in: DF_class_code2type()modules/df/defs.c
  DF_class_name2type()modules/df/defs.c
  DF_get_class_aliases()modules/df/defs.c

Global Variable Class_aliases_map

const int const Class_aliases_map[]
Included from include/DF_class_aliases_map.def
Visible in:  modules/df/defs.c
Used in: DF_class_code2type()modules/df/defs.c
  DF_class_name2type()modules/df/defs.c
  DF_get_class_index()modules/df/defs.c
  DF_get_class_name()modules/df/defs.c

Global Variable Class_dbase_code_map

const int const Class_dbase_code_map[]
Included from include/DF_class_dbase_code_map.def
Visible in:  modules/df/defs.c
Used in: DF_get_class_dbase_code()modules/df/defs.c

Global Variable Templates

const char* Templates[]
Included from include/DF_class_templates.def
Visible in:  modules/df/defs.c
Used in: DF_get_class_template()modules/df/defs.c

Global Variable Templates_v

const char* Templates_v[]
Included from include/DF_class_templates_v.def
Visible in:  modules/df/defs.c
Used in: DF_get_class_template_v()modules/df/defs.c

Global Variable Attribute_names

char* const Attribute_names[]
Included from include/DF_attribute_names.def
Visible in:  modules/df/defs.c
Used in: DF_attributes_to_string()modules/df/defs.c
  DF_get_attribute_name()modules/df/defs.c
  DF_get_attribute_names()modules/df/defs.c

Global Variable Attribute_codes

char* const Attribute_codes[]
Included from include/DF_attribute_codes.def
Visible in:  modules/df/defs.c
Used in: DF_get_attribute_code()modules/df/defs.c

Global Variable Attribute_aliases

char* const Attribute_aliases[]
Included from include/DF_attribute_aliases.def
Visible in:  modules/df/defs.c
Used in: DF_attribute_code2type()modules/df/defs.c
  DF_attribute_name2type()modules/df/defs.c
  DF_get_attribute_aliases()modules/df/defs.c

Global Variable Attribute_aliases_map

const int const Attribute_aliases_map[]
Included from include/DF_attribute_aliases_map.def
Visible in:  modules/df/defs.c
Used in: DF_attribute_code2type()modules/df/defs.c
  DF_attribute_name2type()modules/df/defs.c
  DF_get_attribute_index()modules/df/defs.c

Global Variable Sources

const source_info_t Sources[]
Visible in:  modules/df/defs.c
Used in: DF_get_database()modules/df/defs.c
  DF_get_source()modules/df/defs.c
  DF_sources_to_string()modules/df/defs.c

Global Variable Sources_vector

char* const Sources_vector[]
Visible in:  modules/df/defs.c
Used in: DF_get_sources()modules/df/defs.c

Global Variable Server_queries

char* const Server_queries[]
Visible in:  modules/df/defs.c
Used in: DF_get_server_queries()modules/df/defs.c

Global Variable Server_query

char* const Server_query[]
Visible in:  modules/df/defs.c
Used in: DF_get_server_query()modules/df/defs.c

Global Variable Filter_names

char* const Filter_names[]
Visible in:  modules/df/defs.c
Used in: DF_get_filter_names()modules/df/defs.c

Global Function DF_attribute_code2type()

A_Type_t DF_attribute_code2type ( const gchar* token )
Prototyped in: modules/df/defs.h
Calls: strcmp()
References Variables: Attribute_aliasesmodules/df/defs.c
  Attribute_aliases_mapmodules/df/defs.c

Global Function DF_attribute_name2type()

A_Type_t DF_attribute_name2type ( const gchar* token )
Prototyped in: modules/df/defs.h
Calls: strcmp()
References Variables: Attribute_aliasesmodules/df/defs.c
  Attribute_aliases_mapmodules/df/defs.c

Global Function DF_attributes_to_string()

  Returns a string of all the attributes.  Only there for debugging and tracing purposes.

int offset The offset (Ie short or long name).
More:
  Authors:
        ottrey

Online References:
char* DF_attributes_to_string ( void )
Prototyped in: modules/df/defs.h
Calls: fprintf(), strcat(), strcpy(), strlen(), wr_real_malloc()
References Variables: Attribute_namesmodules/df/defs.c

Global Function DF_class_code2type()

C_Type_t DF_class_code2type ( const gchar* token )
Prototyped in: modules/df/defs.h
Calls: strcmp()
References Variables: Class_aliasesmodules/df/defs.c
  Class_aliases_mapmodules/df/defs.c

Global Function DF_class_name2type()

C_Type_t DF_class_name2type ( const gchar* token )
Prototyped in: modules/df/defs.h
Calls: strcmp()
References Variables: Class_aliasesmodules/df/defs.c
  Class_aliases_mapmodules/df/defs.c

Global Function DF_get_attribute_aliases()

char* const* DF_get_attribute_aliases ( void )
Prototyped in: modules/df/defs.h
References Variables: Attribute_aliasesmodules/df/defs.c

Global Function DF_get_attribute_code()

const char* DF_get_attribute_code ( A_Type_t index )
Prototyped in: modules/df/defs.h
References Variables: Attribute_codesmodules/df/defs.c

Global Function DF_get_attribute_desc()

const char* DF_get_attribute_desc ( A_Type_t index )
Prototyped in: modules/df/defs.h

Global Function DF_get_attribute_frmt()

const char* DF_get_attribute_frmt ( A_Type_t index )
Prototyped in: modules/df/defs.h

Global Function DF_get_attribute_index()

int DF_get_attribute_index ( int alias_index )
Prototyped in: modules/df/defs.h
References Variables: Attribute_aliases_mapmodules/df/defs.c

Global Function DF_get_attribute_name()

const char* DF_get_attribute_name ( A_Type_t index )
Prototyped in: modules/df/defs.h
References Variables: Attribute_namesmodules/df/defs.c

Global Function DF_get_attribute_names()

char* const* DF_get_attribute_names ( void )
Prototyped in: modules/df/defs.h
References Variables: Attribute_namesmodules/df/defs.c

Global Function DF_get_class_aliases()

char* const* DF_get_class_aliases ( void )
Prototyped in: modules/df/defs.h
References Variables: Class_aliasesmodules/df/defs.c

Global Function DF_get_class_code()

char* const DF_get_class_code ( C_Type_t index )
Prototyped in: modules/df/defs.h
References Variables: Class_codesmodules/df/defs.c

Global Function DF_get_class_dbase_code()

int DF_get_class_dbase_code ( int class_index )
Prototyped in: modules/df/defs.h
References Variables: Class_dbase_code_mapmodules/df/defs.c

Global Function DF_get_class_index()

int DF_get_class_index ( int alias_index )
Prototyped in: modules/df/defs.h
References Variables: Class_aliases_mapmodules/df/defs.c

Global Function DF_get_class_name()

char* const DF_get_class_name ( int alias_index )
Prototyped in: modules/df/defs.h
References Variables: Class_aliases_mapmodules/df/defs.c
  Class_namesmodules/df/defs.c

Global Function DF_get_class_names()

char* const* DF_get_class_names ( void )
Prototyped in: modules/df/defs.h
References Variables: Class_namesmodules/df/defs.c

Global Function DF_get_class_template()

const char* DF_get_class_template ( C_Type_t index )
Prototyped in: modules/df/defs.h
References Variables: Templatesmodules/df/defs.c

Global Function DF_get_class_template_v()

const char* DF_get_class_template_v ( C_Type_t index )
Prototyped in: modules/df/defs.h
References Variables: Templates_vmodules/df/defs.c

Global Function DF_get_database()

const char* DF_get_database ( int index )
References Variables: Sourcesmodules/df/defs.c

Global Function DF_get_filter_names()

char* const* DF_get_filter_names ( void )
Prototyped in: modules/df/defs.h
References Variables: Filter_namesmodules/df/defs.c

Global Function DF_get_server_queries()

char* const* DF_get_server_queries ( void )
Prototyped in: modules/df/defs.h
References Variables: Server_queriesmodules/df/defs.c

Global Function DF_get_server_query()

const char* DF_get_server_query ( int index )
Prototyped in: modules/df/defs.h
References Variables: Server_querymodules/df/defs.c

Global Function DF_get_source()

const char* DF_get_source ( int index )
Prototyped in: modules/df/defs.h
References Variables: Sourcesmodules/df/defs.c

Global Function DF_get_sources()

char* const* DF_get_sources ( void )
Prototyped in: modules/df/defs.h
References Variables: Sources_vectormodules/df/defs.c

Global Function DF_sources_list_to_string()

  Creates a string from the sources in the GList.

More:
  Authors:
        ottrey

Online References:
char* DF_sources_list_to_string ( GList* sources_list )
GList* sources_list
The GList of sources.
Prototyped in: modules/df/defs.h
Calls: fprintf(), g_list_foreach(), strcpy(), strlen(), wr_real_malloc()
References Functions: source_foreach()modules/df/defs.c

Global Function DF_sources_to_string()

  Creates a string from Sources.

More:
  Authors:
        ottrey

Online References:
char* DF_sources_to_string ( void )
char* DF_sources_to_string
Returns a string of the Sources.
Prototyped in: modules/df/defs.h
Calls: fprintf(), strcat(), strcpy(), strlen(), wr_real_malloc()
References Variables: Sourcesmodules/df/defs.c

Local Function source_foreach()

  Function to adds the source string to the created string from the Glist of sources.
  It is called via g_list_foreach().

More:
  Authors:
        ottrey

Online References:
static void source_foreach ( void* element_data, void* result_buf_ptr )
void* element_data
The source name.
void* result_buf_ptr
The string to be populated.
Calls: strcat()
Used in: DF_sources_list_to_string()modules/df/defs.c