3(2005-06-09)
π 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β anObjectPathobject pointer carrying the reference that contains namespace and classname components. where the gossip lives.resultClassβ if it's notNULL, 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 notNULL, 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 whenNULL. so if you passNULLshe 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 π§
Common Manageability Programming Interface (CMPI)- OpenGroupCMCIClient(3)CMPIEnumeration(3)CMPIObjectPath(3)CMPIFlags(3)CMPIStatus(3)
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 πβ¨ππ¦πΈπ
π«Άππβπππ§π
π¦ 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