afc_set_tag

Name

afc_set_tag  -- Set a tag

Synopsis

int afc_set_tag ( AFC * afc, int tag, void * val );

Description

This function sets a tag in the current class.

Inputs

afc

Pointer to a valid afc instance.

tag

Tag to be set. Valid tags are:

AFC_TAG_DEBUG_LEVEL

This tag determines the debug level. Valid values can be:

AFC_DEBUG_NONE

No debug messages are shown

AFC_DEBUG_IMPORTANT

Only important debug messages are shown

AFC_DEBUG_STANDARD

All messages that are at least marked as "standard" will be shown

AFC_DEBUG_VERBOSE

All messages that are at least "verbose" will be shown

AFC_DEBUG_EVERYTHING

All messages are shown

AFC_TAG_LOG_EXIT_CRITICAL

This tag determines whether, in occurrence of a critical error, the application should quit or not. Valid values are:

TRUE

The application will quit when a critical error appears

FALSE

The application will continue to work

AFC_TAG_LOG_LEVEL

Sets the log level. Values can be:

AFC_LOG_MESSAGE

This is just a simple message, not very important

AFC_LOG_NOTICE

This is something the user would like to know

AFC_LOG_WARNING

This is not an error, but is something that needs to be fixed anyway

AFC_LOG_ERROR

This is really an error

AFC_LOG_CRITICAL

This error is blocking

val

Value to set to the tag

Result

should be AFC_ERR_NO_ERROR

See Also