#include "cmpidt.h"
#include "cmpift.h"
Go to the source code of this file.
Defines | |
#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 | 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 | CMSetPropertyFilter(i, pl, k) ((i)->ft->setPropertyFilter((i),(pl),(k))) |
#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 | 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 | 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 | 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 | 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 | 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 | CBSetInstance(b, c, p, i) ((b)->bft->setInstance((b),(c),(p),(i),NULL)) |
#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##SetInstance |
#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; |
#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, | |||
c | ) | ((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, | |||||
p | ) | ((b)->bft->deleteInstance((b),(c),(p))) |
#define CBDeliverIndication | ( | b, | |||
c, | |||||
n, | |||||
i | ) | ((b)->bft->deliverIndication((b),(c),(n),(i))) |
#define CBDetachThread | ( | b, | |||
c | ) | ((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 CBPrepareAttachThread | ( | b, | |||
c | ) | ((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 CBSetInstance | ( | b, | |||
c, | |||||
p, | |||||
i | ) | ((b)->bft->setInstance((b),(c),(p),(i),NULL)) |
#define CBSetProperty | ( | b, | |||
c, | |||||
p, | |||||
n, | |||||
v, | |||||
t | ) | ((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, | |||||
t | ) | ((a)->ft->addArg((a),(n),(CMPIValue*)(v),(t))) |
#define CMAddContextEntry | ( | c, | |||
n, | |||||
v, | |||||
t | ) | ((c)->ft->addEntry((c),(n),(CMPIValue*)(v),(t))) |
#define CMAddKey | ( | p, | |||
n, | |||||
v, | |||||
t | ) | ((p)->ft->addKey((p),(n),(CMPIValue*)(v),(t))) |
#define CMAssociationMIFactory | ( | cn, | |||
pn | ) |
CMPI_EXTERN_C \ CMPIAssociationMI* pn##_Create_AssociationMI(const CMPIBroker* broker, const CMPIContext *ctxp, CMPIStatus *rc) { \ static CMPIAssociationMIFT assocMIFT={ \ CMPICurrentVersion, \ CMPICurrentVersion, \ "association" #pn, \ (CMPIStatus(*)(CMPIAssociationMI*,const CMPIContext*,CMPIBoolean))CmpiBaseMI::driveBaseCleanup, \ CmpiAssociationMI::driveAssociators, \ CmpiAssociationMI::driveAssociatorNames, \ CmpiAssociationMI::driveReferences, \ CmpiAssociationMI::driveReferenceNames, \ }; \ 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 CMAssociationMIStub | ( | pfx, | |||
pn, | |||||
broker, | |||||
hook | ) |
static CMPIAssociationMIFT assocMIFT__={ \ CMPICurrentVersion, \ CMPICurrentVersion, \ "association" #pn, \ pfx##AssociationCleanup, \ pfx##Associators, \ pfx##AssociatorNames, \ pfx##References, \ pfx##ReferenceNames, \ }; \ CMPI_EXTERN_C \ CMPIAssociationMI* pn##_Create_AssociationMI(const CMPIBroker* brkr,const CMPIContext *ctx, CMPIStatus *rc) { \ static CMPIAssociationMI mi={ \ NULL, \ &assocMIFT__, \ }; \ broker=brkr; \ hook; \ return &mi; \ }
#define CMClassPathIsA | ( | b, | |||
p, | |||||
pn, | |||||
rc | ) | ((b)->eft->classPathIsA((b),(p),(pn),(rc))) |
#define CMClone | ( | o, | |||
rc | ) | ((o)->ft->clone((o),(rc))) |
#define CMEvaluateSelExp | ( | s, | |||
i, | |||||
r | ) | ((s)->ft->evaluate((s),(i),(r))) |
#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) |
Referenced by C_InstanceTestEnumInstanceNames(), CmpiObjectPath::makeObjectPath(), and CmpiStatus::msg().
#define CMGetCharsPtr | ( | st, | |||
rc | ) | ((st)->ft->getCharPtr((st),(rc))) |
#define CMGetClassName | ( | p, | |||
rc | ) | ((p)->ft->getClassName((p),(rc))) |
Referenced by C_InstanceTestEnumInstanceNames().
#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 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))) |
Referenced by C_InstanceTestGetInstance().
#define CMGetKeyCount | ( | p, | |||
rc | ) | ((p)->ft->getKeyCount((p),(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 CMGetParameterQualifier | ( | op, | |||
mName, | |||||
pName, | |||||
qName, | |||||
rc | ) | ((op)->ft->getParameterQualifier((op),(mName),(pName),(qName),(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, | |||||
v | ) | ((p)->ft->getData((p),(t),(o),(n),(v))) |
#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 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 | ) |
CMPI_EXTERN_C \ CMPIIndicationMI* pn##_Create_IndicationMI(const CMPIBroker* broker, const CMPIContext *ctxp, CMPIStatus *rc) { \ static CMPIIndicationMIFT indMIFT={ \ CMPICurrentVersion, \ CMPICurrentVersion, \ "indication" #pn, \ (CMPIStatus(*)(CMPIIndicationMI*,const CMPIContext*,CMPIBoolean))CmpiBaseMI::driveBaseCleanup, \ CmpiIndicationMI::driveAuthorizeFilter, \ CmpiIndicationMI::driveMustPoll, \ CmpiIndicationMI::driveActivateFilter, \ CmpiIndicationMI::driveDeActivateFilter, \ CMIndicationMIFactoryExtensions \ }; \ 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 CMIndicationMIFactoryExtensions |
#define CMIndicationMIStub | ( | pfx, | |||
pn, | |||||
broker, | |||||
hook | ) |
static CMPIIndicationMIFT indMIFT__={ \ CMPICurrentVersion, \ CMPICurrentVersion, \ "Indication" #pn, \ pfx##IndicationCleanup, \ pfx##AuthorizeFilter, \ pfx##MustPoll, \ pfx##ActivateFilter, \ pfx##DeActivateFilter, \ CMIndicationMIStubExtensions(pfx) \ }; \ CMPI_EXTERN_C \ CMPIIndicationMI* pn##_Create_IndicationMI(const CMPIBroker* brkr,const CMPIContext *ctx,CMPIStatus *rc) { \ static CMPIIndicationMI mi={ \ NULL, \ &indMIFT__, \ }; \ broker=brkr; \ hook; \ return &mi; \ }
#define CMIndicationMIStubExtensions | ( | pfx | ) |
#define CMInstanceMIFactory | ( | cn, | |||
pn | ) |
CMPI_EXTERN_C \ CMPIInstanceMI* pn##_Create_InstanceMI(const CMPIBroker* broker, const CMPIContext *ctxp, CMPIStatus *rc) { \ static CMPIInstanceMIFT instMIFT={ \ CMPICurrentVersion, \ CMPICurrentVersion, \ "instance" #pn, \ (CMPIStatus(*)(CMPIInstanceMI*,const CMPIContext*,CMPIBoolean))CmpiBaseMI::driveBaseCleanup, \ CmpiInstanceMI::driveEnumInstanceNames, \ CmpiInstanceMI::driveEnumInstances, \ CmpiInstanceMI::driveGetInstance, \ CmpiInstanceMI::driveCreateInstance, \ CmpiInstanceMI::driveSetInstance, \ CmpiInstanceMI::driveDeleteInstance, \ CmpiInstanceMI::driveExecQuery, \ }; \ 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 CMInstanceMIStub | ( | pfx, | |||
pn, | |||||
broker, | |||||
hook | ) |
static CMPIInstanceMIFT instMIFT__={ \ CMPICurrentVersion, \ CMPICurrentVersion, \ "instance" #pn, \ pfx##Cleanup, \ pfx##EnumInstanceNames, \ pfx##EnumInstances, \ pfx##GetInstance, \ pfx##CreateInstance, \ CMInstanceMIStubChange(pfx), \ pfx##DeleteInstance, \ pfx##ExecQuery, \ }; \ CMPI_EXTERN_C \ CMPIInstanceMI* pn##_Create_InstanceMI(const CMPIBroker* brkr,const CMPIContext *ctx, CMPIStatus *rc) { \ static CMPIInstanceMI mi={ \ NULL, \ &instMIFT__, \ }; \ broker=brkr; \ hook; \ return &mi; \ }
#define CMInstanceMIStubChange | ( | pfx | ) | pfx##SetInstance |
#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) |
Referenced by C_InstanceTestGetInstance().
#define CMMethodMIFactory | ( | cn, | |||
pn | ) |
CMPI_EXTERN_C \ CMPIMethodMI* pn##_Create_MethodMI(const CMPIBroker* broker, const CMPIContext *ctxp, CMPIStatus *rc) { \ static CMPIMethodMIFT methMIFT={ \ CMPICurrentVersion, \ CMPICurrentVersion, \ "method" #pn, \ (CMPIStatus(*)(CMPIMethodMI*,const CMPIContext*, CMPIBoolean))CmpiBaseMI::driveBaseCleanup, \ CmpiMethodMI::driveInvokeMethod, \ }; \ 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 CMMethodMIStub | ( | pfx, | |||
pn, | |||||
broker, | |||||
hook | ) |
static CMPIMethodMIFT methMIFT__={ \ CMPICurrentVersion, \ CMPICurrentVersion, \ "method" #pn, \ pfx##MethodCleanup, \ pfx##InvokeMethod, \ }; \ CMPI_EXTERN_C \ CMPIMethodMI* pn##_Create_MethodMI(const CMPIBroker* brkr, const CMPIContext *ctx, CMPIStatus *rc) { \ static CMPIMethodMI mi={ \ NULL, \ &methMIFT__, \ }; \ broker=brkr; \ hook; \ return &mi; \ }
#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 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))) |
Referenced by CmpiStatus::CmpiStatus(), and CmpiString::CmpiString().
#define CMNoHook |
#define CMPropertyMIFactory | ( | cn, | |||
pn | ) |
CMPI_EXTERN_C \ CMPIPropertyMI* pn##_Create_PropertyMI(const CMPIBroker* broker, const CMPIContext *ctxp, CMPIStatus *rc) { \ static CMPIPropertyMIFT propMIFT={ \ CMPICurrentVersion, \ CMPICurrentVersion, \ "property" #pn, \ (CMPIStatus(*)(CMPIPropertyMI*,const CMPIContext*,CMPIBoolean))CmpiBaseMI::driveBaseCleanup, \ CmpiPropertyMI::driveSetProperty, \ CmpiPropertyMI::driveGetProperty, \ }; \ 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 CMPropertyMIStub | ( | pfx, | |||
pn, | |||||
broker, | |||||
hook | ) |
static CMPIPropertyMIFT propMIFT__={ \ CMPICurrentVersion, \ CMPICurrentVersion, \ "property" #pn, \ pfx##PropertyCleanup, \ pfx##SetProperty, \ pfx##GetProperty, \ }; \ CMPI_EXTERN_C \ CMPIPropertyMI* pn##_Create_PropertyMI(const CMPIBroker* brkr,const CMPIContext *ctx, CMPIStatus *rc) { \ static CMPIPropertyMI mi={ \ NULL, \ &propMIFT__, \ }; \ broker=brkr; \ hook; \ return &mi; \ }
#define CMProviderBase | ( | pn | ) | CmpiProviderBase base##pn; |
#define CMRelease | ( | o | ) | ((o)->ft->release((o))) |
#define CMReturn | ( | rc | ) |
{ CMPIStatus stat={(rc),NULL}; \ return stat; }
Referenced by C_InstanceTestCleanup(), C_InstanceTestCreateInstance(), C_InstanceTestDeleteInstance(), C_InstanceTestEnumInstanceNames(), C_InstanceTestEnumInstances(), C_InstanceTestExecQuery(), C_InstanceTestGetInstance(), and C_InstanceTestModifyInstance().
#define CMReturnData | ( | r, | |||
v, | |||||
t | ) | ((r)->ft->returnData((r),(CMPIValue*)(v),(t))) |
#define CMReturnDone | ( | r | ) | ((r)->ft->returnDone((r))) |
#define CMReturnInstance | ( | r, | |||
i | ) | ((r)->ft->returnInstance((r),(i))) |
#define CMReturnObjectPath | ( | r, | |||
o | ) | ((r)->ft->returnObjectPath((r),(o))) |
#define CMReturnWithChars | ( | b, | |||
rc, | |||||
chars | ) |
{ CMPIStatus stat={(rc),NULL}; \ stat.msg=(b)->eft->newString((b),(chars),NULL); \ return stat; }
#define CMReturnWithString | ( | rc, | |||
str | ) |
{ CMPIStatus stat={(rc),(str)}; \ return stat; }
#define CMSetArrayElementAt | ( | a, | |||
n, | |||||
v, | |||||
t | ) | ((a)->ft->setElementAt((a),(n),(CMPIValue*)(v),(t))) |
#define CMSetClassName | ( | p, | |||
n | ) | ((p)->ft->setClassName((p),(n))) |
#define CMSetHostAndNameSpaceFromObjectPath | ( | p, | |||
s | ) | ((p)->ft->setHostAndNameSpaceFromObjectPath((p),(s))) |
#define CMSetHostname | ( | p, | |||
n | ) | ((p)->ft->setHostname((p),(n))) |
#define CMSetNameSpace | ( | p, | |||
n | ) | ((p)->ft->setNameSpace((p),(n))) |
#define CMSetNameSpaceFromObjectPath | ( | p, | |||
s | ) | ((p)->ft->setNameSpaceFromObjectPath((p),(s))) |
#define CMSetProperty | ( | i, | |||
n, | |||||
v, | |||||
t | ) | ((i)->ft->setProperty((i),(n),(CMPIValue*)(v),(t))) |
#define CMSetPropertyFilter | ( | i, | |||
pl, | |||||
k | ) | ((i)->ft->setPropertyFilter((i),(pl),(k))) |
#define CMSetStatus | ( | st, | |||
rcp | ) | { (st)->rc=(rcp); (st)->msg=NULL; } |
#define CMSetStatusWithChars | ( | mb, | |||
st, | |||||
rcp, | |||||
chars | ) |
{ (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))) |