3(2005-06-09)
β¨ 3 β CMCIClientFT.enumClasses() β¨
okay bestie, welcome to manual page 3, section 3 (dated 2005-06-09, we love a vintage moment π
). This is the one about enumerating classes and, uh, "subclasss" β that's a typo in the original and we're keeping it, it's iconic now π
πΈ NAME πΈ
CMCIClientFT.enumClasses() β Enumerate classes and subclasss π
π¦ SYNOPSIS π¦
#include <cmci.h>
CMPIEnumeration*
CMCIClientFT.enumClasses(CMCIClient*cl,
CMPIObjectPath* op,
CMPIFlags flags,
CMPIStatus* rc);
π DESCRIPTION π
So basically: you're enumerating Classies using op as the reference. The content of the returned classes can be controled using the flags parameter. ("controled" β yes, one L, that's how the original rolls, we don't gatekeep spelling here π)
The arguments are:
clβ the client object pointer, your main character π«Άopβ the ObjectPath object pointer, and it's carrying the namespace and classname componentsflagsβ affects the content of the returned class structurercβ the CMPI return status, and heads up: it gets suppressed whenNULLπ
Now the flags argument is a bit mask, and it can contain:
CMPI_FLAG_LocalOnlyCMPI_FLAG_DeepInheritanceCMPI_FLAG_IncludeQualifiersCMPI_FLAG_IncludeClassOrigin
four flags, no more no less, periodt β¨
π₯ RETURN VALUE π₯
When it slays (successful π
): CMCIClientFT.enumClasses() returns a pointer to a CMPIEnumeration object that contains each enumerated class, and it sets a successful status code in rc. π
When it does not slay (unsuccessful π): it returns NULL and sets the rc argument with the error code and and corresponding error string. (Yes β "and and". It's in the source. We're preserving the and and. π« )
π ERRORS π
nothing here bestie, this section is literally empty. no cap. it's giving mystery. π³οΈβ¨
π EXAMPLES π
okay here's the whole vibe, verbatim, because code is sacred:
CMCIClient *cc;
CMPIObjectPath * objectpath;
CMPIInstance * instance;
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->enumClasses(cc, objectpath, 0, &status);
if (!status.rc) { fprintf(stderr, "operation error code %d
description %s0, status.rc, status.msg->hdl);
abort();
}
ngl the formatting in that last block is doing its own thing β the line break inside thefprintfstring and that%s0,are exactly how the original prints it, so don't come for me, come for the 2005 source ππ
also yes, conncetion is spelled like that up there. it's giving typo, it's giving authentic, we leave it π
π§ CONFORMING TO π§
also empty!! the void is voiding π«§
β SEE ALSO β
- Common Manageability Programming Interface (CMPI) - OpenGroup
CMCIClient(3)CMPIEnumeration(3)CMPIObjectPath(3)CMPIFlags(3)CMPIStatus(3)
and that's the whole page, bestie π«Ά it came from the SFCBroker Client Library, source/version sfcc, dated 2005-06-09 β go forth and enumerate, you absolute icon ππβ¨
π¦ 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