3(2005-06-09)
π 3 β CMCIClientFT.enumClassNames() π
okay bestie, welcome to section 3 of the manual (dated 2005-06-09, yes she's vintage, she's still iconic) π
this is a CMPI-adjacent client-library page from the SFCBroker Client Library (sfcc), and she's here to hand you a whole list of class names. let's get into it π¦
β¨ NAME β¨
CMCIClientFT.enumClassNames() β Enumerate class names
πΈ SYNOPSIS πΈ
#include <cmci.h>
CMPIEnumeration*
CMCIClientFT.enumClassNames(CMCIClient*cl,
CMPIObjectPath*op,
CMPIFlagsflags,
CMPIStatus*rc);
π DESCRIPTION π
so the whole vibe is: you Get a Class, using op as your reference. and the content of the class structure you get back? you get to control that with the flags parameter. main character energy fr β¨
the arguments are, in order:
- cl β the client object pointer. that's your client, your girl π«Ά
- op β an ObjectPath object pointer that contains the namespace and classname components
- flags β the flags that affect what the returned class structure content looks like
- rc β the CMPI return status. and heads up: it gets suppressed when
NULLπ
the flags argument is a bit mask, and the one flag it can contain is CMPI_FLAG_DeepInheritance. periodt π«
π RETURN VALUE π
when everything slays (successful), CMCIClientFT.enumClassNames() returns a pointer to a CMPIEnumeration object that contains each class name found, and it sets a successful status code in rc. π₯³
when it does not work out (unsuccessful), it returns NULL and sets the rc argument with the error code and the corresponding error string. not the moment, but we move π
β ERRORS β
(this section is empty in the original, bestie β nothing listed, no cap)
π EXAMPLES π
CMCIClient *cc;
CMPIObjectPath * objectpath;
CMPIEnumeration * enumeration;
CMPIStatus status;
/* Setup a conncetion to the CIMOM */
cc = cmciConnect("localhost", NULL, NULL, NULL, NULL, NULL);
objectpath = newCMPIObjectPath("root/cimv2", NULL, NULL);
enumeration = cc->ft->enumClassNames(cc, objectpath, 0, &status);
if (!status.rc) {
fprintf(stderr, "op error code %d description %s0,
status.rc, status.msg->hdl);
abort();
}
(yes, the typo in the comment and the %s0, are exactly how she is in the original β we do not touch, we do not fix, we copy verbatim π«‘β¨)
π§ CONFORMING TO π§
(also empty in the original β she's mysterious, she's giving nothing here π)
π SEE ALSO π
- Common Manageability Programming Interface (CMPI) - OpenGroup
CMCIClient(3)CMPIEnumeration(3)CMPIObjectPath(3)CMPIFlags(3)CMPIStatus(3)
okay that's the whole page, bestie, you ate that π go forth and enumerate those class names, and remember: check your rc, she will tell you everything iykyk π
SFCBroker Client Library Β· sfcc Β· 3(2005-06-09) β mwah, that's the source, version and date, signin' off like the legend she is πΈπ¦π
π¦ 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