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

πŸ’– 3 β€” CMCIClientFT.references() πŸ’–

okay bestie, welcome to section 3 of the manual, dated 2005-06-09 β€” yes she's an elder but she ATE and she's still serving ✨


🌸 NAME 🌸

CMCIClientFT.references() β€” the way you enumerate association instances for a class instance. that's it, that's the job πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <cmci.h>

CMPIEnumeration*
CMCIClientFT.references(CMCIClient*cl,
               CMPIObjectPath*op,
               constchar*resultClass,
               constchar*role,
               CMPIFlagsflags,
               char**properties,
               CMPIStatus*rc);

look at her. seven params. she's iconic and she knows it πŸ‘‘


✨ DESCRIPTION ✨

So basically πŸ’œ she goes and enumerates association instances that refer to the Instance defined by the op reference. like, she's the friend who finds everyone who knows the person you're asking about. no cap.

Here's the full rundown of the arguments, bestie, because we do NOT skip details in this house:

  • cl β€” the client object pointer. your main character, the one doing the calling 🫢
  • op β€” an ObjectPath object pointer carrying the reference that contains namespace and classname components. where the gossip lives.
  • resultClass β€” if it's not NULL, it's a valid class name used to filter the returned set of Objects by eliminating objects that aren't an Instance of this Class or one of its subclasses. so it's a vibe check for the class hierarchy fr fr.
  • role β€” if it's not NULL, it's a valid property name used to filter the returned set of instance objects by eliminating objects that aren't associated to the source object by an association where the source object plays the specified role. okay translating that: the name of the property in the association class that refers to the source object has to match the value of this parameter. i.e. the association has to say "yeah, that's her role" πŸ’…
  • flags β€” flags that affect the content of the returned class instance structures. they change what you actually get back, so pay attention bestie πŸ‘€
  • properties β€” a properties array. just a whole array of them.
  • rc β€” returns the operation status, and it's suppressed when NULL. so if you pass NULL she just doesn't tell you how it went. bold of you but okay 😭

πŸŽ€ the flags argument, specifically πŸŽ€

The flags argument is a bit mask that can contains the following flags:

  • CMPI_FLAG_IncludeQualifiers β€” include those qualifiers, babe ✨
  • CMPI_FLAG_IncludeClassOrigin β€” and include the class origin while you're at it 🌸

that's the whole list. two flags. concise queen.


🌈 RETURN VALUE 🌈

When successful πŸŽ‰ the CMCIClientFT.references() function returns a pointer to a CMPIEnumeration object that contains the class association instance objects found that match the association criteria, and sets a successful operation status code in rc.

When unsuccessful πŸ’€ it returns a NULL pointer and sets the operation status error code and corresponding error string in rc.

so like... check your rc. always check your rc. it's giving "read the room" but for error handling.


πŸ™ˆ ERRORS πŸ™ˆ

(nothing listed here β€” she said no comment, and honestly? respect.)


⭐ EXAMPLES ⭐

(also empty. no example. we're all just figuring it out together bestie 🫢)


πŸ‘‘ CONFORMING TO πŸ‘‘

(blank. she conforms to ✨ vibes ✨ and that's on periodt.)


🧚 SEE ALSO 🧚

go read those too, iykyk πŸ“šπŸ’œ


reminder bestie: keep every one of those flags spelled exactly like that. CMPI_FLAG_IncludeQualifiers. CMPI_FLAG_IncludeClassOrigin. no autocorrect, no lowercase, no "close enough". the compiler does not accept vibes as an argument type 😭

and that's the page!! brought to you by the SFCBroker Client Library, sfcc, section 3, dated 2005-06-09. she's been slaying since 2005 and she'll slay forever πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«ΆπŸ‘‘πŸŒˆβ­πŸ’€πŸ“πŸ§šπŸ’œ