$Revision: 1.7 $
Attributes module (at) - this _should_ eventually get merged in with the
config module.
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
Attributes (short name & long name)
char* const Attributes[]
Attribute Details - Ie descriptions
const char* Attributes_details[][2]
Source database mirrors
char* const Sources[]
Returns a string of all the attributes. Only there for debugging and tracing purposes.
More:
Authors:
ottrey
- Online References:
char* AT_attributes_to_string ( int offset )
- int offset
- The offset (Ie short or long name).
Returns the indexed attribute. Used when validating query options.
More:
Authors:
ottrey
- Online References:
const char* AT_get_attribute ( AT_Type attr_index, int offset )
- AT_Type attr_index
- The index into the Attributes[] array.
- int offset
- The offset (Ie short or long name).
Returns the attribute description. Used for -t & -v queries.
More:
Authors:
ottrey
- Online References:
const char* AT_get_attribute_desc ( AT_Type attr_index )
- AT_Type attr_index
- The index into the Attributes[] array.
Returns the attribute format. Used for -t & -v queries.
More:
Authors:
ottrey
- Online References:
const char* AT_get_attribute_frmt ( AT_Type attr_index )
- AT_Type attr_index
- The index into the Attributes[] array.
Returns the attributes as a list of strings.
More:
Authors:
ottrey
- Online References:
char* const* AT_get_attributes ( void )
Returns the indexed source.
More:
Authors:
ottrey
- Online References:
const char* AT_get_source ( int index )
- int index
- The index of the source in the Sources list.
Returns the sources as a list of strings. Used when validating query options.
More:
Authors:
ottrey
- Online References:
char* const* AT_get_sources ( void )
Creates a string from the sources in the GList.
More:
Authors:
ottrey
- Online References:
char* AT_sources_list_to_string ( GList* sources_list )
- GList* sources_list
- The GList of sources.
Creates a string from Sources.
More:
Authors:
ottrey
- Online References:
char* AT_sources_to_string ( void )
- char* AT_sources_to_string
- Returns a string of the Sources.
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.