ec_convert_register

March 26, 2020 Contributors

Name

ec_convert_register — Register a converter implementation

Synopsis

#include "misc/converter.h"

| int **ec_convert_register** ( | closure, |   |
|   | funcs); |   |

void * <var class="pdparam">closure</var>;
struct ec_converter_funcs * <var class="pdparam">funcs</var>;

Description

Note

This reference page was automatically generated from functions found in the header files in the development branch. The function described here may not exist in generally available versions of Momentum, and may change in behavior when it is generally available. Consult your vendor for definitive advice on the use of this function.

Register a converter implementation.

You may register a converter to handle additional encodings.

Parameters

closure

an optional closure that will be passed to your opener routine.

funcs

defines the converter implementation.

When the system opens a converter, it will call the opener routine for each registered implementation in the order that they were registered.

If none were registered, an internal implementation based upon iconv(3) will be used instead.