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

πŸ’… CMCIClientFT.createInstance() β€” Create class instance πŸ’…

okay bestie, so this is a section 3 page (that's library calls, iykyk) and it lives in the 3 manual, dated 2005-06-09. Pull up a chair, we're making a whole new instance and it's gonna be iconic. πŸ¦‹


✨ SYNOPSIS ✨

#include <cmci.h>

CMPIObjectPath*
CMCIClientFT.createInstance(CMCIClient*cl,
               CMPIObjectPath*op,
               CMPIInstance*inst,
               CMPIStatus*rc);

🌸 DESCRIPTION 🌸

So basically: you're creating a class instance, and you use op as your reference. That's the whole vibe. ✨

Now the arguments, one by one, no skipping, periodt:

  • cl β€” the client object pointer. Your main character.
  • op β€” the ObjectPath object pointer, and it's the one holding the namespace and classname components. It's giving "address label for your new baby instance."
  • inst β€” a complete instance object pointer. Complete! Not a half-finished draft, not a situationship, a full instance.
  • rc β€” the CMPI operation status. And here's the tea: it's suppressed when NULL. So if you pass NULL, it just… doesn't report back. πŸ™ˆ

πŸ‘‘ RETURN VALUE πŸ‘‘

When it slays (successful), CMCIClientFT.createInstance() returns a pointer to a CMPIObjectPath object carrying the new instance reference, and it sets a successful status code for rc. πŸŽ€

When it does NOT slay (unsuccessful), it returns NULL, and it sets the rc argument with the error code and the corresponding error string. So even when it flops, you get receipts.


πŸ’€ ERRORS πŸ’€

(nothing listed here, bestie β€” it's literally empty, that's not me skipping it πŸ’œ)


🌈 EXAMPLES 🌈

(also empty. no examples were given. we're on our own out here. 😭)


🫢 SEE ALSO 🫢


and that's the whole page, no cap πŸ’– go forth and create instances responsibly ✨

SFCBroker Client Library β€” sfcc β€” dated 2005-06-09. mwah, take care of her πŸŽ€πŸ’