Name
XtAddConverter — register a new resource converter.
Synopsis
void XtAddConverter(from_type, to_type, converter, convert_args, num_args)
String from_type;
String to_type;
XtConverter converter;
XtConvertArgList convert_args;
Cardinal num_args;
Arguments
from_typeSpecifies the source type of the resource to be converted.
to_typeSpecifies the destination type to which the resource is to be converted.
converterSpecifies the converter procedure. See XtConverter(2).
convert_args
Specifies how to obtain additional arguments needed for the conversion; if no arguments are provided, this should be NULL. See the Structures section below for a detailed description of the format of convert_args.
num_argsSpecifies the number of additional arguments to the converter or zero.
Description
XtAddConverter has been superseded by XtSetTypeConverter. XtAddConverter obtains the default application context and invokes XtAppAddConverter. XtAddConverter is a simplified interface to XtAppAddConverter, and the calling sequences are identical, except that you do not need to specify an application context. Since most applications have only one application context, XtAddConverter does not require the application to pass app_context explicitly. See XtAppAddConverter for additional details. See XtConverter(2) for a description of the contents of a resource converter function.
Structures
typedef struct {
XtAddressMode address_mode;
caddr_t address_id;
Cardinal size;
} XtConvertArgRec, ∗XtConvertArgList;