MRMREGISTERNAMES(3)
MrmRegisterNames β library call, but make it iconic π
okay bestie, welcome to the MrmRegisterNames page β yes it's a library call, and it's all about registering the values associated with names referenced in UIL. Think UIL callback function names, UIL identifier names, the whole vibe. Let's go β¨
NAME π
MrmRegisterNames β registers the values associated with the names referenced in UIL (for example, UIL callback function names or UIL identifier names)
SYNOPSIS πΈ
#include <Mrm/MrmPublic.h>
Cardinal MrmRegisterNames(
MrmRegisterArglist register_list,
MrmCount register_count);
DESCRIPTION π¦
So MrmRegisterNames registers a vector of names and associated values for access in MRM. The values can be callback functions, pointers to user-defined data, or any other values. The information provided is used to resolve symbolic references occurring in UID files to their run-time values. For callbacks, this information provides the procedure address required by the Motif Toolkit. For names used as identifiers in UIL, this information provides any run-time mapping the application needs. Slay.
This function is similar to MrmRegisterNamesInHierarchy, except that the scope of the names registered by MrmRegisterNamesInHierarchy is limited to the hierarchy specified in the call to that function, whereas the names registered by MrmRegisterNames have global scope. When MRM looks up a name, it first tries to find the name among those registered for the given hierarchy. If that lookup fails, it tries to find the name among those registered globally. Lookup order, bestie. π
Arguments, because details matter π«Ά
register_listβ Specifies a list of name/value pairs for the names to be registered. Each name is a case-sensitive, NULL-terminated ASCII string. Each value is a 32-bit quantity, interpreted as a procedure address if the name is a callback function, and uninterpreted otherwise.register_countβ Specifies the number of entries inregister_list.
The names in the list are case-sensitive. The list can be either ordered or unordered.
Callback functions registered through MrmRegisterNames can be either regular or creation callbacks. Regular callbacks have declarations determined by Motif Toolkit and user requirements. Creation callbacks have the same format as any other callback:
void CallBackProc(
Widget *widget_id,
Opaque tag,
XmAnyCallbackStruct *callback_data);
widget_idβ Specifies the widget ID associated with the widget performing the callback (as in any callback function).tagβ Specifies the tag value (as in any callback function).callback_dataβ Specifies a widget-specific data structure. This data structure has a minimum of two members:eventandreason. Thereasonmember is always set toMrmCR_CREATE.
Note that the widget name and parent are available from the widget record accessible through widget_id.
RETURN β
This function returns one of the following status return constants:
MrmSUCCESSβ The function executed successfully.MrmFAILUREβ The function failed.
That's the whole MrmRegisterNames library-call page, bestie β the footer's source/version energy is just the classic library call stamp, and there's no date in this excerpt, so I'm not inventing one. Byeee, go register those names π
π«Ά
π¦ where this page comes from
- alpine 3.24: motif-doc 2.5.2-r0 Β· LGPL-2.1-or-later
- arch rolling: openmotif 2.3.8-4 Β· LGPL-2.1-or-later
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- epel 10: motif-devel 2.3.8-2.el10_2 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- nixos 26.05: motif 2.3.8
- nixpkgs unstable: motif 2.3.8
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms