cmpi
Macros
cmpimacs.h File Reference
#include "cmpidt.h"
#include "cmpift.h"

Go to the source code of this file.

Macros

#define CMReturn(rc)
 
#define CMReturnWithString(rc, str)
 
#define CMReturnWithChars(b, rc, chars)
 
#define CMSetStatus(st, rcp)   { (st)->rc=(rcp); (st)->msg=NULL; }
 
#define CMSetStatusWithString(st, rcp, string)   { (st)->rc=(rcp); (st)->msg=(string); }
 
#define CMSetStatusWithChars(mb, st, rcp, chars)
 
#define CMIsNullObject(o)   ((o)==NULL || *((void**)(o))==NULL)
 
#define CMIsNullValue(v)   ((v.state) & CMPI_nullValue)
 
#define CMIsKeyValue(v)   ((v.state) & CMPI_keyValue)
 
#define CMIsArray(v)   ((v.type) & CMPI_ARRAY)
 
#define CMClone(o, rc)   ((o)->ft->clone((o),(rc)))
 
#define CMRelease(o)   ((o)->ft->release((o)))
 
#define CMNewInstance(b, c, rc)   ((b)->eft->newInstance((b),(c),(rc)))
 
#define CMNewObjectPath(b, n, c, rc)   ((b)->eft->newObjectPath((b),(n),(c),(rc)))
 
#define CMNewString(b, s, rc)   ((b)->eft->newString((b),(s),(rc)))
 
#define CMNewArgs(b, rc)   ((b)->eft->newArgs((b),(rc)))
 
#define CMNewArray(b, c, t, rc)   ((b)->eft->newArray((b),(c),(t),(rc)))
 
#define CMNewDateTime(b, rc)   ((b)->eft->newDateTime((b),(rc)))
 
#define CMNewDateTimeFromBinary(b, d, i, rc)   ((b)->eft->newDateTimeFromBinary((b),(d),(i),(rc)))
 
#define CMNewDateTimeFromChars(b, d, rc)   ((b)->eft->newDateTimeFromChars((b),(d),(rc)))
 
#define CMNewSelectExp(b, q, l, p, rc)   ((b)->eft->newSelectExp((b),(q),(l),(p),(rc)))
 
#define CMClassPathIsA(b, p, pn, rc)   ((b)->eft->classPathIsA((b),(p),(pn),(rc)))
 
#define CDToString(b, o, rc)   ((b)->eft->toString((b),(void*)(o),(rc)))
 
#define CDIsOfType(b, o, t, rc)   (b)->eft->isOfType((b),(void*)(o),(t),(rc))
 
#define CDGetType(b, o, rc)   ((b)->eft->getType((b),(void*)(o),(rc)))
 
#define CMFmtSint(v)   CMPI_sint32,((long int)v)
 
#define CMFmtUint(v)   CMPI_uint32,((unsigned long int)v)
 
#define CMFmtSint64(v)   CMPI_sint64,((long long int)v)
 
#define CMFmtUint64(v)   CMPI_uint64,((unsigned long long int)v)
 
#define CMFmtReal(v)   CMPI_real64,((double)v)
 
#define CMFmtBoolean(v)   CMPI_boolean,((int)v)
 
#define CMFmtChars(v)   CMPI_chars,((char*)v)
 
#define CMFmtString(v)   CMPI_String,((CMPI_String*)v)
 
#define CMFmtArgs0()   0
 
#define CMFmtArgs1(v1)   1,v1
 
#define CMFmtArgs2(v1, v2)   2,v1,v2
 
#define CMFmtArgs3(v1, v2, v3)   3,v1,v2,v3
 
#define CMFmtArgs4(v1, v2, v3, v4)   4,v1,v2,v3,v4
 
#define CMFmtArgs5(v1, v2, v3, v4, v5)   5,v1,v2,v3,v4,v5
 
#define CMFmtArgs6(v1, v2, v3, v4, v5, v6)   6,v1,v2,v3,v4,v5,v6
 
#define CMFmtArgs7(v1, v2, v3, v4, v5, v6, v7)   7,v1,v2,v3,v4,v5,v6,v7
 
#define CMFmtArgs8(v1, v2, v3, v4, v5, v6, v7, v8)   8,v1,v2,v3,v4,v5,v6,v7,v8
 
#define CMFmtArgs9(v1, v2, v3, v4, v5, v6, v7, v8, v9)   9,v1,v2,v3,v4,v5,v6,v7,v8,v9
 
#define CMFmtArgs10(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10)   10,v1,v2,v3,v4,v5,v6,v7,v8,v9,v10
 
#define CMGetMessage(b, id, def, rc, parms)   ((b)->eft->getMessage((b),(id),(def),(rc),parms))
 
#define CMLogMessage(b, severity, id, text, string)   ((b)->eft->logMessage((b),(severity),(id),(text),(string)))
 
#define CMTraceMessage(b, level, component, text, string)   ((b)->eft->trace((b),(level),(component),(text),(string)))
 
#define CMNewCMPIError(b, owner, msgID, msg, sev, pc, cimStatusCode, rc)
 
#define CMOpenMessageFile(b, mf, mfh)   ((b)->eft->openMessageFile((b),(mf),(mfh)))
 
#define CMCloseMessageFile(b, mfh)   ((b)->eft->closeMessageFile((b),(mfh)))
 
#define CMGetMessage2(b, id, mfh, def, rc, parms)   ((b)->eft->getMessage2((b),(id),(mfh),(def),(rc),parms))
 
#define CMGetProperty(i, n, rc)   ((i)->ft->getProperty((i),(n),(rc)))
 
#define CMGetPropertyAt(i, num, s, rc)   ((i)->ft->getPropertyAt((i),(num),(s),(rc)))
 
#define CMSetProperty(i, n, v, t)   ((i)->ft->setProperty((i),(n),(CMPIValue*)(v),(t)))
 
#define CMGetPropertyCount(i, rc)   ((i)->ft->getPropertyCount((i),(rc)))
 
#define CMGetObjectPath(i, rc)   ((i)->ft->getObjectPath((i),(rc)))
 
#define CMSetObjectPath(i, obj)   ((i)->ft->setObjectPath((i),(obj)))
 
#define CMSetPropertyFilter(i, pl, k)   ((i)->ft->setPropertyFilter((i),(pl),(k)))
 
#define CMSetPropertyWithOrigin(i, n, v, t, o)   ((i)->ft->setPropertyWithOrigin((i),(n),(CMPIValue*)(v),(t),(o)))
 
#define CMSetHostname(p, n)   ((p)->ft->setHostname((p),(n)))
 
#define CMGetHostname(p, rc)   ((p)->ft->getHostname((p),(rc)))
 
#define CMSetNameSpace(p, n)   ((p)->ft->setNameSpace((p),(n)))
 
#define CMGetNameSpace(p, rc)   ((p)->ft->getNameSpace((p),(rc)))
 
#define CMSetClassName(p, n)   ((p)->ft->setClassName((p),(n)))
 
#define CMGetClassName(p, rc)   ((p)->ft->getClassName((p),(rc)))
 
#define CMAddKey(p, n, v, t)   ((p)->ft->addKey((p),(n),(CMPIValue*)(v),(t)))
 
#define CMGetKey(p, n, rc)   ((p)->ft->getKey((p),(n),(rc)))
 
#define CMGetKeyAt(p, i, n, rc)   ((p)->ft->getKeyAt((p),(i),(n),(rc)))
 
#define CMGetKeyCount(p, rc)   ((p)->ft->getKeyCount((p),(rc)))
 
#define CMSetNameSpaceFromObjectPath(p, s)   ((p)->ft->setNameSpaceFromObjectPath((p),(s)))
 
#define CMSetHostAndNameSpaceFromObjectPath(p, s)   ((p)->ft->setHostAndNameSpaceFromObjectPath((p),(s)))
 
#define CMGetClassQualifier(op, qName, rc)   ((op)->ft->getClassQualifier((op),(qName),(rc)))
 
#define CMGetPropertyQualifier(op, pName, qName, rc)   ((op)->ft->getPropertyQualifier((op),(pName),(qName),(rc)))
 
#define CMGetMethodQualifier(op, methodName, qName, rc)   ((op)->ft->getMethodQualifier((op),(methodName),(qName),(rc)))
 
#define CMGetParameterQualifier(op, mName, pName, qName, rc)   ((op)->ft->getParameterQualifier((op),(mName),(pName),(qName),(rc)))
 
#define CMObjectPathToString(p, rc)   ((p)->ft->toString((p),(rc)))
 
#define CMGetArrayCount(a, rc)   ((a)->ft->getSize((a),(rc)))
 
#define CMGetArrayType(a, rc)   ((a)->ft->getSimpleType((a),(rc)))
 
#define CMGetArrayElementAt(a, n, rc)   ((a)->ft->getElementAt((a),(n),(rc)))
 
#define CMSetArrayElementAt(a, n, v, t)   ((a)->ft->setElementAt((a),(n),(CMPIValue*)(v),(t)))
 
#define CMAddArg(a, n, v, t)   ((a)->ft->addArg((a),(n),(CMPIValue*)(v),(t)))
 
#define CMGetArg(a, n, rc)   ((a)->ft->getArg((a),(n),(rc)))
 
#define CMGetArgAt(a, p, n, rc)   ((a)->ft->getArgAt((a),(p),(n),(rc)))
 
#define CMGetArgCount(a, rc)   ((a)->ft->getArgCount((a),(rc)))
 
#define CMGetCharPtr(s)   ((char*)s->hdl)
 
#define CMGetCharsPtr(st, rc)   ((st)->ft->getCharPtr((st),(rc)))
 
#define CMGetStringFormat(d, rc)   ((d)->ft->getStringFormat((d),(rc)))
 
#define CMGetBinaryFormat(d, rc)   ((d)->ft->getBinaryFormat((d),(rc)))
 
#define CMIsInterval(d, rc)   ((d)->ft->isInterval((d),(rc)))
 
#define CMGetErrorType(e, rc)   ((e)->ft->getErrorType((e),(rc)))
 
#define CMGetOtherErrorType(e, rc)   ((e)->ft->getOtherErrorType((e),(rc)))
 
#define CMGetOwningEntity(e, rc)   ((e)->ft->getOwningEntity((e),(rc)))
 
#define CMGetMessageID(e, rc)   ((e)->ft->getMessageID((e),(rc)))
 
#define CMGetErrorMessage(e, rc)   ((e)->ft->getMessage((e),(rc)))
 
#define CMGetPerceivedSeverity(e, rc)   ((e)->ft->getPerceivedSeverity((e),(rc)))
 
#define CMGetProbableCause(e, rc)   ((e)->ft->getProbableCause((e),(rc)))
 
#define CMGetProbableCauseDescription(e, rc)   ((e)->ft->getProbableCauseDescription((e),(rc)))
 
#define CMGetRecommendedActions(e, rc)   ((e)->ft->getRecommendedActions((e),(rc)))
 
#define CMGetErrorSource(e, rc)   ((e)->ft->getErrorSource((e),(rc)))
 
#define CMGetErrorSourceFormat(e, rc)   ((e)->ft->getErrorSourceFormat((e),(rc)))
 
#define CMGetOtherErrorSourceFormat(e, rc)   ((e)->ft->getOtherErrorSourceFormat((e),(rc)))
 
#define CMGetCIMStatusCode(e, rc)   ((e)->ft->getCIMStatusCode((e),(rc)))
 
#define CMGetCIMStatusCodeDescription(e, rc)   ((e)->ft->getCIMStatusCodeDescription((e),(rc)))
 
#define CMGetMessageArguments(e, rc)   ((e)->ft->getMessageArguments((e),(rc)))
 
#define CMSetErrorType(e, et)   ((e)->ft->setErrorType((e),(et)))
 
#define CMSetOtherErrorType(e, oet)   ((e)->ft->setOtherErrorType((e),(oet)))
 
#define CMSetProbableCauseDescription(e, pcd)   ((e)->ft->setProbableCauseDescription((e),(pcd)))
 
#define CMSetRecommendedActions(e, ra)   ((e)->ft->setRecommendedActions((e),(ra)))
 
#define CMSetErrorSource(e, es)   ((e)->ft->setErrorSource((e),(es)))
 
#define CMSetErrorSourceFormat(e, esf)   ((e)->ft->setErrorSourceFormat((e),(esf)))
 
#define CMSetOtherErrorSourceFormat(e, oesf)   ((e)->ft->setOtherErrorSourceFormat((e),(oesf)))
 
#define CMSetCIMStatusCodeDescription(e, cd)   ((e)->ft->setCIMStatusCodeDescription((e),(cd)))
 
#define CMSetMessageArguments(e, ma)   ((e)->ft->setMessageArguments((e),(ma)))
 
#define CMGetNext(n, rc)   ((n)->ft->getNext((n),(rc)))
 
#define CMHasNext(n, rc)   ((n)->ft->hasNext((n),(rc)))
 
#define CMToArray(n, rc)   ((n)->ft->toArray((n),(rc)))
 
#define CMReturnData(r, v, t)   ((r)->ft->returnData((r),(CMPIValue*)(v),(t)))
 
#define CMReturnInstance(r, i)   ((r)->ft->returnInstance((r),(i)))
 
#define CMReturnObjectPath(r, o)   ((r)->ft->returnObjectPath((r),(o)))
 
#define CMReturnDone(r)   ((r)->ft->returnDone((r)))
 
#define CMReturnError(r, e)   ((r)->ft->returnError((r),(e)))
 
#define CMGetContextEntry(c, n, rc)   ((c)->ft->getEntry((c),(n),(rc)))
 
#define CMGetContextEntryAt(c, p, n, rc)   ((c)->ft->getEntryAt((c),(p),(n),(rc)))
 
#define CMGetContextEntryCount(c, rc)   ((c)->ft->getEntryCount((c),(rc)))
 
#define CMAddContextEntry(c, n, v, t)   ((c)->ft->addEntry((c),(n),(CMPIValue*)(v),(t)))
 
#define CMGetSelExpString(s, rc)   ((s)->ft->getString((s),(rc)))
 
#define CMEvaluateSelExp(s, i, r)   ((s)->ft->evaluate((s),(i),(r)))
 
#define CMEvaluateSelExpUsingAccessor(s, i, p, r)   ((s)->ft->evaluateUsingAccessor((s),(i),(p),(r)))
 
#define CMGetDoc(s, rc)   ((s)->ft->getDOC((s),(rc)))
 
#define CMGetCod(s, rc)   ((s)->ft->getCOD((s),(rc)))
 
#define CMGetSubCondCountAndType(c, t, rc)   ((c)->ft->getCountAndType((c),(t),(rc)))
 
#define CMGetSubCondAt(c, p, rc)   ((c)->ft->getSubCondAt((c),(p),(rc)))
 
#define CMGetPredicateCount(s, rc)   ((s)->ft->getCount((s),(rc)))
 
#define CMGetPredicateAt(s, p, rc)   ((s)->ft->getPredicateAt((s),(p),(rc)))
 
#define CMGetPredicate(s, n, rc)   ((s)->ft->getPredicate((s),(n),(rc)))
 
#define CMGetPredicateData(p, t, o, n, v)   ((p)->ft->getData((p),(t),(o),(n),(v)))
 
#define CMEvaluatePredicateUsingAccessor(p, a, parm, rc)   ((p)->ft->evaluateUsingAccessor((p),(a),(parm),(rc)))
 
#define CBGetBrokerCapabilites(b)   ((b)->bft->brokerCapabilites)
 
#define CBBrokerVersion(b)   ((b)->bft->brokerVersion)
 
#define CBBrokerName(b)   ((b)->bft->brokerName)
 
#define CBPrepareAttachThread(b, c)   ((b)->bft->prepareAttachThread((b),(c)))
 
#define CBAttachThread(b, c)   ((b)->bft->attachThread((b),(c)))
 
#define CBDetachThread(b, c)   ((b)->bft->detachThread((b),(c)))
 
#define CBDeliverIndication(b, c, n, i)   ((b)->bft->deliverIndication((b),(c),(n),(i)))
 
#define CBEnumInstanceNames(b, c, p, rc)   ((b)->bft->enumerateInstanceNames((b),(c),(p),(rc)))
 
#define CBEnumInstances(b, c, p, pr, rc)   ((b)->bft->enumerateInstances((b),(c),(p),(pr),(rc)))
 
#define CBGetInstance(b, c, p, pr, rc)   ((b)->bft->getInstance((b),(c),(p),(pr),(rc)))
 
#define CBCreateInstance(b, c, p, i, rc)   ((b)->bft->createInstance((b),(c),(p),(i),(rc)))
 
#define CBModifyInstance(b, c, p, i, pr)   ((b)->bft->modifyInstance((b),(c),(p),(i),(pr)))
 
#define CBDeleteInstance(b, c, p)   ((b)->bft->deleteInstance((b),(c),(p)))
 
#define CBExecQuery(b, c, p, l, q, rc)   ((b)->bft->execQuery((b),(c),(p),(l),(q),(rc)))
 
#define CBAssociators(b, c, p, acl, rcl, r, rr, pr, rc)   ((b)->bft->associators((b),(c),(p),(acl),(rcl),(r),(rr),(pr),(rc)))
 
#define CBAssociatorNames(b, c, p, acl, rcl, r, rr, rc)   ((b)->bft->associatorNames((b),(c),(p),(acl),(rcl),(r),(rr),(rc)))
 
#define CBReferences(b, c, p, acl, r, pr, rc)   ((b)->bft->references((b),(c),(p),(acl),(r),(pr),(rc)))
 
#define CBReferenceNames(b, c, p, acl, r, rc)   ((b)->bft->referenceNames((b),(c),(p),(acl),(r),(rc)))
 
#define CBInvokeMethod(b, c, p, m, ai, ao, rc)   ((b)->bft->invokeMethod((b),(c),(p),(m),(ai),(ao),(rc)))
 
#define CBSetProperty(b, c, p, n, v, t)   ((b)->bft->setProperty((b),(c),(p),(n),(CMPIValue*)(v),(t)))
 
#define CBGetProperty(b, c, p, n, rc)   (b)->bft->getProperty((b),(c),(p),(n),(rc))
 
#define CMNoHook
 
#define CMInstanceMIStubChange(pfx)   pfx##ModifyInstance
 
#define CMInstanceMIStub(pfx, pn, broker, hook)
 
#define CMAssociationMIStub(pfx, pn, broker, hook)
 
#define CMMethodMIStub(pfx, pn, broker, hook)
 
#define CMPropertyMIStub(pfx, pn, broker, hook)
 
#define CMIndicationMIStubExtensions(pfx)
 
#define CMIndicationMIStub(pfx, pn, broker, hook)
 
#define CMInstanceMIFactory(cn, pn)
 
#define CMAssociationMIFactory(cn, pn)
 
#define CMMethodMIFactory(cn, pn)
 
#define CMPropertyMIFactory(cn, pn)
 
#define CMIndicationMIFactoryExtensions
 
#define CMIndicationMIFactory(cn, pn)
 
#define CMProviderBase(pn)   CmpiProviderBase base##pn;
 

Macro Definition Documentation

#define CBAssociatorNames (   b,
  c,
  p,
  acl,
  rcl,
  r,
  rr,
  rc 
)    ((b)->bft->associatorNames((b),(c),(p),(acl),(rcl),(r),(rr),(rc)))
#define CBAssociators (   b,
  c,
  p,
  acl,
  rcl,
  r,
  rr,
  pr,
  rc 
)    ((b)->bft->associators((b),(c),(p),(acl),(rcl),(r),(rr),(pr),(rc)))
#define CBAttachThread (   b,
 
)    ((b)->bft->attachThread((b),(c)))
#define CBBrokerName (   b)    ((b)->bft->brokerName)
#define CBBrokerVersion (   b)    ((b)->bft->brokerVersion)
#define CBCreateInstance (   b,
  c,
  p,
  i,
  rc 
)    ((b)->bft->createInstance((b),(c),(p),(i),(rc)))
#define CBDeleteInstance (   b,
  c,
 
)    ((b)->bft->deleteInstance((b),(c),(p)))
#define CBDeliverIndication (   b,
  c,
  n,
 
)    ((b)->bft->deliverIndication((b),(c),(n),(i)))
#define CBDetachThread (   b,
 
)    ((b)->bft->detachThread((b),(c)))
#define CBEnumInstanceNames (   b,
  c,
  p,
  rc 
)    ((b)->bft->enumerateInstanceNames((b),(c),(p),(rc)))
#define CBEnumInstances (   b,
  c,
  p,
  pr,
  rc 
)    ((b)->bft->enumerateInstances((b),(c),(p),(pr),(rc)))
#define CBExecQuery (   b,
  c,
  p,
  l,
  q,
  rc 
)    ((b)->bft->execQuery((b),(c),(p),(l),(q),(rc)))
#define CBGetBrokerCapabilites (   b)    ((b)->bft->brokerCapabilites)
#define CBGetInstance (   b,
  c,
  p,
  pr,
  rc 
)    ((b)->bft->getInstance((b),(c),(p),(pr),(rc)))
#define CBGetProperty (   b,
  c,
  p,
  n,
  rc 
)    (b)->bft->getProperty((b),(c),(p),(n),(rc))
#define CBInvokeMethod (   b,
  c,
  p,
  m,
  ai,
  ao,
  rc 
)    ((b)->bft->invokeMethod((b),(c),(p),(m),(ai),(ao),(rc)))
#define CBModifyInstance (   b,
  c,
  p,
  i,
  pr 
)    ((b)->bft->modifyInstance((b),(c),(p),(i),(pr)))
#define CBPrepareAttachThread (   b,
 
)    ((b)->bft->prepareAttachThread((b),(c)))
#define CBReferenceNames (   b,
  c,
  p,
  acl,
  r,
  rc 
)    ((b)->bft->referenceNames((b),(c),(p),(acl),(r),(rc)))
#define CBReferences (   b,
  c,
  p,
  acl,
  r,
  pr,
  rc 
)    ((b)->bft->references((b),(c),(p),(acl),(r),(pr),(rc)))
#define CBSetProperty (   b,
  c,
  p,
  n,
  v,
 
)    ((b)->bft->setProperty((b),(c),(p),(n),(CMPIValue*)(v),(t)))
#define CDGetType (   b,
  o,
  rc 
)    ((b)->eft->getType((b),(void*)(o),(rc)))
#define CDIsOfType (   b,
  o,
  t,
  rc 
)    (b)->eft->isOfType((b),(void*)(o),(t),(rc))
#define CDToString (   b,
  o,
  rc 
)    ((b)->eft->toString((b),(void*)(o),(rc)))
#define CMAddArg (   a,
  n,
  v,
 
)    ((a)->ft->addArg((a),(n),(CMPIValue*)(v),(t)))
#define CMAddContextEntry (   c,
  n,
  v,
 
)    ((c)->ft->addEntry((c),(n),(CMPIValue*)(v),(t)))
#define CMAddKey (   p,
  n,
  v,
 
)    ((p)->ft->addKey((p),(n),(CMPIValue*)(v),(t)))
#define CMAssociationMIFactory (   cn,
  pn 
)
Value:
CMPIAssociationMI* pn##_Create_AssociationMI(const CMPIBroker* broker, const CMPIContext *ctxp, CMPIStatus *rc) { \
static CMPIAssociationMIFT assocMIFT={ \
"association" #pn, \
}; \
static CMPIAssociationMI mi; \
CmpiContext ctx((CMPIContext*)ctxp); \
mi.ft=&assocMIFT; \
CmpiBaseMI *provider=base##pn.getBaseMI(); \
if (provider == 0) {\
provider = new cn(CmpiBroker((CMPIBroker*)broker),ctx); \
provider->setProviderBase(&base##pn); \
provider->initialize(ctx); \
base##pn.setBaseMI(provider); \
} \
mi.hdl=provider; \
base##pn.incUseCount(); \
return &mi; \
}
#define CMPICurrentVersion
Definition: cmpidt.h:106
static CMPIStatus driveAssociators(CMPIAssociationMI *mi, const CMPIContext *eCtx, const CMPIResult *eRslt, const CMPIObjectPath *eOp, const char *asscClass, const char *resultClass, const char *role, const char *resultRole, const char **properties)
Definition: CmpiImpl.cpp:303
Definition: CmpiBroker.h:46
struct _CMPIAssociationMI CMPIAssociationMI
static CMPIStatus driveReferenceNames(CMPIAssociationMI *, const CMPIContext *eCtx, const CMPIResult *eRslt, const CMPIObjectPath *eOp, const char *resultClass, const char *role)
Definition: CmpiImpl.cpp:362
Definition: cmpift.h:1061
Definition: cmpift.h:950
static CMPIStatus driveReferences(CMPIAssociationMI *mi, const CMPIContext *eCtx, const CMPIResult *eRslt, const CMPIObjectPath *eOp, const char *resultClass, const char *role, const char **properties)
Definition: CmpiImpl.cpp:343
struct _CMPIStatus CMPIStatus
unsigned char CMPIBoolean
Definition: cmpidt.h:219
Definition: cmpift.h:2718
static CMPIStatus driveBaseCleanup(void *mi, const CMPIContext *eCtx, CMPIBoolean b)
Definition: CmpiImpl.cpp:62
Definition: cmpidt.h:511
Definition: cmpift.h:2694
static CMPIStatus driveAssociatorNames(CMPIAssociationMI *mi, const CMPIContext *eCtx, const CMPIResult *eRslt, const CMPIObjectPath *eOp, const char *assocClass, const char *resultClass, const char *role, const char *resultRole)
Definition: CmpiImpl.cpp:323
#define CMAssociationMIStub (   pfx,
  pn,
  broker,
  hook 
)
Value:
static CMPIAssociationMIFT assocMIFT__={ \
"association" #pn, \
pfx##AssociationCleanup, \
pfx##Associators, \
pfx##AssociatorNames, \
pfx##References, \
pfx##ReferenceNames, \
}; \
CMPIAssociationMI* pn##_Create_AssociationMI(const CMPIBroker* brkr,const CMPIContext *ctx, CMPIStatus *rc) { \
static CMPIAssociationMI mi={ \
NULL, \
&assocMIFT__, \
}; \
broker=brkr; \
hook; \
return &mi; \
}
#define CMPICurrentVersion
Definition: cmpidt.h:106
struct _CMPIAssociationMI CMPIAssociationMI
Definition: cmpift.h:1061
Definition: cmpift.h:950
Definition: cmpift.h:2718
Definition: cmpidt.h:511
Definition: cmpift.h:2694
#define CMClassPathIsA (   b,
  p,
  pn,
  rc 
)    ((b)->eft->classPathIsA((b),(p),(pn),(rc)))
#define CMClone (   o,
  rc 
)    ((o)->ft->clone((o),(rc)))
#define CMCloseMessageFile (   b,
  mfh 
)    ((b)->eft->closeMessageFile((b),(mfh)))
#define CMEvaluatePredicateUsingAccessor (   p,
  a,
  parm,
  rc 
)    ((p)->ft->evaluateUsingAccessor((p),(a),(parm),(rc)))
#define CMEvaluateSelExp (   s,
  i,
 
)    ((s)->ft->evaluate((s),(i),(r)))
#define CMEvaluateSelExpUsingAccessor (   s,
  i,
  p,
 
)    ((s)->ft->evaluateUsingAccessor((s),(i),(p),(r)))
#define CMFmtArgs0 ( )    0
#define CMFmtArgs1 (   v1)    1,v1
#define CMFmtArgs10 (   v1,
  v2,
  v3,
  v4,
  v5,
  v6,
  v7,
  v8,
  v9,
  v10 
)    10,v1,v2,v3,v4,v5,v6,v7,v8,v9,v10
#define CMFmtArgs2 (   v1,
  v2 
)    2,v1,v2
#define CMFmtArgs3 (   v1,
  v2,
  v3 
)    3,v1,v2,v3
#define CMFmtArgs4 (   v1,
  v2,
  v3,
  v4 
)    4,v1,v2,v3,v4
#define CMFmtArgs5 (   v1,
  v2,
  v3,
  v4,
  v5 
)    5,v1,v2,v3,v4,v5
#define CMFmtArgs6 (   v1,
  v2,
  v3,
  v4,
  v5,
  v6 
)    6,v1,v2,v3,v4,v5,v6
#define CMFmtArgs7 (   v1,
  v2,
  v3,
  v4,
  v5,
  v6,
  v7 
)    7,v1,v2,v3,v4,v5,v6,v7
#define CMFmtArgs8 (   v1,
  v2,
  v3,
  v4,
  v5,
  v6,
  v7,
  v8 
)    8,v1,v2,v3,v4,v5,v6,v7,v8
#define CMFmtArgs9 (   v1,
  v2,
  v3,
  v4,
  v5,
  v6,
  v7,
  v8,
  v9 
)    9,v1,v2,v3,v4,v5,v6,v7,v8,v9
#define CMFmtBoolean (   v)    CMPI_boolean,((int)v)
#define CMFmtChars (   v)    CMPI_chars,((char*)v)
#define CMFmtReal (   v)    CMPI_real64,((double)v)
#define CMFmtSint (   v)    CMPI_sint32,((long int)v)
#define CMFmtSint64 (   v)    CMPI_sint64,((long long int)v)
#define CMFmtString (   v)    CMPI_String,((CMPI_String*)v)
#define CMFmtUint (   v)    CMPI_uint32,((unsigned long int)v)
#define CMFmtUint64 (   v)    CMPI_uint64,((unsigned long long int)v)
#define CMGetArg (   a,
  n,
  rc 
)    ((a)->ft->getArg((a),(n),(rc)))
#define CMGetArgAt (   a,
  p,
  n,
  rc 
)    ((a)->ft->getArgAt((a),(p),(n),(rc)))
#define CMGetArgCount (   a,
  rc 
)    ((a)->ft->getArgCount((a),(rc)))
#define CMGetArrayCount (   a,
  rc 
)    ((a)->ft->getSize((a),(rc)))
#define CMGetArrayElementAt (   a,
  n,
  rc 
)    ((a)->ft->getElementAt((a),(n),(rc)))
#define CMGetArrayType (   a,
  rc 
)    ((a)->ft->getSimpleType((a),(rc)))
#define CMGetBinaryFormat (   d,
  rc 
)    ((d)->ft->getBinaryFormat((d),(rc)))
#define CMGetCharPtr (   s)    ((char*)s->hdl)
#define CMGetCharsPtr (   st,
  rc 
)    ((st)->ft->getCharPtr((st),(rc)))
#define CMGetCIMStatusCode (   e,
  rc 
)    ((e)->ft->getCIMStatusCode((e),(rc)))
#define CMGetCIMStatusCodeDescription (   e,
  rc 
)    ((e)->ft->getCIMStatusCodeDescription((e),(rc)))
#define CMGetClassName (   p,
  rc 
)    ((p)->ft->getClassName((p),(rc)))
#define CMGetClassQualifier (   op,
  qName,
  rc 
)    ((op)->ft->getClassQualifier((op),(qName),(rc)))
#define CMGetCod (   s,
  rc 
)    ((s)->ft->getCOD((s),(rc)))
#define CMGetContextEntry (   c,
  n,
  rc 
)    ((c)->ft->getEntry((c),(n),(rc)))
#define CMGetContextEntryAt (   c,
  p,
  n,
  rc 
)    ((c)->ft->getEntryAt((c),(p),(n),(rc)))
#define CMGetContextEntryCount (   c,
  rc 
)    ((c)->ft->getEntryCount((c),(rc)))
#define CMGetDoc (   s,
  rc 
)    ((s)->ft->getDOC((s),(rc)))
#define CMGetErrorMessage (   e,
  rc 
)    ((e)->ft->getMessage((e),(rc)))
#define CMGetErrorSource (   e,
  rc 
)    ((e)->ft->getErrorSource((e),(rc)))
#define CMGetErrorSourceFormat (   e,
  rc 
)    ((e)->ft->getErrorSourceFormat((e),(rc)))
#define CMGetErrorType (   e,
  rc 
)    ((e)->ft->getErrorType((e),(rc)))
#define CMGetHostname (   p,
  rc 
)    ((p)->ft->getHostname((p),(rc)))
#define CMGetKey (   p,
  n,
  rc 
)    ((p)->ft->getKey((p),(n),(rc)))
#define CMGetKeyAt (   p,
  i,
  n,
  rc 
)    ((p)->ft->getKeyAt((p),(i),(n),(rc)))
#define CMGetKeyCount (   p,
  rc 
)    ((p)->ft->getKeyCount((p),(rc)))
#define CMGetMessage (   b,
  id,
  def,
  rc,
  parms 
)    ((b)->eft->getMessage((b),(id),(def),(rc),parms))
#define CMGetMessage2 (   b,
  id,
  mfh,
  def,
  rc,
  parms 
)    ((b)->eft->getMessage2((b),(id),(mfh),(def),(rc),parms))
#define CMGetMessageArguments (   e,
  rc 
)    ((e)->ft->getMessageArguments((e),(rc)))
#define CMGetMessageID (   e,
  rc 
)    ((e)->ft->getMessageID((e),(rc)))
#define CMGetMethodQualifier (   op,
  methodName,
  qName,
  rc 
)    ((op)->ft->getMethodQualifier((op),(methodName),(qName),(rc)))
#define CMGetNameSpace (   p,
  rc 
)    ((p)->ft->getNameSpace((p),(rc)))
#define CMGetNext (   n,
  rc 
)    ((n)->ft->getNext((n),(rc)))
#define CMGetObjectPath (   i,
  rc 
)    ((i)->ft->getObjectPath((i),(rc)))
#define CMGetOtherErrorSourceFormat (   e,
  rc 
)    ((e)->ft->getOtherErrorSourceFormat((e),(rc)))
#define CMGetOtherErrorType (   e,
  rc 
)    ((e)->ft->getOtherErrorType((e),(rc)))
#define CMGetOwningEntity (   e,
  rc 
)    ((e)->ft->getOwningEntity((e),(rc)))
#define CMGetParameterQualifier (   op,
  mName,
  pName,
  qName,
  rc 
)    ((op)->ft->getParameterQualifier((op),(mName),(pName),(qName),(rc)))
#define CMGetPerceivedSeverity (   e,
  rc 
)    ((e)->ft->getPerceivedSeverity((e),(rc)))
#define CMGetPredicate (   s,
  n,
  rc 
)    ((s)->ft->getPredicate((s),(n),(rc)))
#define CMGetPredicateAt (   s,
  p,
  rc 
)    ((s)->ft->getPredicateAt((s),(p),(rc)))
#define CMGetPredicateCount (   s,
  rc 
)    ((s)->ft->getCount((s),(rc)))
#define CMGetPredicateData (   p,
  t,
  o,
  n,
 
)    ((p)->ft->getData((p),(t),(o),(n),(v)))
#define CMGetProbableCause (   e,
  rc 
)    ((e)->ft->getProbableCause((e),(rc)))
#define CMGetProbableCauseDescription (   e,
  rc 
)    ((e)->ft->getProbableCauseDescription((e),(rc)))
#define CMGetProperty (   i,
  n,
  rc 
)    ((i)->ft->getProperty((i),(n),(rc)))
#define CMGetPropertyAt (   i,
  num,
  s,
  rc 
)    ((i)->ft->getPropertyAt((i),(num),(s),(rc)))
#define CMGetPropertyCount (   i,
  rc 
)    ((i)->ft->getPropertyCount((i),(rc)))
#define CMGetPropertyQualifier (   op,
  pName,
  qName,
  rc 
)    ((op)->ft->getPropertyQualifier((op),(pName),(qName),(rc)))
#define CMGetRecommendedActions (   e,
  rc 
)    ((e)->ft->getRecommendedActions((e),(rc)))
#define CMGetSelExpString (   s,
  rc 
)    ((s)->ft->getString((s),(rc)))
#define CMGetStringFormat (   d,
  rc 
)    ((d)->ft->getStringFormat((d),(rc)))
#define CMGetSubCondAt (   c,
  p,
  rc 
)    ((c)->ft->getSubCondAt((c),(p),(rc)))
#define CMGetSubCondCountAndType (   c,
  t,
  rc 
)    ((c)->ft->getCountAndType((c),(t),(rc)))
#define CMHasNext (   n,
  rc 
)    ((n)->ft->hasNext((n),(rc)))
#define CMIndicationMIFactory (   cn,
  pn 
)
Value:
CMPIIndicationMI* pn##_Create_IndicationMI(const CMPIBroker* broker, const CMPIContext *ctxp, CMPIStatus *rc) { \
static CMPIIndicationMIFT indMIFT={ \
"indication" #pn, \
}; \
static CMPIIndicationMI mi; \
CmpiContext ctx((CMPIContext*)ctxp); \
mi.ft=&indMIFT; \
CmpiBaseMI *provider=base##pn.getBaseMI(); \
if (provider == 0) {\
provider = new cn(CmpiBroker((CMPIBroker*)broker),ctx); \
provider->setProviderBase(&base##pn); \
provider->initialize(ctx); \
base##pn.setBaseMI(provider); \
} \
mi.hdl=provider; \
base##pn.incUseCount(); \
return &mi; \
}
#define CMPICurrentVersion
Definition: cmpidt.h:106
Definition: CmpiBroker.h:46
static CMPIStatus driveAuthorizeFilter(CMPIIndicationMI *mi, const CMPIContext *eCtx, const CMPISelectExp *se, const char *ns, const CMPIObjectPath *op, const char *user)
Definition: CmpiImpl.cpp:540
#define CMIndicationMIFactoryExtensions
Definition: cmpimacs.h:3152
Definition: cmpift.h:1061
Definition: cmpift.h:950
struct _CMPIStatus CMPIStatus
unsigned char CMPIBoolean
Definition: cmpidt.h:219
struct _CMPIIndicationMI CMPIIndicationMI
static CMPIStatus driveBaseCleanup(void *mi, const CMPIContext *eCtx, CMPIBoolean b)
Definition: CmpiImpl.cpp:62
Definition: cmpift.h:3163
Definition: cmpidt.h:511
static CMPIStatus driveDeActivateFilter(CMPIIndicationMI *mi, const CMPIContext *eCtx, const CMPISelectExp *se, const char *ns, const CMPIObjectPath *op, CMPIBoolean last)
Definition: CmpiImpl.cpp:593
static CMPIStatus driveActivateFilter(CMPIIndicationMI *mi, const CMPIContext *eCtx, const CMPISelectExp *se, const char *ns, const CMPIObjectPath *op, CMPIBoolean first)
Definition: CmpiImpl.cpp:575
Definition: cmpift.h:3138
static CMPIStatus driveMustPoll(CMPIIndicationMI *mi, const CMPIContext *eCtx, const CMPISelectExp *se, const char *ns, const CMPIObjectPath *op)
Definition: CmpiImpl.cpp:558
#define CMIndicationMIFactoryExtensions
Value:
static CMPIStatus driveEnableIndications(CMPIIndicationMI *mi, const CMPIContext *eCtx)
Definition: CmpiImpl.cpp:611
static CMPIStatus driveDisableIndications(CMPIIndicationMI *mi, const CMPIContext *eCtx)
Definition: CmpiImpl.cpp:626
#define CMIndicationMIStub (   pfx,
  pn,
  broker,
  hook 
)
Value:
static CMPIIndicationMIFT indMIFT__={ \
"Indication" #pn, \
pfx##IndicationCleanup, \
pfx##AuthorizeFilter, \
pfx##MustPoll, \
pfx##ActivateFilter, \
pfx##DeActivateFilter, \
}; \
CMPIIndicationMI* pn##_Create_IndicationMI(const CMPIBroker* brkr,const CMPIContext *ctx,CMPIStatus *rc) { \
static CMPIIndicationMI mi={ \
NULL, \
&indMIFT__, \
}; \
broker=brkr; \
hook; \
return &mi; \
}
#define CMPICurrentVersion
Definition: cmpidt.h:106
Definition: cmpift.h:1061
Definition: cmpift.h:950
struct _CMPIIndicationMI CMPIIndicationMI
Definition: cmpift.h:3163
Definition: cmpidt.h:511
Definition: cmpift.h:3138
#define CMIndicationMIStubExtensions(pfx)
Definition: cmpimacs.h:2928
#define CMIndicationMIStubExtensions (   pfx)
Value:
pfx##EnableIndications, \
pfx##DisableIndications,
#define CMInstanceMIFactory (   cn,
  pn 
)
Value:
CMPIInstanceMI* pn##_Create_InstanceMI(const CMPIBroker* broker, const CMPIContext *ctxp, CMPIStatus *rc) { \
static CMPIInstanceMIFT instMIFT={ \
"instance" #pn, \
}; \
static CMPIInstanceMI mi; \
CmpiContext ctx((CMPIContext*)ctxp); \
mi.ft=&instMIFT; \
CmpiBaseMI *provider=base##pn.getBaseMI(); \
if (provider == 0) {\
provider = new cn(CmpiBroker((CMPIBroker*)broker),ctx); \
provider->setProviderBase(&base##pn); \
provider->initialize(ctx); \
base##pn.setBaseMI(provider); \
} \
mi.hdl=provider; \
base##pn.incUseCount(); \
return &mi; \
}
#define CMPICurrentVersion
Definition: cmpidt.h:106
static CMPIStatus driveSetInstance(CMPIInstanceMI *mi, const CMPIContext *eCtx, const CMPIResult *eRslt, const CMPIObjectPath *eCop, const CMPIInstance *eInst, const char **properties)
Definition: CmpiImpl.cpp:189
Definition: CmpiBroker.h:46
static CMPIStatus driveExecQuery(CMPIInstanceMI *mi, const CMPIContext *eCtx, const CMPIResult *eRslt, const CMPIObjectPath *eCop, const char *language, const char *query)
Definition: CmpiImpl.cpp:227
Definition: cmpift.h:2488
Definition: cmpift.h:1061
Definition: cmpift.h:950
struct _CMPIStatus CMPIStatus
static CMPIStatus driveDeleteInstance(CMPIInstanceMI *mi, const CMPIContext *eCtx, const CMPIResult *eRslt, const CMPIObjectPath *eCop)
Definition: CmpiImpl.cpp:209
static CMPIStatus driveGetInstance(CMPIInstanceMI *mi, const CMPIContext *eCtx, const CMPIResult *eRslt, const CMPIObjectPath *eCop, const char **properties)
Definition: CmpiImpl.cpp:152
unsigned char CMPIBoolean
Definition: cmpidt.h:219
static CMPIStatus driveCreateInstance(CMPIInstanceMI *mi, const CMPIContext *eCtx, const CMPIResult *eRslt, const CMPIObjectPath *eCop, const CMPIInstance *eInst)
Definition: CmpiImpl.cpp:170
static CMPIStatus driveEnumInstanceNames(CMPIInstanceMI *mi, const CMPIContext *eCtx, const CMPIResult *eRslt, const CMPIObjectPath *eCop)
Definition: CmpiImpl.cpp:117
static CMPIStatus driveBaseCleanup(void *mi, const CMPIContext *eCtx, CMPIBoolean b)
Definition: CmpiImpl.cpp:62
Definition: cmpidt.h:511
Definition: cmpift.h:2513
struct _CMPIInstanceMI CMPIInstanceMI
static CMPIStatus driveEnumInstances(CMPIInstanceMI *mi, const CMPIContext *eCtx, const CMPIResult *eRslt, const CMPIObjectPath *eCop, const char **properties)
Definition: CmpiImpl.cpp:134
#define CMInstanceMIStub (   pfx,
  pn,
  broker,
  hook 
)
Value:
static CMPIInstanceMIFT instMIFT__={ \
"instance" #pn, \
pfx##Cleanup, \
pfx##EnumInstanceNames, \
pfx##EnumInstances, \
pfx##GetInstance, \
pfx##CreateInstance, \
pfx##DeleteInstance, \
pfx##ExecQuery, \
}; \
CMPIInstanceMI* pn##_Create_InstanceMI(const CMPIBroker* brkr,const CMPIContext *ctx, CMPIStatus *rc) { \
static CMPIInstanceMI mi={ \
NULL, \
&instMIFT__, \
}; \
broker=brkr; \
hook; \
return &mi; \
}
#define CMPICurrentVersion
Definition: cmpidt.h:106
Definition: cmpift.h:2488
Definition: cmpift.h:1061
Definition: cmpift.h:950
#define CMInstanceMIStubChange(pfx)
Definition: cmpimacs.h:2740
Definition: cmpidt.h:511
Definition: cmpift.h:2513
struct _CMPIInstanceMI CMPIInstanceMI
#define CMInstanceMIStubChange (   pfx)    pfx##ModifyInstance
#define CMIsArray (   v)    ((v.type) & CMPI_ARRAY)
#define CMIsInterval (   d,
  rc 
)    ((d)->ft->isInterval((d),(rc)))
#define CMIsKeyValue (   v)    ((v.state) & CMPI_keyValue)
#define CMIsNullObject (   o)    ((o)==NULL || *((void**)(o))==NULL)
#define CMIsNullValue (   v)    ((v.state) & CMPI_nullValue)
#define CMLogMessage (   b,
  severity,
  id,
  text,
  string 
)    ((b)->eft->logMessage((b),(severity),(id),(text),(string)))
#define CMMethodMIFactory (   cn,
  pn 
)
Value:
CMPIMethodMI* pn##_Create_MethodMI(const CMPIBroker* broker, const CMPIContext *ctxp, CMPIStatus *rc) { \
static CMPIMethodMIFT methMIFT={ \
"method" #pn, \
}; \
static CMPIMethodMI mi; \
CmpiContext ctx((CMPIContext*)ctxp); \
mi.ft=&methMIFT; \
CmpiBaseMI *provider=base##pn.getBaseMI(); \
if (provider == 0) {\
provider = new cn(CmpiBroker((CMPIBroker*)broker),ctx); \
provider->setProviderBase(&base##pn); \
provider->initialize(ctx); \
base##pn.setBaseMI(provider); \
} \
mi.hdl=provider; \
base##pn.incUseCount(); \
return &mi; \
}
#define CMPICurrentVersion
Definition: cmpidt.h:106
Definition: CmpiBroker.h:46
Definition: cmpift.h:1061
Definition: cmpift.h:950
struct _CMPIStatus CMPIStatus
Definition: cmpift.h:2937
unsigned char CMPIBoolean
Definition: cmpidt.h:219
static CMPIStatus driveBaseCleanup(void *mi, const CMPIContext *eCtx, CMPIBoolean b)
Definition: CmpiImpl.cpp:62
Definition: cmpidt.h:511
Definition: cmpift.h:2912
static CMPIStatus driveInvokeMethod(CMPIMethodMI *mi, const CMPIContext *eCtx, const CMPIResult *eRslt, const CMPIObjectPath *eCop, const char *methodName, const CMPIArgs *eIn, CMPIArgs *eOut)
Definition: CmpiImpl.cpp:425
struct _CMPIMethodMI CMPIMethodMI
#define CMMethodMIStub (   pfx,
  pn,
  broker,
  hook 
)
Value:
static CMPIMethodMIFT methMIFT__={ \
"method" #pn, \
pfx##MethodCleanup, \
pfx##InvokeMethod, \
}; \
CMPIMethodMI* pn##_Create_MethodMI(const CMPIBroker* brkr, const CMPIContext *ctx, CMPIStatus *rc) { \
static CMPIMethodMI mi={ \
NULL, \
&methMIFT__, \
}; \
broker=brkr; \
hook; \
return &mi; \
}
#define CMPICurrentVersion
Definition: cmpidt.h:106
Definition: cmpift.h:1061
Definition: cmpift.h:950
Definition: cmpift.h:2937
Definition: cmpidt.h:511
Definition: cmpift.h:2912
struct _CMPIMethodMI CMPIMethodMI
#define CMNewArgs (   b,
  rc 
)    ((b)->eft->newArgs((b),(rc)))
#define CMNewArray (   b,
  c,
  t,
  rc 
)    ((b)->eft->newArray((b),(c),(t),(rc)))
#define CMNewCMPIError (   b,
  owner,
  msgID,
  msg,
  sev,
  pc,
  cimStatusCode,
  rc 
)
Value:
((b)->eft->newCMPIError((b),(owner),(msgID),(msg),(sev), \
(pc),(cimStatusCode),(rc)))
#define CMNewDateTime (   b,
  rc 
)    ((b)->eft->newDateTime((b),(rc)))
#define CMNewDateTimeFromBinary (   b,
  d,
  i,
  rc 
)    ((b)->eft->newDateTimeFromBinary((b),(d),(i),(rc)))
#define CMNewDateTimeFromChars (   b,
  d,
  rc 
)    ((b)->eft->newDateTimeFromChars((b),(d),(rc)))
#define CMNewInstance (   b,
  c,
  rc 
)    ((b)->eft->newInstance((b),(c),(rc)))
#define CMNewObjectPath (   b,
  n,
  c,
  rc 
)    ((b)->eft->newObjectPath((b),(n),(c),(rc)))
#define CMNewSelectExp (   b,
  q,
  l,
  p,
  rc 
)    ((b)->eft->newSelectExp((b),(q),(l),(p),(rc)))
#define CMNewString (   b,
  s,
  rc 
)    ((b)->eft->newString((b),(s),(rc)))
#define CMNoHook
#define CMObjectPathToString (   p,
  rc 
)    ((p)->ft->toString((p),(rc)))
#define CMOpenMessageFile (   b,
  mf,
  mfh 
)    ((b)->eft->openMessageFile((b),(mf),(mfh)))
#define CMPropertyMIFactory (   cn,
  pn 
)
Value:
CMPIPropertyMI* pn##_Create_PropertyMI(const CMPIBroker* broker, const CMPIContext *ctxp, CMPIStatus *rc) { \
static CMPIPropertyMIFT propMIFT={ \
"property" #pn, \
}; \
static CMPIPropertyMI mi; \
CmpiContext ctx((CMPIContext*)ctxp); \
mi.ft=&propMIFT; \
CmpiBaseMI *provider=base##pn.getBaseMI(); \
if (provider == 0) {\
provider = new cn(CmpiBroker((CMPIBroker*)broker),ctx); \
provider->setProviderBase(&base##pn); \
provider->initialize(ctx); \
base##pn.setBaseMI(provider); \
} \
mi.hdl=provider; \
base##pn.incUseCount(); \
return &mi; \
}
#define CMPICurrentVersion
Definition: cmpidt.h:106
Definition: CmpiBroker.h:46
Definition: cmpift.h:1061
Definition: cmpift.h:950
struct _CMPIPropertyMI CMPIPropertyMI
struct _CMPIStatus CMPIStatus
unsigned char CMPIBoolean
Definition: cmpidt.h:219
static CMPIStatus driveBaseCleanup(void *mi, const CMPIContext *eCtx, CMPIBoolean b)
Definition: CmpiImpl.cpp:62
Definition: cmpidt.h:511
static CMPIStatus driveGetProperty(CMPIPropertyMI *mi, const CMPIContext *eCtx, const CMPIResult *eRslt, const CMPIObjectPath *eOp, const char *name)
Definition: CmpiImpl.cpp:493
Definition: cmpift.h:3036
Definition: cmpift.h:3011
static CMPIStatus driveSetProperty(CMPIPropertyMI *mi, const CMPIContext *eCtx, const CMPIResult *eRslt, const CMPIObjectPath *eOp, const char *name, CMPIData data)
Definition: CmpiImpl.cpp:475
#define CMPropertyMIStub (   pfx,
  pn,
  broker,
  hook 
)
Value:
static CMPIPropertyMIFT propMIFT__={ \
"property" #pn, \
pfx##PropertyCleanup, \
pfx##SetProperty, \
pfx##GetProperty, \
}; \
CMPIPropertyMI* pn##_Create_PropertyMI(const CMPIBroker* brkr,const CMPIContext *ctx, CMPIStatus *rc) { \
static CMPIPropertyMI mi={ \
NULL, \
&propMIFT__, \
}; \
broker=brkr; \
hook; \
return &mi; \
}
#define CMPICurrentVersion
Definition: cmpidt.h:106
Definition: cmpift.h:1061
Definition: cmpift.h:950
struct _CMPIPropertyMI CMPIPropertyMI
Definition: cmpidt.h:511
Definition: cmpift.h:3036
Definition: cmpift.h:3011
#define CMProviderBase (   pn)    CmpiProviderBase base##pn;
#define CMRelease (   o)    ((o)->ft->release((o)))
#define CMReturn (   rc)
#define CMReturnData (   r,
  v,
 
)    ((r)->ft->returnData((r),(CMPIValue*)(v),(t)))
#define CMReturnDone (   r)    ((r)->ft->returnDone((r)))
#define CMReturnError (   r,
 
)    ((r)->ft->returnError((r),(e)))
#define CMReturnInstance (   r,
 
)    ((r)->ft->returnInstance((r),(i)))
#define CMReturnObjectPath (   r,
 
)    ((r)->ft->returnObjectPath((r),(o)))
#define CMReturnWithChars (   b,
  rc,
  chars 
)
Value:
{ CMPIStatus stat={(rc),NULL}; \
stat.msg=(b)->eft->newString((b),(chars),NULL); \
return stat; }
Definition: cmpidt.h:511
CMPIString * msg
Definition: cmpidt.h:520
#define CMReturnWithString (   rc,
  str 
)
Value:
{ CMPIStatus stat={(rc),(str)}; \
return stat; }
Definition: cmpidt.h:511
#define CMSetArrayElementAt (   a,
  n,
  v,
 
)    ((a)->ft->setElementAt((a),(n),(CMPIValue*)(v),(t)))
#define CMSetCIMStatusCodeDescription (   e,
  cd 
)    ((e)->ft->setCIMStatusCodeDescription((e),(cd)))
#define CMSetClassName (   p,
 
)    ((p)->ft->setClassName((p),(n)))
#define CMSetErrorSource (   e,
  es 
)    ((e)->ft->setErrorSource((e),(es)))
#define CMSetErrorSourceFormat (   e,
  esf 
)    ((e)->ft->setErrorSourceFormat((e),(esf)))
#define CMSetErrorType (   e,
  et 
)    ((e)->ft->setErrorType((e),(et)))
#define CMSetHostAndNameSpaceFromObjectPath (   p,
 
)    ((p)->ft->setHostAndNameSpaceFromObjectPath((p),(s)))
#define CMSetHostname (   p,
 
)    ((p)->ft->setHostname((p),(n)))
#define CMSetMessageArguments (   e,
  ma 
)    ((e)->ft->setMessageArguments((e),(ma)))
#define CMSetNameSpace (   p,
 
)    ((p)->ft->setNameSpace((p),(n)))
#define CMSetNameSpaceFromObjectPath (   p,
 
)    ((p)->ft->setNameSpaceFromObjectPath((p),(s)))
#define CMSetObjectPath (   i,
  obj 
)    ((i)->ft->setObjectPath((i),(obj)))
#define CMSetOtherErrorSourceFormat (   e,
  oesf 
)    ((e)->ft->setOtherErrorSourceFormat((e),(oesf)))
#define CMSetOtherErrorType (   e,
  oet 
)    ((e)->ft->setOtherErrorType((e),(oet)))
#define CMSetProbableCauseDescription (   e,
  pcd 
)    ((e)->ft->setProbableCauseDescription((e),(pcd)))
#define CMSetProperty (   i,
  n,
  v,
 
)    ((i)->ft->setProperty((i),(n),(CMPIValue*)(v),(t)))
#define CMSetPropertyFilter (   i,
  pl,
 
)    ((i)->ft->setPropertyFilter((i),(pl),(k)))
#define CMSetPropertyWithOrigin (   i,
  n,
  v,
  t,
 
)    ((i)->ft->setPropertyWithOrigin((i),(n),(CMPIValue*)(v),(t),(o)))
#define CMSetRecommendedActions (   e,
  ra 
)    ((e)->ft->setRecommendedActions((e),(ra)))
#define CMSetStatus (   st,
  rcp 
)    { (st)->rc=(rcp); (st)->msg=NULL; }
#define CMSetStatusWithChars (   mb,
  st,
  rcp,
  chars 
)
Value:
{ (st)->rc=(rcp); \
(st)->msg=(mb)->eft->newString((mb),(chars),NULL); }
#define CMSetStatusWithString (   st,
  rcp,
  string 
)    { (st)->rc=(rcp); (st)->msg=(string); }
#define CMToArray (   n,
  rc 
)    ((n)->ft->toArray((n),(rc)))
#define CMTraceMessage (   b,
  level,
  component,
  text,
  string 
)    ((b)->eft->trace((b),(level),(component),(text),(string)))