3(2005-06-09)

πŸ“¦
version 2.2.9~rc1 Β· 2 versions
, in centos-stream 10, centos-stream 9, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

πŸŽ€ 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 β€” an ObjectPath object pointer holding the reference, and that reference contains the namespace and classname components. The main character fr.
  • assocClass β€” if it's not NULL, this is an association class name. It filters the returned set of ObjectPath objects 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 not NULL, 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 not NULL, this is a valid property name. It filters the returned set of ObjectPath objects 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 not NULL, this is a valid property name. It filters the returned set of ObjectPath objects 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 of role, and yes they knew what they were doing 🌸
  • rc β€” returns the operation status. It's suppressed when NULL, so if you pass NULL you get no status back, periodt.
Heads up bestie, the page also brings up a flags argument β€” a bit mask that can contain the following flags: CMPI_FLAG_IncludeQualifiers and CMPI_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 🧚


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. πŸ’…βœ¨