3(2005-06-09)
π NAME π
CMCIClientFT.associatorNames() β literally just enumerate the ObjectPaths that are associated with an Instance. That's it, that's the whole job. It lives in manual section 3, iykyk π
β¨ SYNOPSIS β¨
#include <cmci.h>
CMPIEnumeration*
CMCIClientFT.associatorNames(CMCIClient*cl,
CMPIObjectPath*op,
constchar*assocClass,
constchar*resultClass,
constchar*role,
constchar*resultRole,
CMPIStatus*rc);
π¦ DESCRIPTION π¦
Okay so bestie, what this does is enumerate ObjectPath references associated with the Instance defined by the op reference. Very demure, very mindful.
Here's the cast of characters you're passing in:
clβ the client object pointer. Your entry ticket, girl ποΈopβ anObjectPathobject pointer holding the reference, and that reference contains the namespace and classname components. The main character fr.assocClassβ if it's notNULL, this is an association class name. It filters the returned set ofObjectPathobjects by eliminating objects that aren't associated to the source object by an instance of this class or one of its subclasses. So it's giving "only my people" energy πresultClassβ if it's notNULL, this is a valid class name. It filters the returned set of Objects by eliminating objects that aren't an Instance of this Class or one of its subclasses. Same vibe, different target.roleβ if it's notNULL, this is a valid property name. It filters the returned set ofObjectPathobjects by eliminating objects that aren't associated to the source object by an association where the source object plays the specified role. Concretely: the name of the property in the association class that refers to the source object has to match the value of this parameter. Got it? πresultRoleβ if it's notNULL, this is a valid property name. It filters the returned set ofObjectPathobjects by eliminating objects that aren't associated to the source object by an association where the returned object plays the specified role. Concretely: the name of the property in the association class that refers to the returned object has to match the value of this parameter. Yes it's the mirror ofrole, and yes they knew what they were doing πΈrcβ returns the operation status. It's suppressed whenNULL, so if you passNULLyou get no status back, periodt.
Heads up bestie, the page also brings up aflagsargument β a bit mask that can contain the following flags:CMPI_FLAG_IncludeQualifiersandCMPI_FLAG_IncludeClassOrigin. Not gonna editorialise, just telling you exactly what it says π«Ά
π RETURN VALUE π
When it's slaying (successful), CMCIClientFT.associatorNames() returns a pointer to a CMPIEnumeration object that contains the ObjectPath objects found for the class that match the association criteria, and it sets a successful operation status code in rc. β¨
When it's not (unsuccessful), it returns a NULL pointer and sets the operation status error code and the corresponding error string in rc. π We've all been there.
π ERRORS π
Nothing listed here. The original page is justβ¦ blank on this one. Not me pointing it out π
π EXAMPLES π
Also blank on the original page. No examples bestie, you're on your own (but you've got this, I believe in you π).
β CONFORMING TO β
Blank on the original page too. Iconic of it honestly.
π§ SEE ALSO π§
- Common Manageability Programming Interface (CMPI) - OpenGroup
CMCIClient(3)CMPIEnumeration(3)CMPIObjectPath(3)CMPIStatus(3)
And that's the whole thing, bestie β this page came to you from the SFCBroker Client Library, source sfcc, dated 2005-06-09, in section 3. Now go enumerate those ObjectPaths, no cap. π
β¨
π¦ where this page comes from
- centos-stream 10: sblim-sfcc 2.2.8-28.el10 Β· EPL-1.0
- centos-stream 9: sblim-sfcc 2.2.8-18.el9 Β· EPL-1.0
- centos-stream 9: sblim-sfcc 2.2.8-18.el9 Β· EPL-1.0
- fedora 43: sblim-sfcc 2.2.8-29.fc43 Β· EPL-1.0
- fedora 43: sblim-sfcc 2.2.8-29.fc43 Β· EPL-1.0
- fedora 44: sblim-sfcc 2.2.8-30.fc44 Β· EPL-1.0
- fedora 44: sblim-sfcc 2.2.8-30.fc44 Β· EPL-1.0
- nixos 26.05: sblim-sfcc 2.2.8-unstable-2023-06-26
- nixpkgs unstable: sblim-sfcc 2.2.8-unstable-2023-06-26
- opensuse-leap 16.0: sblim-sfcc-devel 2.2.9~rc1-bp160.1.13 Β· EPL-1.0
- opensuse-leap 16.0: sblim-sfcc-devel 2.2.9~rc1-bp160.1.13 Β· EPL-1.0
- opensuse-leap 16.0: sblim-sfcc-devel 2.2.9~rc1-bp160.1.13 Β· EPL-1.0
- opensuse-leap 16.0: sblim-sfcc-devel 2.2.9~rc1-bp160.1.13 Β· EPL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms