3(2005-06-09)

πŸ“¦
version 2.2.9~rc1 Β· 2 versions
, in centos-stream 10, centos-stream 9, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

πŸ’– 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 πŸ‘‘


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 πŸŒΈπŸ¦‹πŸ’