3(2005-06-09)
π NAME π
CMCIClientFT.enumInstances() β bestie, this is the one that enumerates instances of a class. That's the whole vibe. β¨
πΈ SYNOPSIS πΈ
#include <cmci.h>
CMPIEnumeration*
CMCIClientFT.enumInstances(CMCIClient*cl,
CMPIObjectPath*op,
CMPIFlagsflags,
char**properties,
CMPIStatus*rc);
π¦ DESCRIPTION π¦
okay so, what this does: it enumerates the Instances of the class (and subclasses, yes, the whole family tree) that's defined by op. And the way the instance structure and the inheritance scope come out can be controled using the flags argument. like you literally get to steer it. π
Now the arguments, one by one, no skips:
- the client object pointer,
cl - an ObjectPath object pointer
op, holding the reference that contains the namespace and classname components flags, which affect the content of the returned class instance structures- a properties array
- and
rc, which returns the operation status β and it gets suppressed whenNULL, so if you passNULLdon't go looking for it π
The flags argument is a bit mask that can contains the following flags:
CMPI_FLAG_LocalOnlyCMPI_FLAG_DeepInheritanceCMPI_FLAG_IncludeQualifiersCMPI_FLAG_IncludeClassOrigin
that's four flags, all of them, counted and accounted for. no crumbs left behind π
β RETURN VALUE β
When it slays (successful): CMCIClientFT.enumInstances() returns a pointer to a CMPIEnumeration object that contains the class instances found for the class, and it sets a successful operation status code in rc. iconic behavior. π«Ά
When it does not slay (unsuccessful): it returns a NULL pointer and sets the operation status error code plus the corresponding error string in rc. not the moment we wanted, but at least rc tells you why. π
π ERRORS π
nothing here bestie. the section exists, the section is empty. we move. π
π EXAMPLES π
okay this is the part where you actually see it, no cap:
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->enumInstances(cc, objectpath, 0, NULL,
&status);
if (!status.rc) { fprintf(stderr, "operation error code %d
description %s0, status.rc, status.msg->hdl);
abort();
}
copied verbatim, typos and all, because that's the assignment and I don't play with your facts π
π CONFORMING TO π
also empty. also fine. also we move on. π§
π₯ SEE ALSO π₯
- Common Manageability Programming Interface (CMPI) - OpenGroup
CMCIClient(3)CMPIEnumeration(3)CMPIObjectPath(3)CMPIFlags(3)CMPIStatus(3)
and that's the page, bestie π«Ά this came to you from the SFCBroker Client Library, version tag sfcc, dated 3(2005-06-09). yes it's from 2005 and yes it still ate. periodt. πβ¨
π¦ 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