XtAppAddConverter(3) XT COMPATIBILITY FUNCTIONS XtAppAddConverter(3)

# [NAME](#NAME)

XtAppAddConverter, XtAddConverter - register resource converter

# [SYNTAX](#SYNTAX)

#include &lt;X11/Intrinsic.h&gt;

void XtAppAddConverter(XtAppContext *app\_context*, const char \**from\_type*, const char \**to\_type*, XtConverter *converter*, XtConvertArgList *convert\_args*, Cardinal *num\_args*);

void XtAddConverter(const char \**from\_type*, const char \**to\_type*, XtConverter *converter*, XtConvertArgList *convert\_args*, Cardinal *num\_args*);

# [ARGUMENTS](#ARGUMENTS)

[*app\_context*](#app_context)

Specifies the application context.

[*converter*](#converter)

Specifies the type converter procedure.

[*convert\_args*](#convert_args)

Specifies how to compute the additional arguments to the converter or NULL.

[*from\_type*](#from_type)

Specifies the source type.

[*num\_args*](#num_args)

Specifies the number of additional arguments to the converter or zero.

[*to\_type*](#to_type)

Specifies the destination type.

# [DESCRIPTION](#DESCRIPTION)

**XtAppAddConverter** is equivalent in function to **XtAppSetTypeConverter** with *cache\_type* equal to **XtCacheAll** for old-format type converters. It has been superseded by **XtAppSetTypeConverter**.

**XtAddConverter** is equivalent in function to **XtSetTypeConverter** with *cache\_type* equal to **XtCacheAll** for old-format type converters. It has been superseded by **XtSetTypeConverter**.

# [SEE ALSO](#SEE_ALSO)

[XtConvert(3)](/man/os/libxt/XtConvert.3), [XtStringConversionWarning(3)](/man/os/libxt/XtStringConversionWarning.3)  
*X Toolkit Intrinsics - C Language Interface*  
*Xlib - C Language X Interface*

libXt 1.3.1 X Version 11

---

Document: XtAppAddConverter(3) from libxt 1.3.1-r10 (Chainguard OS)
Source: https://gitlab.freedesktop.org/xorg/lib/libxt.git
