axl main logo
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
typedef axl_bool(* axlDocDetectCodification)(axlStream *stream, const char **detected, axlPointer user_data, axlError **error)

Handler definition for the set of functions that allows to detect codification found at the document being opened by the axlStream reference provided.

streamThe stream where the detection will be implemented.
detectedA reference to the codification detected or NULL if nothing clearly detected. For example (ascii, iso-8859) but still not enough information. Handler implementator must configure an static string for this value.
user_dataA reference to user-defined data. This value was configured at axl_doc_set_detect_codification_func.
axl_true if the detection was implemented properly, otherse axl_false is returned. The handler could return axl_true and no codification be clearly detected.