⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cmpimacs.h

📁 Pegasus is an open-source implementationof the DMTF CIM and WBEM standards. It is designed to be por
💻 H
📖 第 1 页 / 共 5 页
字号:
      */inline static CMPIStatus CMSetPropertyFilter  (CMPIInstance * inst, const char **propertyList, char **keys){  return ((inst)->ft->setPropertyFilter ((inst), (propertyList), (keys)));}#   else#      define CMSetPropertyFilter(i,pl,k) ((i)->ft->setPropertyFilter((i),(pl),(k)))#   endif#   ifdef CMPI_VER_200#   ifdef CMPI_INLINE	  /** Add/replace a named Property value and origin		  @param inst is a pointer to the CMPIInstance structure.		  @param name is a string containing the Property name.		  @param value points to a CMPIValue structure containing the value		  to be assigned to the Property.		  @param type is a CMPIType structure defining the type of the value.		  @param origin specifies the instance origin.  If NULL, then		  no origin is attached to  the property		  @return Service return status	  */inline static CMPIStatus CMSetPropertyWithOrigin  (const CMPIInstance * inst, const char *name,   const CMPIValue * value, CMPIType type, const char * origin){  return ((inst)->ft->setPropertyWithOrigin (      (inst), (name), (value), (type), (origin)));}#   else#      define CMSetPropertyWithOrigin(i,n,v,t,o) \                      ((i)->ft->setPropertyWithOrigin((i),(n),(CMPIValue*)(v),(t),(o)))#   endif#   endif /* CMPI_VER_200 */   // CMPIObjectPath macros#   ifdef CMPI_INLINE       /** Set/replace the hostname component.	 @param op ObjectPath this pointer.	 @param hn The hostname string	 @return Service return status.      */inline static CMPIStatusCMSetHostname (CMPIObjectPath * op, const char *hn){  return ((op)->ft->setHostname ((op), (hn)));}#   else#      define CMSetHostname(p,n)              ((p)->ft->setHostname((p),(n)))#   endif#   ifdef CMPI_INLINE       /** Get the hostname component.	 @param op ObjectPath this pointer.	 @param rc Output: Service return status (suppressed when NULL).	 @return The hostname component.      */inline static CMPIString *CMGetHostname  (const CMPIObjectPath * op, CMPIStatus * rc){  return ((op)->ft->getHostname ((op), (rc)));}#   else#      define CMGetHostname(p,rc)            ((p)->ft->getHostname((p),(rc)))#   endif#   ifdef CMPI_INLINE       /** Set/replace the namespace component.	 @param op ObjectPath this pointer.	 @param ns The namespace string	 @return Service return status.      */inline static CMPIStatusCMSetNameSpace (CMPIObjectPath * op, const char *ns){  return ((op)->ft->setNameSpace ((op), (ns)));}#   else#      define CMSetNameSpace(p,n)            ((p)->ft->setNameSpace((p),(n)))#   endif#   ifdef CMPI_INLINE       /** Get the namespace component.	 @param op ObjectPath this pointer.	 @param rc Output: Service return status (suppressed when NULL).	 @return The namespace component.      */inline static CMPIString *CMGetNameSpace  (const CMPIObjectPath * op, CMPIStatus * rc){  return ((op)->ft->getNameSpace ((op), (rc)));}#   else#      define CMGetNameSpace(p,rc)          ((p)->ft->getNameSpace((p),(rc)))#   endif#   ifdef CMPI_INLINE       /** Set/replace the classname component.	 @param op ObjectPath this pointer.	 @param cn The hostname string	 @return Service return status.      */inline static CMPIStatusCMSetClassName (CMPIObjectPath * op, const char *cn){  return ((op)->ft->setClassName ((op), (cn)));}#   else#      define CMSetClassName(p,n)            ((p)->ft->setClassName((p),(n)))#   endif#   ifdef CMPI_INLINE       /** Get the classname component.	 @param op ObjectPath this pointer.	 @param rc Output: Service return status (suppressed when NULL).	 @return The classname component.      */inline static CMPIString *CMGetClassName  (const CMPIObjectPath * op, CMPIStatus * rc){  return ((op)->ft->getClassName ((op), (rc)));}#   else#      define CMGetClassName(p,rc)          ((p)->ft->getClassName((p),(rc)))#   endif#   ifdef CMPI_INLINE      /** Adds/replaces a named key property.	 @param op ObjectPath this pointer.         @param name Key property name.         @param value Address of value structure.         @param type Value type.	 @return Service return status.      */inline static CMPIStatus CMAddKey  (CMPIObjectPath * op, const char *name,   const CMPIValue * value, const CMPIType type){  return ((op)->ft->addKey ((op), (name), (value), (type)));}#   else#      define CMAddKey(p,n,v,t) \                           ((p)->ft->addKey((p),(n),(CMPIValue*)(v),(t)))#   endif#   ifdef CMPI_INLINE       /** Gets a named key property value.	 @param op ObjectPath this pointer.	 @param name Key property name.	 @param rc Output: Service return status (suppressed when NULL).	 @return Entry value.      */inline static CMPIData CMGetKey  (const CMPIObjectPath * op, const char *name, CMPIStatus * rc){  return ((op)->ft->getKey ((op), (name), (rc)));}#   else#      define CMGetKey(p,n,rc)                ((p)->ft->getKey((p),(n),(rc)))#   endif#   ifdef CMPI_INLINE       /** Gets a key property value defined by its index.	 @param op ObjectPath this pointer.	 @param index Position in the internal Data array.	 @param name Output: Returned property name (suppressed when NULL).	 @param rc Output: Service return status (suppressed when NULL).	 @return Data value.      */inline static CMPIData CMGetKeyAt  (const CMPIObjectPath * op, CMPICount index, CMPIString ** name,   CMPIStatus * rc){  return ((op)->ft->getKeyAt ((op), (index), (name), (rc)));}#   else#      define CMGetKeyAt(p,i,n,rc)          ((p)->ft->getKeyAt((p),(i),(n),(rc)))#   endif#   ifdef CMPI_INLINE      /** Gets the number of key properties contained in this ObjectPath.	 @param op ObjectPath this pointer.	 @param rc Output: Service return status (suppressed when NULL).	 @return Number of properties.      */inline static CMPICount CMGetKeyCount  (const CMPIObjectPath * op, CMPIStatus * rc){  return ((op)->ft->getKeyCount ((op), (rc)));}#   else#      define CMGetKeyCount(p,rc)            ((p)->ft->getKeyCount((p),(rc)))#   endif#   ifdef CMPI_INLINE      /** Set/replace namespace and classname components from <src>.	 @param op ObjectPath this pointer.	 @param src Source input.	 @return Service return status.      */inline static CMPIStatus CMSetNameSpaceFromObjectPath  (CMPIObjectPath * op, const CMPIObjectPath * src){  return ((op)->ft->setNameSpaceFromObjectPath ((op), (src)));}#   else#      define CMSetNameSpaceFromObjectPath(p,s) \                           ((p)->ft->setNameSpaceFromObjectPath((p),(s)))#   endif#   ifdef CMPI_INLINE      /** Set/replace hostname, namespace and classname components from <src>.	 @param op ObjectPath this pointer.	 @param src Source input.	 @return Service return status.      */inline static CMPIStatus CMSetHostAndNameSpaceFromObjectPath  (CMPIObjectPath * op, const CMPIObjectPath * src){  return ((op)->ft->setHostAndNameSpaceFromObjectPath ((op), (src)));}#   else#      define CMSetHostAndNameSpaceFromObjectPath(p,s) \                     ((p)->ft->setHostAndNameSpaceFromObjectPath((p),(s)))#   endif#ifdef CMPI_INLINE       /** Get class qualifier value.    @param op ObjectPath this pointer.    @param qName Qualifier name.    @param rc Output: Service return status (suppressed when NULL).    @return Qualifier value.      */   inline static   CMPIData CMGetClassQualifier               (const CMPIObjectPath* op,                const char *qName,                CMPIStatus *rc)   { return ((op)->ft->getClassQualifier((op),(qName),(rc))); }#else  #define CMGetClassQualifier(op,qName,rc) \                     ((op)->ft->getClassQualifier((op),(qName),(rc)))#endif#ifdef CMPI_INLINE       /** Get property qualifier value.	 @param op ObjectPath this pointer.	 @param pName Property name.	 @param qName Qualifier name.	 @param rc Output: Service return status (suppressed when NULL).	 @return Qualifier value.      */   inline static  CMPIData CMGetPropertyQualifier              (const CMPIObjectPath* op,               const char *pName,               const char *qName,               CMPIStatus *rc)   { return ((op)->ft->getPropertyQualifier((op),(pName),(qName),(rc))); }#else  #define CMGetPropertyQualifier(op,pName,qName,rc) \                     ((op)->ft->getPropertyQualifier((op),(pName),(qName),(rc)))#endif#ifdef CMPI_INLINE       /** Get method qualifier value.	 @param op ObjectPath this pointer.	 @param mName Method name.	 @param qName Qualifier name.	 @param rc Output: Service return status (suppressed when NULL).	 @return Qualifier value.      */   inline static  CMPIData CMGetMethodQualifier              (const CMPIObjectPath* op,               const char *methodName,               const char *qName,               CMPIStatus *rc)   { return ((op)->ft->getMethodQualifier((op),(methodName),(qName),(rc))); }#else  #define CMGetMethodQualifier(op,methodName,qName,rc) \                     ((op)->ft->getMethodQualifier((op),(methodName),(qName),(rc)))#endif#ifdef CMPI_INLINE       /** Get method parameter qualifier value.	 @param op ObjectPath this pointer.	 @param mName Method name.	 @param pName Parameter name.	 @param qName Qualifier name.	 @param rc Output: Service return status (suppressed when NULL).	 @return Qualifier value.      */   inline static  CMPIData CMGetParameterQualifier              (const CMPIObjectPath* op,               const char *mName,               const char *pName,               const char *qName,               CMPIStatus *rc)   { return ((op)->ft->getParameterQualifier((op),(mName),(pName),(qName),(rc))); }#else  #define CMGetParameterQualifier(op,mName,pName,qName,rc) \                     ((op)->ft->getParameterQualifier((op),(mName),(pName),(qName),(rc)))#endif#   ifdef CMPI_VER_86#   ifdef CMPI_INLINE      /** Set/replace hostname, namespace and classname components from <src>.	 @param op ObjectPath this pointer.	 @param src Source input.	 @return Service return status.      */inline static CMPIString *CMObjectPathToString  (const CMPIObjectPath * op, CMPIStatus * rc){  return ((op)->ft->toString ((op), (rc)));}#   else#      define CMObjectPathToString(p,rc) \                     ((p)->ft->toString((p),(rc)))#   endif#   endif /* CMPI_VER_86 */    // CMPIArray macros#   ifdef CMPI_INLINE      /** Gets the number of elements contained in this Array.	 @param ar Array this pointer.	 @param rc Output: Service return status (suppressed when NULL).	 @return Number of elements.      */inline static CMPICount CMGetArrayCount  (const CMPIArray * ar, CMPIStatus * rc){  return ((ar)->ft->getSize ((ar), (rc)));}#   else#      define CMGetArrayCount(a,rc)             ((a)->ft->getSize((a),(rc)))#   endif#   ifdef CMPI_INLINE      /** Gets the element type.	 @param ar Array this pointer.	 @param rc Output: Service return status (suppressed when NULL).	 @return Number of elements.      */inline static CMPITypeCMGetArrayType (const CMPIArray * ar, CMPIStatus * rc){  return ((ar)->ft->getSimpleType ((ar), (rc)));}#   else#      define CMGetArrayType(a,rc)        ((a)->ft->getSimpleType((a),(rc)))#   endif#   ifdef CMPI_INLINE       /** Gets an element value defined by its index.	 @param ar Array this pointer.	 @param index Position in the internal Data array.	 @param rc Output: Service return status (suppressed when NULL).	 @return Element value.      */inline static CMPIData CMGetArrayElementAt  (const CMPIArray * ar, CMPICount index, CMPIStatus * rc){  return ((ar)->ft->getElementAt ((ar), (index), (rc)));}#   else#      define CMGetArrayElementAt(a,n,rc) \                                    ((a)->ft->getElementAt((a),(n),(rc)))#   endif#   ifdef CMPI_INLINE       /** Sets an element value defined by its index.	 @param ar Array this pointer.	 @param index Position in the internal Data array.         @param value Address of value structure.         @param type Value type.	 @return Service return status.      */inline static CMPIStatus CMSetArrayElementAt  (CMPIArray * ar, CMPICount index, const CMPIValue * value, CMPIType type){  return ((ar)->ft->setElementAt ((ar), (index), (value), (type)));}#   else#      define CMSetArrayElementAt(a,n,v,t) \                     ((a)->ft->setElementAt((a),(n),(CMPIValue*)(v),(t)))#   endif    // CMPIArgs macros

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -