3(2005-06-09)
π CMCIClientFT.enumInstanceNames() π
okay so bestie, welcome to manual section 3 π«Ά this is the page for CMCIClientFT.enumInstanceNames(), dated 2005-06-09 (yes she's an elder but she still serves π
). grab a strawberry π and let's get into it.
β¨ NAME β¨
CMCIClientFT.enumInstanceNames() β enumerate instance names of a class π
πΈ SYNOPSIS πΈ
#include <cmci.h>
CMPIEnumeration*
CMCIClientFT.enumInstanceNames(CMCIClient*cl,
CMPIObjectPath*op,
CMPIStatus*rc);
π¦ DESCRIPTION π¦
So what she does is enumerate the Instance Names of the class (and its subclasses) that op defines. that's the whole gig. she's a name-dropper, not a full-detail-dumper.
the arguments, one by one, no skipping:
clβ the client object pointer. your connection baddie.opβ anObjectPathobject pointer, and the reference inside it carries the namespace and classname components. so that's where she learns who you're asking about.rcβ this is where the operation status lands. and listen: it gets suppressed whenNULL, so if you passNULLyou simply do not get a status back. your call, bestie π
β RETURN VALUE β
When it works out: CMCIClientFT.enumInstanceNames() hands you back a pointer to a CMPIEnumeration object, and that object contains strings for each instance name found for the class. she also sets a successful operation status code in rc. slay β¨
When it does not work out: she returns a NULL pointer and sets the operation status error code plus the corresponding error string in rc. not her finest moment but she's honest about it π
π ERRORS π
...literally nothing here. the section exists and it is empty. no cap. π«₯
π EXAMPLES π
here's the whole vibe, verbatim, typos and all (they're part of her charm, do not touch them π):
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->enumInstanceNames(cc, objectpath, &status);
if (!status.rc) { fprintf(stderr, "operation error code %d
description %s0, status.rc, status.msg->hdl);
abort();
}
so: connect, build an object path for root/cimv2, call the function, and if status.rc is falsy she bails with abort(). main character energy only π₯
π CONFORMING TO π
also empty. nothing listed. we move π
π SEE ALSO π
- Common Manageability Programming Interface (CMPI) - OpenGroup
CMCIClient(3)CMPIEnumeration(3)CMPIObjectPath(3)CMPIStatus(3)
go read those if you want the full lore, iykyk π§
that's the whole page, bestie β you ate it. this little gem came to you from the SFCBroker Client Library, sfcc edition, page 3 dated 2005-06-09. mwah π
π
π¦ 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