Defines, Structures, Typedefs, Functions. More...
Files | |
file | clCorApi.h |
Header file of Clovis Object Registry (COR) related APIs. | |
file | clCorConfigApi.h |
Header file of Configuration related to COR Transaction. | |
file | clCorErrors.h |
Header file of all External Error Ids for COR. | |
file | clCorMetaData.h |
Header file of all MetaData data structures. | |
file | clCorNotifyApi.h |
Header file of COR APIs for subscribing/unsubscribing to the events on a Managed Objects. | |
file | clCorServiceId.h |
Header file of COR Service Ids. | |
file | clCorTxnApi.h |
Header file of Transaction related APIs for COR. | |
file | clCorUtilityApi.h |
Header File of COR utility APIs. |
Classes | |
struct | ClCorAttrAdditionalInfo |
Structure for complex attribute types like Association, Array and Containment. More... | |
struct | ClCorAttrDef |
Attribute Definition structure. More... | |
struct | ClCorAttributeValue |
Type to provide value for the initialized attributes. More... | |
struct | ClCorAttributeValueList |
Type to provide the list of attribute values for initialized attributes. More... | |
struct | ClCorAttrIdIdxPair |
Attribute ID and index pair. More... | |
struct | ClCorAttrList |
Type to store the list of attributes. More... | |
struct | ClCorAttrPath |
The structure ClCorAttrPath contains the path-list of the attribute. More... | |
struct | ClCorAttrValueDescriptor |
Structure to attribute job which will be added to the bundle. More... | |
struct | ClCorAttrValueDescriptorList |
Type for the attribute value list. More... | |
struct | ClCorAttrValues |
Structure capturing initialization, minimum and maximum value of simple attribute. More... | |
struct | ClCorBundleConfig |
Structure for storing the bundle configuration. More... | |
struct | ClCorComponentConfig |
Configuration related to COR transaction. More... | |
struct | ClCorJobDescriptor |
Structure to store read job data. More... | |
struct | ClCorMOClassPath |
The structure ClCorMOClassPath contains the COR object handle. More... | |
struct | ClCorMOHandle |
Managed Object handle. More... | |
struct | ClCorMOId |
The structure ClCorMOId contains MoId of the object, which is the address of the COR object. More... | |
struct | ClCorMOIdList |
Type to store the list of MoIds. More... | |
struct | ClCorObjAttrWalkFilter |
The structure ClCorObjAttrWalkFilter is used to specify filter properties while performing attribute walk operation. More... | |
struct | ClCorTxnInfo |
COR Txn Failed Job Information. More... |
Macros | |
#define | CL_COR_ATTR_CACHED 0x00000100 |
Attribute type is cached (stored in RAM in COR) | |
#define | CL_COR_ATTR_CONFIG 0x01000000 |
Macros for defining the attribute flags. | |
#define | CL_COR_ATTR_INITIALIZED 0x00020000 |
Attribute type is intialized (upon creation, assign a default value – MUST use clCorObjectCreateAndSet to create) | |
#define | CL_COR_ATTR_OPERATIONAL 0x04000000 |
Not IMPLEMENTED. | |
#define | CL_COR_ATTR_PERSISTENT 0x00000200 |
Attribute type is persistent. | |
#define | CL_COR_ATTR_RUNTIME 0x02000000 |
Attribute type is runtime (NOT stored in database). | |
#define | CL_COR_ATTR_WRITABLE 0x00010000 |
Attribute type is writeable. | |
#define | CL_COR_CLASS_WILD_CARD ((ClCorClassTypeT)0xFFFFFFFE) |
Wild Card Class Id. | |
#define | CL_COR_CLI_ERR_INVALID_USAGE 0x1e0 |
The invalid usage of the CLI command has occured. | |
#define | CL_COR_CLI_STR_LEN 1024 |
String length for cli commands. | |
#define | CL_COR_COMM_ERR_INVALID_OP 0x1d0 |
The invalid Operation type supplied to the comm. | |
#define | CL_COR_CONT_ATTR_MAX_DEPTH 10 |
Constants related to ClCorAttrPath. | |
#define | CL_COR_DEFAULT_TIMEOUT 3000 |
This value is 3 seconds. | |
#define | CL_COR_ERR_ALREADY_INIT 0x11c |
The COR EO is already been initialized. | |
#define | CL_COR_ERR_ATTR_FLAGS_INVALID 0x193 |
The attribute user flag passed is invalid. | |
#define | CL_COR_ERR_ATTR_NON_WRITABLE_SET 0x15c |
A set operation is performed on a non-writable attribute. | |
#define | CL_COR_ERR_ATTR_PERS_WITHOUT_CACHE 0x192 |
A runtime attribute is marked as persistent without being marked as cached. | |
#define | CL_COR_ERR_ATTR_READ_ONLY 0x1a4 |
A read-only attribute is being set. | |
#define | CL_COR_ERR_BUFFER_OVERRUN CL_ERR_BUFFER_OVERRUN |
The buffer overrun has occured while processing the user buffer. | |
#define | CL_COR_ERR_BUNDLE_APPLY_FAILURE 0x1a2 |
Failure while doing a bundle apply. | |
#define | CL_COR_ERR_BUNDLE_FINALIZE 0x1a5 |
The failure occured finalizing the bundle. | |
#define | CL_COR_ERR_BUNDLE_IN_EXECUTION 0x1a7 |
The bundle is applied or finalized to a bundle for which the response has not yet reached after applying. | |
#define | CL_COR_ERR_BUNDLE_INIT_FAILURE 0x1a1 |
A failure occured in the bundle initialization. | |
#define | CL_COR_ERR_BUNDLE_INVALID_TYPE 0x1a8 |
The bundle type (ClCorBundleConfigT) is supplied wrongly to the bundle initialize. | |
#define | CL_COR_ERR_BUNDLE_TIMED_OUT 0x1a6 |
The bundle timeout has occured in the case of a synchronous bundle. | |
#define | CL_COR_ERR_CLASS_ATTR_INVALID_INDEX 0x10f |
The index specified for the attribute is invalid. | |
#define | CL_COR_ERR_CLASS_ATTR_INVALID_RELATION 0x110 |
The size of the attribute is not matching its data type. | |
#define | CL_COR_ERR_CLASS_ATTR_INVALID_TYPE 0x118 |
The class attribute data type specified is invalid. | |
#define | CL_COR_ERR_CLASS_ATTR_INVALID_VAL 0x108 |
The error shows that the value supplied to the attribute is invalid. | |
#define | CL_COR_ERR_CLASS_ATTR_NOT_INITIALIZED 0x11d |
The object is created for a class containing initialized attributes, without specifying any value for them. | |
#define | CL_COR_ERR_CLASS_ATTR_NOT_PRESENT 0x10c |
The attribute being searched is not present in the class. | |
#define | CL_COR_ERR_CLASS_ATTR_OUT_OF_RANGE 0x10e |
The value of attribute is more than the range of value of its data type. | |
#define | CL_COR_ERR_CLASS_ATTR_PRESENT 0x109 |
The class already has an attribute with the attribute Identifier being added. | |
#define | CL_COR_ERR_CLASS_ATTR_TILL_REACHED 0x10d |
The end marker for the class being searched has encountered. | |
#define | CL_COR_ERR_CLASS_INSTANCES_PRESENT 0x107 |
The class information cannot be modified as it has instances present the object tree. | |
#define | CL_COR_ERR_CLASS_INVALID_PATH 0x112 |
The MO class path specified is invalid. | |
#define | CL_COR_ERR_CLASS_IS_BASE 0x11f |
This error will occur when base class is deleted. | |
#define | CL_COR_ERR_CLASS_MISMATCH 0x117 |
The classes does not match either due to class identifier or attribute identifier present in the classes. | |
#define | CL_COR_ERR_CLASS_NOT_PRESENT 0x106 |
The class being searched is not present in the COR. | |
#define | CL_COR_ERR_CLASS_PRESENT 0x105 |
The class being created is already present in the COR. | |
#define | CL_COR_ERR_CONFIG_ATTR_FLAG 0x190 |
The config attribute is either marked as non-cached or non-persistent. | |
#define | CL_COR_ERR_DUPLICATE CL_ERR_DUPLICATE |
The entry being added is already existing in the list. | |
#define | CL_COR_ERR_GET_DATA_NOT_FOUND 0x1a0 |
The attribute data not found at the OI or at the COR. | |
#define | CL_COR_ERR_INSUFFICIENT_BUFFER 0x116 |
The buffer supplied is not enough for the processing. | |
#define | CL_COR_ERR_INSUFFICIENT_BUFFER_STR "Insufficient buffer passed!" |
The string indicating that insufficient buffer has been supplied. | |
#define | CL_COR_ERR_INVALID_BUFFER CL_ERR_INVALID_BUFFER |
The user buffer supplied to the functoin is invalid. | |
#define | CL_COR_ERR_INVALID_BUFFER_STR "Invalid buffer" |
The string indicating that buffer passed is invalid. | |
#define | CL_COR_ERR_INVALID_CLASS 0x100 |
The class Identifier passed is invalid. | |
#define | CL_COR_ERR_INVALID_DEPTH 0x104 |
The depth specified in the MOID or Object Handle is invalid. | |
#define | CL_COR_ERR_INVALID_HANDLE CL_ERR_INVALID_HANDLE |
An invalid handle is supplied to the function. | |
#define | CL_COR_ERR_INVALID_MSP_ID 0x102 |
The invalid MSP ID is supplied. | |
#define | CL_COR_ERR_INVALID_OH_MASK 0x11b |
The Object Handle (OH) mask provided is invalid. | |
#define | CL_COR_ERR_INVALID_PARAM CL_ERR_INVALID_PARAMETER |
The invalid parameter supplied to the function. | |
#define | CL_COR_ERR_INVALID_PARAM_STR "Invalid parameter passed" |
The string indicating that invalid parameter has been provided. | |
#define | CL_COR_ERR_INVALID_SIZE 0x121 |
The size specified for the attribute is invalid. | |
#define | CL_COR_ERR_INVALID_STATE 0x101 |
The processing has reached an invalid state. | |
#define | CL_COR_ERR_MAX_DEPTH 0x103 |
The respective append functions cannot add any more nodes to the MOID or MO class path. | |
#define | CL_COR_ERR_NO_MEM CL_ERR_NO_MEMORY |
There is no memory in the system. | |
#define | CL_COR_ERR_NO_MEM_STR "Out of memory!" |
The string indicating that memory has been exhausted. | |
#define | CL_COR_ERR_NO_RESOURCE CL_ERR_NO_RESOURCE |
There is no resource remaining in the system. | |
#define | CL_COR_ERR_NOT_EXIST CL_ERR_NOT_EXIST |
The entry being searched does not exist in COR. | |
#define | CL_COR_ERR_NOT_SUPPORTED 0x11a |
An unsupported state has reached while processing the request. | |
#define | CL_COR_ERR_NULL_PTR CL_ERR_NULL_POINTER |
The null pointer has been encountered while processing. | |
#define | CL_COR_ERR_NULL_PTR_STR "NULL value passed" |
The string indicating that pointer passed is NULL. | |
#define | CL_COR_ERR_OBJ_ATTR_INVALID_SET 0x111 |
The set operation is done on a containment attribute. | |
#define | CL_COR_ERR_OBJ_ATTR_NOT_PRESENT 0x11e |
The attribute being set does not exist in the object. | |
#define | CL_COR_ERR_OBJ_NOT_PRESENT 0x120 |
The managed object does not exist in the COR. | |
#define | CL_COR_ERR_OBJECT_ACTIVE 0x113 |
The object being enabled is already active. | |
#define | CL_COR_ERR_OBJECT_INVALID 0x10b |
The object on which operation is requested is invalid. | |
#define | CL_COR_ERR_OBJECT_LOCKED 0x10a |
The object is locked so no more operation can be done till it is unlocked. | |
#define | CL_COR_ERR_OI_ALREADY_REGISTERED 0x1c1 |
An OI is already registered as a primary OI for the Managed object. | |
#define | CL_COR_ERR_OI_NOT_REGISTERED 0x1c0 |
The OI is not registered when doing get of the primary OI. | |
#define | CL_COR_ERR_OP_ATTR_TYPE_INVALID 0x194 |
The attribute data type is invalid. | |
#define | CL_COR_ERR_ROUTE_NOT_PRESENT 0x119 |
The specified OI does not exist in the route list. | |
#define | CL_COR_ERR_ROUTE_PRESENT 0x114 |
The error shows that OI is already present in the route list. | |
#define | CL_COR_ERR_RUNTIME_ATTR_WRITE 0x191 |
The attribute flag of a runtime attribute is marked as writable. | |
#define | CL_COR_ERR_RUNTIME_CACHED_SET 0x15b |
A set operation is performed on a runtime cached attribute by a non-primary OI. | |
#define | CL_COR_ERR_STR(ERR) ERR##_STR |
Macro to contruct the error string macros. | |
#define | CL_COR_ERR_STR_INVALID_DEPTH "Invalid depth" |
The string indicating that invalid depth has been provided. | |
#define | CL_COR_ERR_STR_MAX_DEPTH "Max depth already used!" |
The string indicating that invalid depth has been specified. | |
#define | CL_COR_ERR_STR_MEM_ALLOC_FAIL "Memory allocation failed!" |
The string indicating that memory allocation has failed. | |
#define | CL_COR_ERR_TIMEOUT CL_ERR_TIMEOUT |
The COR server has not responded within the specified timeout. | |
#define | CL_COR_ERR_TRY_AGAIN CL_ERR_TRY_AGAIN |
The resource is unavilable for time being so COR server has send a try again in the response. | |
#define | CL_COR_ERR_UNKNOWN_COR_INSTANCE 0x115 |
The disable request for an invalid COR instance has arrived. | |
#define | CL_COR_ERR_VERSION_UNSUPPORTED 0x122 |
The version specified by the client is not supported at server. | |
#define | CL_COR_ERR_ZERO_JOBS_BUNDLE 0x1a3 |
The bundle is applied without adding any jobs to it. | |
#define | CL_COR_INST_ERR_CHILD_MO_EXIST 0x148 |
The object node cannot be chopped as there is a child node(s) existing. | |
#define | CL_COR_INST_ERR_INVALID_MOID 0x144 |
The invalid MOID is supplied to the function. | |
#define | CL_COR_INST_ERR_MAX_INSTANCE 0x14a |
The request for the object instance creation has exceeded the maximum instance limit specified while modeling. | |
#define | CL_COR_INST_ERR_MO_ALREADY_PRESENT 0x142 |
The Managed object is already present in the object tree. | |
#define | CL_COR_INST_ERR_MO_ALREADY_PRESENT_STR "MO Object already present" |
The string indicating that the MO is already present in the object tree. | |
#define | CL_COR_INST_ERR_MSO_ALREADY_PRESENT 0x141 |
The Managed service object for a Managed object is already present in the object tree. | |
#define | CL_COR_INST_ERR_MSO_EXIST 0x149 |
The object node cannot be delete as there are MSO node(s) existing. | |
#define | CL_COR_INST_ERR_MSO_NOT_PRESENT 0x143 |
The Managed service object for a MO doesn't exist in the object tree. | |
#define | CL_COR_INST_ERR_NODE_ALREADY_PRESENT 0x146 |
The object instance node is already present in the object tree. | |
#define | CL_COR_INST_ERR_NODE_NOT_FOUND 0x140 |
The Mananged object node does not exist in the object tree. | |
#define | CL_COR_INST_ERR_NODE_NOT_FOUND_STR "Unknown Instance node referred" |
The string indicating that the node referenced is not present. | |
#define | CL_COR_INST_ERR_NODE_NOT_TO_PACK 0x147 |
A failure has occured while packing the instance tree. | |
#define | CL_COR_INST_ERR_PARENT_MO_NOT_EXIST 0x14b |
An error occurred while looking for the parent in the object tree. | |
#define | CL_COR_INST_ERR_UNPACK_FAILED 0x145 |
An error occured while upacking the object tree. | |
#define | CL_COR_INSTANCE_WILD_CARD 0xFFFFFFFE |
Wild Card Instance Id. | |
#define | CL_COR_INTERNAL_ERR_INVALID_COR_LIST 0x172 |
The COR-List is not initialized. | |
#define | CL_COR_INTERNAL_ERR_INVALID_RM_FLAGS 0x173 |
The object flag type supplied is invalid. | |
#define | CL_COR_INVALID_ATTR_ID -1 |
Invalid Attribute Id. | |
#define | CL_COR_INVALID_ATTR_IDX -1 |
Invalid Attribute Index. | |
#define | CL_COR_MAX_NAME_SZ CL_MAX_NAME_LENGTH |
Maximum size of Name for Class, Attributes. | |
#define | CL_COR_MO_TREE_ERR_CHILD_CLASS_EXIST 0x137 |
The MO tree node cannot be deleted as the child node(s) exists. | |
#define | CL_COR_MO_TREE_ERR_CLASS_NO_PRESENT 0x133 |
The MO class tree do not have a node corresponding to the class identifier specified. | |
#define | CL_COR_MO_TREE_ERR_FAILED_TO_ADD_NODE 0x130 |
The error occured while adding the node to the MO class tree. | |
#define | CL_COR_MO_TREE_ERR_FAILED_TO_DEL_NODE 0x131 |
The failure occured while deleting the MO-class tree node. | |
#define | CL_COR_MO_TREE_ERR_FAILED_USR_BUF 0x132 |
The error specifies that a failure occured while getting the user buffer from the MO class tree. | |
#define | CL_COR_MO_TREE_ERR_MAX_INST 0x136 |
The maximum instance for the MO class tree has reached. | |
#define | CL_COR_MO_TREE_ERR_NODE_FOUND 0x135 |
The class node already exist in the MO class tree. | |
#define | CL_COR_MO_TREE_ERR_NODE_FOUND_STR "Node already found" |
The string to indicate that node is already present in the object or MO class tree. | |
#define | CL_COR_MO_TREE_ERR_NODE_NOT_FOUND 0x134 |
The MO class tree node not found for a given MO class path. | |
#define | CL_COR_MO_TREE_ERR_NODE_NOT_FOUND_STR "Unknown node referenced" |
The string indicating that node is not present in the object or the MO class tree. | |
#define | CL_COR_NO_SAVE 0 |
Persistency related Macros. | |
#define | CL_COR_NOTIFY_ERR_CANNOT_RESOLVE_CLASS 0x161 |
The service Id of the MOID is specified as wild card while doing event subscription. | |
#define | CL_COR_NOTIFY_ERR_INVALID_OP 0x160 |
The invalid operation type is specified. | |
#define | CL_COR_OH_MASK_END_MARKER 0xFF |
End Marker for a OH Mask. | |
#define | CL_COR_SIMPLE_TXN NULL |
Simple transaction with only one job. | |
#define | CL_COR_SVC_ERR_INVALID_FLAGS 0x170 |
The Object flag specified is invalid. | |
#define | CL_COR_SVC_ERR_INVALID_ID 0x171 |
The service Id for the MSO specified in the MOID is invalid. | |
#define | CL_COR_TXN_ERR_FAILED_JOB_GET 0x159 |
An error has occured while getting the transaction failed-jobs for a given cor-transaction session identifier. | |
#define | CL_COR_TXN_ERR_FAILED_JOB_NOT_EXIST 0x15a |
There are no transaction failed-jobs existing for the given cor-transaction session identifier. | |
#define | CL_COR_TXN_ERR_FIRST_JOB 0x155 |
The failure occured to get the previous job when there is only one job in the transacation. | |
#define | CL_COR_TXN_ERR_INVALID_ID 0x151 |
The transaction id is invalid. | |
#define | CL_COR_TXN_ERR_INVALID_JOB_ID 0x158 |
The job-Identifier specified is invalid. | |
#define | CL_COR_TXN_ERR_INVALID_OP 0x154 |
The Invalid operation type has been supplied. | |
#define | CL_COR_TXN_ERR_INVALID_STATE 0x152 |
This error will occur when both set and delete operation are done on same Managed Object in one transaction. | |
#define | CL_COR_TXN_ERR_JOB_WALK_TERMINATE 0x15d |
The transaction job walk is terminated. | |
#define | CL_COR_TXN_ERR_LAST_JOB 0x156 |
The get-next is done after reaching the last job in the job-list. | |
#define | CL_COR_TXN_ERR_OUT_OF_TXN 0x150 |
The transaction is completed for this trasaction id. | |
#define | CL_COR_TXN_ERR_SPANS_MULTI_OBJ 0x153 |
The transaction spans mutlitple object. | |
#define | CL_COR_TXN_ERR_ZERO_JOBS 0x157 |
There are no jobs in the transaction being started. | |
#define | CL_COR_UNKNOWN_ATTRIB -1 |
Invalid attribute. | |
#define | CL_COR_UTILS_ERR_FOUND_END_TAG 0x184 |
The end tag is encountered while upacking the object or MO-class tree. | |
#define | CL_COR_UTILS_ERR_INVALID_KEY 0x180 |
The COR server could not find a specified entry in the object tree or the class tree. | |
#define | CL_COR_UTILS_ERR_INVALID_NODE_REF 0x182 |
The invalid node is referred by giving a MO-class path. | |
#define | CL_COR_UTILS_ERR_INVALID_NODE_REF_STR "Invalid Node" |
The string indicating that node referred using the MO class path is invalid. | |
#define | CL_COR_UTILS_ERR_INVALID_TAG 0x183 |
The tags supplied while packing MO-class tree or object tree at the active COR are not found proper after unpacking at the standby COR. | |
#define | CL_COR_UTILS_ERR_MEMBER_NOT_FOUND 0x181 |
The member does not exist in the list. | |
#define | CL_COR_UTILS_ERR_MOCLASSPATH_MISMATCH 0x185 |
The failure occured in comparing two MO-Class paths. | |
#define | CL_COR_VERSION_NO 0x0100 |
Currently not supported. | |
#define | CL_COR_VERSION_NO 0x0100 |
Currently not supported. | |
#define | CL_COR_WTH_COOKIE_ID CL_EO_COR_SERVER_COOKIE_ID+1 |
CookieId of COR client for transaction forwarding. |
Typedefs | |
typedef ClCorAddrT * | ClCorAddrPtrT |
A pointer to the IOC physical address structure. | |
typedef ClIocPhysicalAddressT | ClCorAddrT |
This type definition contains the IOC physical address and the port address of the component that registers itself as an OI for a MO. | |
typedef ClUint32T | ClCorAttrFlagT |
Typedef for storing the attribute flags. | |
typedef ClCorAttributeValueListT * | ClCorAttributeValueListPtrT |
Pointer type for ClCorAttributeValueListT. | |
typedef struct ClCorAttributeValueList | ClCorAttributeValueListT |
Type definition for ClCorAttributeValueList. | |
typedef ClCorAttributeValueT * | ClCorAttributeValuePtrT |
Pointer type for ClCorAttributeValueT. | |
typedef struct ClCorAttributeValue | ClCorAttributeValueT |
Type definition for ClCorAttributeValue. | |
typedef ClCorAttrIdIdxPairT * | ClCorAttrIdIdxPairPtr |
Pointer type definition for ClCorAttrIdIdxPairT. | |
typedef struct ClCorAttrIdIdxPair | ClCorAttrIdIdxPairT |
Type definition for ClCorAttrIdIdxPair. | |
typedef ClInt32T | ClCorAttrIdT |
The type of an identifier for a COR attribute. | |
typedef ClCorAttrListT * | ClCorAttrListPtrT |
Pointer type to ClCorAttrListT. | |
typedef struct ClCorAttrList | ClCorAttrListT |
Type to store the list of attributes. | |
typedef ClCorAttrPathT * | ClCorAttrPathPtrT |
The pointer to ClCorAttrPathT. | |
typedef struct ClCorAttrPath | ClCorAttrPathT |
Type definition for ClCorAttrPath. | |
typedef enum ClCorAttrType | ClCorAttrTypeT |
The values of this enumeration type refer to the COR attribute types. | |
typedef ClCorAttrValueDescriptorListT * | ClCorAttrValueDescriptorListPtrT |
Pointer type to ClCorAttrValueDescriptorListT. | |
typedef struct ClCorAttrValueDescriptorList | ClCorAttrValueDescriptorListT |
Type definition for ClCorAttrValueDescriptorList. | |
typedef ClCorAttrValueDescriptorT * | ClCorAttrValueDescriptorPtrT |
Pointer type for ClCorAttrValueDescriptorT. | |
typedef struct ClCorAttrValueDescriptor | ClCorAttrValueDescriptorT |
Type definition for ClCorAttrValueDescriptor. | |
typedef struct ClCorAttrValues | ClCorAttrValuesT |
Type definition for ClCorAttrValues. | |
typedef ClRcT(* | ClCorBundleCallbackPtrT )(ClCorBundleHandleT bundleHandle, ClPtrT userArg) |
The callback function for the asynchronous bunlde. | |
typedef ClHandleT | ClCorBundleHandleT |
Type definition of the bundle handle. | |
typedef enum ClCorBundleOperationType | ClCorBundleOperationTypeT |
Type of the bundle operation. | |
typedef ClRcT(* | ClCorClassAttrWalkFunc )(ClCorClassTypeT clsId, ClCorAttrDefT *attrDef, ClPtrT cookie) |
Attribute Walk function prototype. | |
typedef ClInt32T | ClCorClassTypeT |
The type of an identifier for the COR class. | |
typedef enum ClCorClsCfgType | ClCorClsCfgTypeT |
Class specification. | |
typedef ClCorCommInfoT * | ClCorCommInfoPtrT |
The type of the pointer for COR communication configuration. | |
typedef struct ClCorComponentConfig | ClCorComponentConfigT |
Configuration related to COR transaction. | |
typedef ClInt32T | ClCorInstanceIdT |
The type of an identifier for a COR instance. | |
typedef ClUint32T | ClCorJobStatusT |
Status of each failed job. | |
typedef ClCorMOHandleT * | ClCorMOHandlePtrT |
Pointer type definition for ClCorMOHandleT. | |
typedef struct ClCorMOHandle | ClCorMOHandleT |
Type definition for ClCorMOHandle. | |
typedef ClCorMOIdListT * | ClCorMOIdListPtrT |
Pointer type to ClCorMOIdListT. | |
typedef struct ClCorMOIdList | ClCorMOIdListT |
Type to store the list of MoIds. | |
typedef ClCorMOIdT * | ClCorMOIdPtrT |
A pointer type to ClCorMOIdT. | |
typedef struct ClCorMOId | ClCorMOIdT |
Type definition for ClCorMOId. | |
typedef ClInt16T | ClCorMOServiceIdT |
This type is part of the ClCorMOIdT type to access a MO or MSO. | |
typedef ClHandleT | ClCorNotifyHandleT |
COR notify handle, return by subscribe, used for unsubscribing. | |
typedef struct ClCorObjAttrWalkFilter | ClCorObjAttrWalkFilterT |
Typedef for ClCorObjAttrWalkFilter. | |
typedef ClRcT(* | ClCorObjAttrWalkFuncT )(ClCorAttrPathPtrT pAttrPath, ClCorAttrIdT attrId, ClCorAttrTypeT attrType, ClCorTypeT attrDataType, void *value, ClUint32T size, ClCorAttrFlagT attrData, void *cookie) |
The type of the callback API that is invoked for every attribute within a COR object, during the walk operation. | |
typedef ClPtrT | ClCorObjectHandleT |
The structure ClCorObjectHandle is the handle to MO. | |
typedef ClRcT(* | ClCorObjectWalkFunT )(void *data, void *cookie) |
Type of callback function used for Object Walk. | |
typedef ClRcT(* | ClCorTxnFuncT )(ClCorTxnIdT trans, ClCorTxnJobIdT jobId, void *cookie) |
Type of the callback function which will be called while doing transaction job walk. | |
typedef ClPtrT | ClCorTxnIdT |
The type of the COR transaction ID used to identify a transaction session. | |
typedef ClCorTxnInfoT * | ClCorTxnInfoPtrT |
Pointer type definition for ClCorTxnInfoT. | |
typedef struct ClCorTxnInfo | ClCorTxnInfoT |
Type definition for ClCorTxnInfo. | |
typedef ClUint32T | ClCorTxnJobIdT |
The type of COR transaction Job Id, used to identify a job uniquely within a transaction. | |
typedef enum ClCorTxnJobStatus | ClCorTxnJobStatusT |
To set the status of a job given in the transaction. | |
typedef ClPtrT | ClCorTxnSessionIdT |
The type of the handle of a COR transaction session. | |
typedef enum ClCorType | ClCorTypeT |
The ClCorType enumeration contains the basic COR data types. | |
typedef ClRcT(* | clCorXdrMarshallFP )(void *pGenVar, ClBufferHandleT msg, ClUint32T isDelete) |
IDL Marshall Function Prototype. | |
typedef ClRcT(* | clCorXdrUnmarshallFP )(ClBufferHandleT msg, void *pGenVar) |
IDL UnMarshall Function Prototype. |
Functions | |
ClRcT | clCorAttrPathAlloc (CL_INOUT ClCorAttrPathPtrT *pAttrPath) |
Creates an attribute path. | |
ClRcT | clCorAttrPathAppend (CL_INOUT ClCorAttrPathPtrT pAttrPath, CL_IN ClCorClassTypeT attrId, CL_IN ClCorInstanceIdT index) |
Adds an entry to the attribute path. | |
ClRcT | clCorAttrPathClone (ClCorAttrPathPtrT pAttrPath, ClCorAttrPathPtrT *newH) |
Clones a particular ClCorAttrPath. | |
ClInt32T | clCorAttrPathCompare (CL_IN ClCorAttrPathPtrT pAttrPath, CL_IN ClCorAttrPathPtrT cmp) |
Compares two ClCorAttrPath. | |
ClInt16T | clCorAttrPathDepthGet (CL_IN ClCorAttrPathPtrT pAttrPath) |
Returns the COR attribute path node depth. | |
ClRcT | clCorAttrPathFree (CL_INOUT ClCorAttrPathPtrT pAttrPath) |
Deletes the COR attribute path handle. | |
ClUint32T | clCorAttrPathIndexGet (CL_IN ClCorAttrPathPtrT pAttrPath) |
Returns the index of COR attribute path. | |
ClRcT | clCorAttrPathIndexSet (CL_INOUT ClCorAttrPathPtrT pAttrPath, CL_IN ClUint16T ndepth, CL_IN ClUint32T newIndex) |
Sets the index of COR attribute path. | |
ClRcT | clCorAttrPathInitialize (CL_INOUT ClCorAttrPathPtrT pAttrPath) |
Initializes the attribute path. | |
ClRcT | clCorAttrPathSet (CL_INOUT ClCorAttrPathPtrT pAttrPath, CL_IN ClUint16T level, CL_IN ClCorAttrIdT attrId, CL_IN ClUint32T index) |
Sets the attribute ID for a given node. | |
void | clCorAttrPathShow (CL_IN ClCorAttrPathPtrT pAttrPath) |
Displays the COR attribute path in debug mode only. | |
ClCorAttrIdT | clCorAttrPathToAttrIdGet (CL_IN ClCorAttrPathPtrT pAttrPath) |
Returns the attribute ID. | |
ClRcT | clCorAttrPathTruncate (CL_INOUT ClCorAttrPathPtrT pAttrPath, CL_IN ClInt16T level) |
Removes node after specified level. | |
ClRcT | clCorBundleApply (CL_IN ClCorBundleHandleT bundleHandle) |
Submits a bundle to the COR server for execution. | |
ClRcT | clCorBundleApplyAsync (CL_IN ClCorBundleHandleT bundleHandle, CL_IN ClCorBundleCallbackPtrT funcPtr, CL_IN ClPtrT userArg) |
Function to apply the bundle asynchronously. | |
ClRcT | clCorBundleFinalize (ClCorBundleHandleT bundleHandle) |
Finalizes the bundle. | |
ClRcT | clCorBundleInitialize (CL_OUT ClCorBundleHandlePtrT pBundleHandle, CL_IN ClCorBundleConfigPtrT pBundleConfig) |
Creates a bundle and returns a unique handle identifying the bundle. | |
ClRcT | clCorBundleObjectGet (CL_IN ClCorBundleHandleT bundleHandle, CL_IN const ClCorObjectHandleT *pObjectHandle, CL_INOUT ClCorAttrValueDescriptorListPtrT pAttrList) |
Populates a bundle with read-jobs. | |
ClRcT | clCorEventHandleToCorTxnIdGet (ClEventHandleT evtH, ClSizeT size, ClCorTxnIdT *corTxnId) |
ClRcT | clCorEventSubscribe (ClEventChannelHandleT channelHandle, ClCorMOIdPtrT changedObj, ClCorAttrPathPtrT pAttrPath, ClCorAttrListPtrT attrList, ClCorOpsT flags, void *cookie, ClEventSubscriptionIdT subscriptionId) |
Subscribes for notifications when a change occurs in an attribute. | |
ClRcT | clCorEventUnsubscribe (ClEventChannelHandleT channelHandle, ClEventSubscriptionIdT subscriptionId) |
Unsubscribes for attribute change notification. | |
ClRcT | clCorLogicalSlotToMoIdGet (ClUint32T logicalSlot, ClCorMOIdPtrT pMoId) |
Returns MOId given the Logical Slot. | |
ClRcT | clCorMoIdAlloc (CL_INOUT ClCorMOIdPtrT *pMoId) |
Creates an MoId. | |
ClRcT | clCorMoIdAppend (CL_INOUT ClCorMOIdPtrT pMoId, CL_IN ClCorClassTypeT type, CL_IN ClCorInstanceIdT instance) |
Adds an entry to the MoId. | |
ClRcT | clCorMoIdClone (ClCorMOIdPtrT pMoId, ClCorMOIdPtrT *newH) |
Clones a particular MOId. | |
int | clCorMoIdCompare (CL_IN ClCorMOIdPtrT pMoId, CL_IN ClCorMOIdPtrT cmp) |
Compares two MoIds and verifies if they are equal. | |
ClRcT | clCorMoIdConcatenate (CL_INOUT ClCorMOIdPtrT part1, CL_INOUT ClCorMOIdPtrT part2, CL_IN ClInt32T copyWhere) |
Concatenates a MoId to another MoId. | |
ClInt16T | clCorMoIdDepthGet (CL_IN ClCorMOIdPtrT pMoId) |
Returns node depth of the COR MoId. | |
ClRcT | clCorMoIdFirstInstanceGet (CL_INOUT ClCorMOIdPtrT pMoId) |
Returns the first child. | |
ClRcT | clCorMoIdFree (CL_INOUT ClCorMOIdPtrT pMoId) |
Deletes the ClCorMOId handle. | |
ClRcT | clCorMoIdInitialize (CL_INOUT ClCorMOIdPtrT pMoId) |
Initializes a MOID or resets the content of an existing MOID. | |
ClRcT | clCorMoIdInstanceSet (CL_INOUT ClCorMOIdPtrT pMoId, CL_IN ClUint16T ndepth, CL_IN ClCorInstanceIdT newInstance) |
Sets the instance of the MoId. | |
ClRcT | clCorMoIdNameToMoIdGet (CL_IN ClNameT *moIdName, CL_OUT ClCorMOIdT *moId) |
Retrieves moId in ClCorMOIdT format, when moId is provided in ClNameT format. | |
ClRcT | clCorMoIdNextSiblingGet (CL_INOUT ClCorMOIdPtrT pMoId) |
Returns the next sibling. | |
ClCorMOServiceIdT | clCorMoIdServiceGet (CL_IN ClCorMOIdPtrT pMoId) |
Returns the service ID. | |
ClRcT | clCorMoIdServiceSet (CL_INOUT ClCorMOIdPtrT pMoId, CL_IN ClCorMOServiceIdT svc) |
Sets the service ID. | |
ClRcT | clCorMoIdSet (CL_INOUT ClCorMOIdPtrT pMoId, CL_IN ClUint16T level, CL_IN ClCorClassTypeT type, CL_IN ClCorInstanceIdT instance) |
Sets the class type and instanceId at a given node or level. | |
void | clCorMoIdShow (CL_IN ClCorMOIdPtrT pMoId) |
Displays the ClCorMOId handle. | |
ClRcT | clCorMoIdToClassGet (CL_IN ClCorMOIdPtrT pMoId, CL_IN ClCorMoIdClassGetFlagsT flag, CL_OUT ClCorClassTypeT *pClassId) |
Returns the class type. | |
ClRcT | clCorMoIdToComponentAddressGet (CL_IN ClCorMOIdPtrT moh, CL_OUT ClCorAddrT *addr) |
– IPI's for Route List manipulation – | |
ClCorInstanceIdT | clCorMoIdToInstanceGet (CL_IN ClCorMOIdPtrT pMoId) |
Returns the instance. | |
ClRcT | clCorMoIdToLogicalSlotGet (ClCorMOIdPtrT pMoId, ClUint32T *logicalSlot) |
Returns the logical slot. | |
ClRcT | clCorMoIdToMoClassPathGet (CL_IN ClCorMOIdPtrT moIdh, CL_OUT ClCorMOClassPathPtrT corIdh) |
Derives the COR path from given a MoId. | |
ClRcT | clCorMoIdToMoIdNameGet (CL_IN ClCorMOIdT *moId, CL_OUT ClNameT *moIdName) |
Retrieves MoId in ClNameT format, when MoId is provided in ClCorMOIdT format. | |
ClRcT | clCorMoIdToNodeNameGet (CL_IN ClCorMOIdPtrT pMoId, CL_OUT ClNameT *nodeName) |
This function can be used to get node name corresponding to a moId which is specified in the ASP configuration file. | |
ClRcT | clCorMoIdTruncate (CL_INOUT ClCorMOIdPtrT pMoId, CL_IN ClInt16T level) |
Removes the node after specified level. | |
ClRcT | clCorMoIdValidate (CL_IN ClCorMOIdPtrT pMoId) |
Validates MoId in the input argument. | |
ClRcT | clCorNodeNameToMoIdGet (CL_IN ClNameT nodeName, CL_OUT ClCorMOIdPtrT pMoId) |
This function can be used to give the MoId corresponding to the node name supplied. | |
ClRcT | clCorObjectAttributeGet (CL_IN ClCorObjectHandleT pHandle, CL_IN ClCorAttrPathPtrT contAttrPath, CL_IN ClCorAttrIdT attrId, CL_IN ClInt32T index, CL_OUT void *value, CL_INOUT ClUint32T *size) |
Retrieves the value of an attribute belonging to an object. | |
ClRcT | clCorObjectAttributeSet (CL_INOUT ClCorTxnSessionIdT *txnSessionId, CL_IN ClCorObjectHandleT pHandle, CL_IN ClCorAttrPathPtrT contAttrPath, CL_IN ClCorAttrIdT attrId, CL_IN ClUint32T index, CL_IN void *value, CL_IN ClUint32T size) |
Sets the attribute of a COR object. | |
ClRcT | clCorObjectAttributeWalk (CL_IN ClCorObjectHandleT objH, CL_IN ClCorObjAttrWalkFilterT *pFilter, CL_IN ClCorObjAttrWalkFuncT fp, CL_IN void *cookie) |
Walk is performed on the attributes of the object. | |
ClRcT | clCorObjectCreate (CL_INOUT ClCorTxnSessionIdT *txnSessionId, CL_IN ClCorMOIdPtrT moId, CL_OUT ClCorObjectHandleT *handle) |
Creates a COR object. | |
ClRcT | clCorObjectCreateAndSet (CL_INOUT ClCorTxnSessionIdT *tid, CL_IN ClCorMOIdPtrT pMoId, CL_IN ClCorAttributeValueListPtrT attrList, CL_OUT ClCorObjectHandleT *pHandle) |
Creates and sets a COR object. | |
ClRcT | clCorObjectDelete (CL_INOUT ClCorTxnSessionIdT *txnSessionId, CL_IN ClCorObjectHandleT handle) |
Deletes a COR object. | |
ClRcT | clCorObjectHandleGet (ClCorMOIdPtrT pMoId, ClCorObjectHandleT *objHandle) |
Retrieves the compressed MO handle corresponding to MOID. | |
ClRcT | clCorObjectHandleToMoIdGet (CL_IN ClCorObjectHandleT objHandle, CL_OUT ClCorMOIdPtrT moId, CL_OUT ClCorServiceIdT *srvcId) |
Returns the MOID corresponding to compressed MO handle. | |
ClRcT | clCorObjectHandleToTypeGet (CL_IN ClCorObjectHandleT pHandle, CL_OUT ClCorObjTypesT *type) |
Returns the type of an object when its object handle is provided. | |
ClRcT | clCorObjectWalk (CL_IN ClCorMOIdPtrT moIdRoot, CL_IN ClCorMOIdPtrT moIdFilter, CL_IN ClCorObjectWalkFunT fp, CL_IN ClCorObjWalkFlagsT flags, CL_IN void *cookie) |
Walks through the object tree. | |
ClRcT | clCorOIRegister (CL_IN const ClCorMOIdPtrT pMoId, CL_IN const ClCorAddrPtrT pCompAaddr) |
A component can register itself as an OI through this API. | |
ClRcT | clCorOIUnregister (CL_IN const ClCorMOIdPtrT pMoId, CL_IN const ClCorAddrPtrT pCompAddr) |
De-register the component acting as the OI. | |
ClRcT | clCorPrimaryOIClear (CL_IN const ClCorMOIdPtrT pMoId, CL_IN const ClCorAddrPtrT pCompAddr) |
De-register the component that is acting as the primary OI. | |
ClRcT | clCorPrimaryOIGet (CL_IN const ClCorMOIdPtrT pMoId, CL_OUT ClCorAddrPtrT pCompAddr) |
Obtains the primary OI for a given MO. | |
ClRcT | clCorPrimaryOISet (CL_IN const ClCorMOIdPtrT pMoId, CL_IN const ClCorAddrPtrT pCompAddr) |
Sets a component as the primary OI. | |
ClRcT | clCorServiceIdValidate (CL_IN ClCorServiceIdT srvcId) |
Validates serviceId in the input argument. | |
ClRcT | clCorServiceRuleAdd (CL_IN ClCorMOIdPtrT moh, CL_IN ClCorAddrT addr) |
Adds a new route rule entry. | |
ClRcT | clCorServiceRuleDelete (CL_IN ClCorMOIdPtrT moh, CL_IN ClCorAddrT addr) |
Delete the station from the route list. | |
ClRcT | clCorTxnFailedJobGet (ClCorTxnSessionIdT txnSessionId, ClCorTxnInfoT *pPrevTxnInfo, ClCorTxnInfoT *pNextTxnInfo) |
Retrieves the information about the failed transaction job for a pariticular transaction Id. | |
ClRcT | clCorTxnFirstJobGet (CL_IN ClCorTxnIdT txnId, CL_OUT ClCorTxnJobIdT *pJobId) |
Get the first job. | |
ClRcT | clCorTxnIdTxnFree (CL_IN ClCorTxnIdT corTxnId) |
Frees the data for the transactionID . | |
ClRcT | clCorTxnJobAttributeTypeGet (CL_IN ClCorTxnIdT txnId, CL_IN ClCorTxnJobIdT jobId, CL_OUT ClCorAttrTypeT *pAttrType, CL_OUT ClCorTypeT *pAttrDataType) |
Get the attribute type information. | |
ClRcT | clCorTxnJobAttrPathGet (CL_IN ClCorTxnIdT txnId, CL_IN ClCorTxnJobIdT jobId, CL_OUT ClCorAttrPathT **pAttrPath) |
Retrieves the attrpath from the transaction. | |
ClRcT | clCorTxnJobDefnHandleUpdate (CL_OUT ClTxnJobDefnHandleT jobDefnHandle, CL_IN ClCorTxnIdT corTxnId) |
This function is used to pack the transaction information and update it in the given job definition handle. | |
ClRcT | clCorTxnJobHandleToCorTxnIdGet (CL_IN ClTxnJobDefnHandleT jobDefn, CL_IN ClSizeT size, CL_OUT ClCorTxnIdT *pTxnId) |
Get thetransactionID from thetransactionJob handle. | |
ClRcT | clCorTxnJobMoIdGet (CL_IN ClCorTxnIdT txnId, CL_OUT ClCorMOIdT *pMOId) |
Get the MoId From the transaction. | |
ClRcT | clCorTxnJobObjectHandleGet (CL_IN ClCorTxnIdT txnId, CL_OUT ClCorObjectHandleT *pObjHandle) |
Get the Object handle from the transaction. | |
ClRcT | clCorTxnJobOperationGet (CL_IN ClCorTxnIdT txnId, CL_IN ClCorTxnJobIdT jobId, CL_OUT ClCorOpsT *op) |
Get the operation type. | |
ClRcT | clCorTxnJobSetParamsGet (CL_IN ClCorTxnIdT txnId, CL_IN ClCorTxnJobIdT jobId, CL_OUT ClCorAttrIdT *pAttrId, CL_OUT ClInt32T *pIndex, CL_OUT void **pValue, CL_OUT ClUint32T *pSize) |
Get all the information necessary for setting the attribute. | |
ClRcT | clCorTxnJobStatusGet (CL_IN ClCorTxnIdT txnId, CL_IN ClCorTxnJobIdT jobId, CL_OUT ClUint32T *jobStatus) |
Get the status of a particular job. | |
ClRcT | clCorTxnJobStatusSet (CL_IN ClCorTxnIdT txnId, CL_IN ClCorTxnJobIdT jobId, CL_IN ClUint32T jobStatus) |
Set the status of a particular job. | |
ClRcT | clCorTxnJobWalk (CL_IN ClCorTxnIdT pThis, CL_IN ClCorTxnFuncT funcPtr, CL_IN void *cookie) |
Walk through the transaction Jobs. | |
ClRcT | clCorTxnLastJobGet (CL_IN ClCorTxnIdT txnId, CL_OUT ClCorTxnJobIdT *pJobId) |
Get the last job in the transaction. | |
ClRcT | clCorTxnNextJobGet (CL_IN ClCorTxnIdT txnId, CL_IN ClCorTxnJobIdT currentJobHdl, CL_OUT ClCorTxnJobIdT *pNextJobHdl) |
Get the next job in the transaction. | |
ClRcT | clCorTxnPreviousJobGet (CL_IN ClCorTxnIdT txnId, CL_IN ClCorTxnJobIdT currentJobId, CL_OUT ClCorTxnJobIdT *pPrevJobId) |
Get the previous job in the transaction. | |
ClRcT | clCorTxnSessionCancel (CL_IN ClCorTxnSessionIdT txnSessionId) CL_DEPRECATED |
Cancels a transaction session. | |
ClRcT | clCorTxnSessionCommit (CL_IN ClCorTxnSessionIdT txnSessionId) |
Commits an active transaction session. | |
ClRcT | clCorTxnSessionFinalize (CL_IN ClCorTxnSessionIdT txnSessionId) |
Finalizes a COR transaction session. | |
ClRcT | clCorUtilMoAndMSOCreate (CL_IN ClCorMOIdPtrT pMoId, CL_OUT ClCorObjectHandleT *pHandle) |
Creates MO and MSO objects. | |
ClRcT | clCorUtilMoAndMSODelete (CL_IN ClCorMOIdPtrT pMoId) |
Deletes MO and MSO objects. | |
ClRcT | clCorVersionCheck (CL_INOUT ClVersionT *version) |
Verifies the version supported by COR. |
Defines, Structures, Typedefs, Functions.
#define CL_COR_ATTR_CONFIG 0x01000000 |
Macros for defining the attribute flags.
It should be ORed value of some of of these flags. Attribute type is config (Stored in database).
#define CL_COR_ERR_BUNDLE_INVALID_TYPE 0x1a8 |
The bundle type (ClCorBundleConfigT) is supplied wrongly to the bundle initialize.
For this release it should be only CL_COR_BUNDLE_NON_TRANSACTIONAL.
#define CL_COR_ERR_CLASS_ATTR_INVALID_INDEX 0x10f |
The index specified for the attribute is invalid.
This can be an index for an array attribute which is out of range of the array length or for a simple attribute it is not specified as CL_COR_INVALID_ATTR_IDX.
#define CL_COR_ERR_INVALID_SIZE 0x121 |
The size specified for the attribute is invalid.
This can happen in the the case of set or get operation on the Managed object attribute.
#define CL_COR_ERR_OI_NOT_REGISTERED 0x1c0 |
The OI is not registered when doing get of the primary OI.
It also indicate that a primary OI flag is being set for OI without adding it to the route list.
#define CL_COR_INST_ERR_INVALID_MOID 0x144 |
The invalid MOID is supplied to the function.
This can be either due to an invalid class identifier or invalid instance identifier for a class.
#define CL_COR_NOTIFY_ERR_INVALID_OP 0x160 |
The invalid operation type is specified.
The operation type should be one of values specified in ClCorOpsT.
#define CL_COR_SVC_ERR_INVALID_ID 0x171 |
The service Id for the MSO specified in the MOID is invalid.
This should be one of the value defined in ClCorServiceIdT.
#define CL_COR_TXN_ERR_INVALID_OP 0x154 |
The Invalid operation type has been supplied.
The operation type should be one of value present in the enum ClCorOpsT.
#define CL_COR_TXN_ERR_JOB_WALK_TERMINATE 0x15d |
The transaction job walk is terminated.
This can be used to break the transaction job walk at any desired point.
#define CL_COR_TXN_ERR_SPANS_MULTI_OBJ 0x153 |
The transaction spans mutlitple object.
This is an obselete error code.
#define CL_COR_VERSION_NO 0x0100 |
Currently not supported.
Will be included future releases.
#define CL_COR_VERSION_NO 0x0100 |
Currently not supported.
Will be included future releases.
typedef ClCorAddrT* ClCorAddrPtrT |
A pointer to the IOC physical address structure.
This is populated with the IOC physical address of the component that acts as an Object Implementor (OI) for a Managed Object (MO). It is passed as a parameter to the OI registration API.
typedef ClRcT(* ClCorBundleCallbackPtrT)(ClCorBundleHandleT bundleHandle, ClPtrT userArg) |
The callback function for the asynchronous bunlde.
bundleHandle | (in) The bundle handle obtained after doing clCorBundleInitialize(). |
userArg | (in) Pointer to the user data or cookie passed while initializing the bundle. |
CL_OK | The callback function completed successfully. |
typedef ClInt16T ClCorMOServiceIdT |
This type is part of the ClCorMOIdT type to access a MO or MSO.
This stores the service ID of the MO/MSO whose value is equal to any of the values in the enumeration type ClCorServiceIdT. For PROV MSO, the value of the service ID is CL_COR_SVC_ID_PROVISIONING_MANAGEMENT.
typedef ClRcT(* ClCorObjAttrWalkFuncT)(ClCorAttrPathPtrT pAttrPath,ClCorAttrIdT attrId,ClCorAttrTypeT attrType,ClCorTypeT attrDataType,void *value,ClUint32T size,ClCorAttrFlagT attrData,void *cookie) |
The type of the callback API that is invoked for every attribute within a COR object, during the walk operation.
pAttrPath | (out) Path of contained object whose attribute is being walked. This must be NULL for base object attributes. |
attrId | (out) Attribute ID. |
attrType | (out) Attribute type. It can take one of the following values:
|
attrDataType | (out) Data type of the attribute. This is valid for SIMPLE and ARRAY attributes only. For ASSOCIATION attributes, attrDataType is CL_COR_INVALID_DATA_TYPE. |
value | (out) Pointer to the value of the attribute. |
size | (out) Size of the value. |
attrData | (out) Pointer to the attribute data, ClCorAttrFlagT which contains the flags set for the attribute. |
cookie | (out) The user data (or cookie) that is passed as a parameter to the clCorObjectAttributeWalk() API. |
typedef ClPtrT ClCorObjectHandleT |
The structure ClCorObjectHandle is the handle to MO.
This handle is a compressed version of the clCoirMOIdT and identifies the hierarchy in the object tree. objhandle hierarchy is compressed and indicates the indexes. objTree handle represents the tree. The COR server returns this handle to the client after the object is created. The type for the Object Handle.
typedef ClRcT(* ClCorObjectWalkFunT)(void *data, void *cookie) |
Type of callback function used for Object Walk.
data | (out) Handle of the MO object being walked. |
cookie | (out) User passed data. |
ClRcT | User passed return value. |
typedef ClRcT(* ClCorTxnFuncT)(ClCorTxnIdT trans, ClCorTxnJobIdT jobId, void *cookie) |
Type of the callback function which will be called while doing transaction job walk.
trans | (in) Transaction Id being walked |
jobId | (in) Job Id in the transaction. |
cookie | (in) User passed data. |
ClRcT | User passed return value. |
typedef ClPtrT ClCorTxnSessionIdT |
The type of the handle of a COR transaction session.
It is used by APIs that manipulate the COR object such as:
enum ClCorAttrCmpFlagT |
The enumeration ClCorAttrCmpFlagT contains the comparison flags used to compare the attribute values with a specified value.
It is used to filter the attributes of the MO while performing the walk operation.
enum ClCorAttrType |
The values of this enumeration type refer to the COR attribute types.
enum ClCorAttrWalkOpT |
The enumeration ClCorAttrWalkOpT contains the various options for walk operation on the attributes.
If CL_COR_ATTR_WALK_ONLY_MATCHED_ATTR is specified, the walk is performed only on the matching attributes in MO. If CL_COR_ATTR_WALK_ALL_ATTR is specified, the walk is performed on all the attributes in MO.
The values of the ClCorMoIdClassGetFlagsT enumeration type will be used in the clCorMoIdToClassGet() API.
This API is used to request the class ID of the MO or MSO.
This enumeration is also part of the ClCorMOIdT structure.
The values of the enumeration indicates the type of the MOID required while working with the MOId.
enum ClCorObjFlagsT |
MO and MSO related flags Following flags are used to specify:
These flags are used in clCorObjectFlagsSet() and clCorObjectFlagsGet() APIs and can be applied to multiple MOs and MSOs by constructing an appropriate wildcard filled moId.
CACHE related flags, These CANNOT be OR'ed together. These determine where the physical copy of the object exists.
enum ClCorObjTypesT |
This type used to know the type of object the object-handle contains.
This is used in the API clCorObjectHandleToTypeGet() which will return the type of object (MO or MSO) the object-handle points to. The values of this enumeration type is used to obtain the type of the COR object. This is used by clCorObjectHandleToTypeGet() API which takes the object handle as the IN parameter and returns the type of the object as the OUT parameter.
enum ClCorObjWalkFlagsT |
This enumeration type contains the walk related definitions.
It is used to perform a walk operation on a MO tree. The following values are only currently supported.
enum ClCorOpsT |
The values of the ClCorOpsT enumeration type contain the Operation IDs.
A combination of Operation IDs can be used.
enum ClCorPersDataTypeT |
enum ClCorServiceIdT |
The members of this enumeration type contains the service ID for all MSPs.
enum ClCorType |
The ClCorType enumeration contains the basic COR data types.
ClRcT clCorAttrPathAlloc | ( | CL_INOUT ClCorAttrPathPtrT * | pAttrPath | ) |
Creates an attribute path.
pAttrPath | (out) Handle of the new attribute path. |
CL_OK | The function executed successfully. |
CL_COR_ERR_NO_MEM | On memory allocation failure. |
ClRcT clCorAttrPathAppend | ( | CL_INOUT ClCorAttrPathPtrT | pAttrPath, |
CL_IN ClCorClassTypeT | attrId, | ||
CL_IN ClCorInstanceIdT | index | ||
) |
Adds an entry to the attribute path.
pAttrPath | Handle of the COR attribute path. |
attrId | ID of the attribute. |
index | Index of the attribute. |
CL_OK | The function executed successfully. |
CL_COR_ERR_MAX_DEPTH | If depth exceeded the maximum limit. |
ClRcT clCorAttrPathClone | ( | ClCorAttrPathPtrT | pAttrPath, |
ClCorAttrPathPtrT * | newH | ||
) |
Clones a particular ClCorAttrPath.
pAttrPath | Handle of the COR attribute path. |
newH | (out) Handle of the new clone. |
CL_OK | The function executed successfully. |
CL_COR_ERR_NO_MEM | On memory allocation failure. |
ClInt32T clCorAttrPathCompare | ( | CL_IN ClCorAttrPathPtrT | pAttrPath, |
CL_IN ClCorAttrPathPtrT | cmp | ||
) |
Compares two ClCorAttrPath.
pAttrPath | First handle of ClCorAttrPath. |
cmp | Second handle of ClCorAttrPath. |
0 | If both attribute paths are same, even if they have same indices, like wildcards. |
-1 | If the attribute paths mismatch. |
1 | If wildcards are same. |
ClInt16T clCorAttrPathDepthGet | ( | CL_IN ClCorAttrPathPtrT | pAttrPath | ) |
Returns the COR attribute path node depth.
pAttrPath | Handle of the COR attribute path. |
ClRcT clCorAttrPathFree | ( | CL_INOUT ClCorAttrPathPtrT | pAttrPath | ) |
Deletes the COR attribute path handle.
pAttrPath | Handle of ClCorAttrPath. |
CL_OK | The function executed successfully. |
ClUint32T clCorAttrPathIndexGet | ( | CL_IN ClCorAttrPathPtrT | pAttrPath | ) |
Returns the index of COR attribute path.
pAttrPath | Handle of the COR attribute path. |
ClRcT clCorAttrPathIndexSet | ( | CL_INOUT ClCorAttrPathPtrT | pAttrPath, |
CL_IN ClUint16T | ndepth, | ||
CL_IN ClUint32T | newIndex | ||
) |
Sets the index of COR attribute path.
pAttrPath | Handle of the COR attribute path. |
ndepth | The depth at which new index is to be set. |
newIndex | The new index to be set. |
CL_OK | on success. |
ClRcT clCorAttrPathInitialize | ( | CL_INOUT ClCorAttrPathPtrT | pAttrPath | ) |
Initializes the attribute path.
pAttrPath | Handle of the attribute path. |
CL_OK | The function executed successfully. |
ClRcT clCorAttrPathSet | ( | CL_INOUT ClCorAttrPathPtrT | pAttrPath, |
CL_IN ClUint16T | level, | ||
CL_IN ClCorAttrIdT | attrId, | ||
CL_IN ClUint32T | index | ||
) |
Sets the attribute ID for a given node.
pAttrPath | Handle of the attribute path. |
level | Level of the node. |
attrId | Attribute ID to be set. |
index | Index to be set. |
CL_OK | The function executed successfully. |
CL_COR_ERR_INVALID_DEPTH | If the level specified is invalid. |
void clCorAttrPathShow | ( | CL_IN ClCorAttrPathPtrT | pAttrPath | ) |
Displays the COR attribute path in debug mode only.
pAttrPath | Handle of the COR attribute path. |
ClCorAttrIdT clCorAttrPathToAttrIdGet | ( | CL_IN ClCorAttrPathPtrT | pAttrPath | ) |
Returns the attribute ID.
pAttrPath | Handle of the COR attribute path. |
ClCorAttrIdT | the attribute ID. |
ClRcT clCorAttrPathTruncate | ( | CL_INOUT ClCorAttrPathPtrT | pAttrPath, |
CL_IN ClInt16T | level | ||
) |
Removes node after specified level.
pAttrPath | Handle of the clCorattrPathT. |
level | Level to which ClCorAttrPathT needs to be truncated. |
CL_OK | The function executed successfully. |
CL_COR_ERR_INVALID_DEPTH | If the level specified is invalid. |
ClRcT clCorBundleApply | ( | CL_IN ClCorBundleHandleT | bundleHandle | ) |
Submits a bundle to the COR server for execution.
bundleHandle | (in) This parameter identifies the bundle. |
CL_OK | The API executed successfully. The bundle is applied successfully. |
CL_COR_ERR_NO_MEM | The bundle could not be applied due to insufficient memory. |
CL_COR_ERR_NULL_PTR | If there is no information present for the given bundleHandle. |
CL_COR_ERR_ZERO_JOBS_BUNDLE | The bundle applied don't have any being added. |
CL_COR_ERR_INVALID_HANDLE | The handle passed in invalid. |
CL_COR_ERR_BUNDLE_IN_EXECUTION | The bundle specified by <bundlehandle> is executing at the server while the same bundle is applied again. |
CL_COR_ERR_BUNDLE_APPLY_FAILURE | The bundle apply has been unsuccessful. |
ClRcT clCorBundleApplyAsync | ( | CL_IN ClCorBundleHandleT | bundleHandle, |
CL_IN ClCorBundleCallbackPtrT | funcPtr, | ||
CL_IN ClPtrT | userArg | ||
) |
Function to apply the bundle asynchronously.
bundleHandle | (in) This parameter identifies the bundle. |
funcPtr | (in) The function pointer of type ClCorBundleCallbackPtrT which will be executed once the response for a given bundle is received. |
userArg | (in) The cookie or the user argument which will be passed to the callback function along with the bundle handle once the reponse for the bundle is received. |
CL_OK | The API executed successfully. The bundle is applied successfully. |
CL_COR_ERR_NO_MEM | The bundle could not be applied due to insufficient memory. |
CL_COR_ERR_NULL_PTR | when the the pointer to the callback function specified by <funcPtr>passed is NULL. Also if there is no information present for the given bundleHandle. |
CL_COR_ERR_ZERO_JOBS_BUNDLE | The bundle applied don't have any being added. |
CL_COR_ERR_INVALID_HANDLE | The handle passed in invalid. |
CL_COR_ERR_BUNDLE_IN_EXECUTION | The bundle specified by <bundlehandle> is executing at the server while the same bundle is applied again. |
CL_COR_ERR_BUNDLE_APPLY_FAILURE | The bundle apply has been unsuccessfull. |
ClRcT clCorBundleFinalize | ( | ClCorBundleHandleT | bundleHandle | ) |
Finalizes the bundle.
bundleHandle | (in/out) This parameter identifies the bundle. |
CL_OK | Bundle is finalized successfully. |
CL_COR_ERR_NULL_PTR | The information corresponding to the bundleHandle is missing. |
CL_COR_ERR_BUNDLE_IN_EXECUTION | The bundle corresponding to the bundleHandle is in progress. |
CL_COR_ERR_BUNDLE_FINALIZE | Failure while finalizing the bundle. |
ClRcT clCorBundleInitialize | ( | CL_OUT ClCorBundleHandlePtrT | pBundleHandle, |
CL_IN ClCorBundleConfigPtrT | pBundleConfig | ||
) |
Creates a bundle and returns a unique handle identifying the bundle.
pBundleHandle | (out) This parameter identifies the bundle. This function will create the bundle and fill the bundle handle in pBundleHandle. |
pBundleConfig | (in) The pBunldeConfig->bundleType element indicates if the bundle is a transactional bundle or a non transactional bundle. |
CL_OK | The API executed successfully. The job was successfully queued in the bundle. |
CL_COR_ERR_NO_MEM | Bundle initialization failed due to insufficient memory. |
CL_COR_ERR_BUNDLE_INIT_FAILURE | Generic bundle initialization failure. |
CL_COR_ERR_BUNDLE_INVALID_CONFIG | The transactional bundle configuration is currently not supported. |
CL_COR_ERR_NULL_PTR | pBundleHandle or pBundleConfig is NULL. |
ClRcT clCorBundleObjectGet | ( | CL_IN ClCorBundleHandleT | bundleHandle, |
CL_IN const ClCorObjectHandleT * | pObjectHandle, | ||
CL_INOUT ClCorAttrValueDescriptorListPtrT | pAttrList | ||
) |
Populates a bundle with read-jobs.
bundleHandle | (in) This parameter identifies the bundle. |
objHandle | (in) This parameter contains the description of the job that needs to be operated. |
pAttrDescList | (in/out) This parameter describes the list of attributes on which read operation needs to be performed. ObjHandle and attrDescList together form a read-job. |
CL_OK | The API executed successfully. The Job was successfully queued in the bundle. |
CL_COR_ERR_NO_MEM | This job is not added to the bundle. Bundle unsuccessful due to insufficient memory. |
CL_COR_ERR_NULL_PTR | pAttrDescList or objHandle is NULL or the data buffer corresponding to any of the attribute is NULL. This job is not added into the bundle. |
CL_COR_ERR_INVALID_PARAM | pAttrDescList->numOfDescriptor is NULL. |
CL_COR_ERR_INVALID_HANDLE | Invalid bundle handle. This job is not added to the bundle. |
CL_COR_ERR_BUNDLE_IN_EXECUTION | The bundle specified by <bundlehandle> is executing at the server while a new read-job is being added at the client side. |
ClRcT clCorEventHandleToCorTxnIdGet | ( | ClEventHandleT | evtH, |
ClSizeT | size, | ||
ClCorTxnIdT * | corTxnId | ||
) |
evtH | (in) Handle to the event. |
size | (in) Size of the event data. |
corTxnId | (out) COR transaction Id extracted from the event. |
CL_OK | The API is successfully executed. |
CL_COR_ERR_INVALID_PARAM | Invalid parameter passed. |
CL_COR_ERR_NO_MEM | Memory allocation failure. |
CL_COR_TXN_ERR_ZERO_JOBS | No jobs found in the transaction. |
ClRcT clCorEventSubscribe | ( | ClEventChannelHandleT | channelHandle, |
ClCorMOIdPtrT | changedObj, | ||
ClCorAttrPathPtrT | pAttrPath, | ||
ClCorAttrListPtrT | attrList, | ||
ClCorOpsT | flags, | ||
void * | cookie, | ||
ClEventSubscriptionIdT | subscriptionId | ||
) |
Subscribes for notifications when a change occurs in an attribute.
channelHandle | (in) Handle of the COR channel. You are required to allocate the memory for this parameter. |
changedObj | (in) This is the complete path to the object. Wildcards can be used to specify a class or subtree of objects. |
pAttrPath | (in) To subscribe for the attributes of the contained objects, the attrPath identifying the contained object must be specified. It must be set to NULL for the current implementation and will be supported in future releases. |
attrList | (in) If the subscriber is interested in receiving notifications when certain attribute(s) of an object change, the list of these attribute IDs can be specified here. If it is set to NULL, the subscriber receives notifications when a change occurs in any of the attributes of the specified MO. Following are the critical usage restrictions for this parameter:
|
flags | (in) This parameter contains the operations that the user can subscribe for. The operations are:
|
cookie | (in) This contains the user-data which is passed as the parameter to the notification callback function. |
subscriptionId | (in)You are required to provide the subscription ID. This subscription ID has to be used while unsubscribing. |
CL_OK | The API is successfully executed. |
CL_COR_ERR_NULL_PTR | changedObj is a NULL pointer. |
CL_COR_NOTIFY_ERR_INVALID_OP | The operation specified for the subscription is not valid. |
CL_EVENT_ERR_BAD_HANDLE | channelhandle is zero. This error code is generated by Event Service, therefore the return value contains the Event Service Component Identifier. |
ClRcT clCorEventUnsubscribe | ( | ClEventChannelHandleT | channelHandle, |
ClEventSubscriptionIdT | subscriptionId | ||
) |
Unsubscribes for attribute change notification.
channelHandle | (in) Channel handle obtained when the COR channel was opened by the application. |
subscriptionId | (in) Subscription ID obtained from COR while subscribing. |
CL_OK | The API is successfully executed. |
CL_EVENT_ERR_INIT_NOT_DONE | Event library is not initialized. |
CL_EVENT_ERR_BAD_HANDLE | The handle is invalid. |
CL_EVENT_INTERNAL_ERROR | An unexpected problem occurred with the Event Manager. |
CL_EVENT_ERR_INVALID_PARAM | An invalid parameter has been passed to the function. A parameter is not set correctly. |
CL_EVENT_ERR_NO_MEM | Memory allocation failure. |
ClRcT clCorLogicalSlotToMoIdGet | ( | ClUint32T | logicalSlot, |
ClCorMOIdPtrT | pMoId | ||
) |
Returns MOId given the Logical Slot.
— Not Supported in this release.
logicalSlot | Logical slotId corresponding to the blade MOId. |
pMoId | (out) MOId of the card. |
CL_OK | The function executed successfully. |
CL_COR_ERR_NOT_EXIST | If an entry is not present for a given MOId. |
CL_COR_ERR_NULL_PTR | On passing NULL pointer. |
ClRcT clCorMoIdAlloc | ( | CL_INOUT ClCorMOIdPtrT * | pMoId | ) |
Creates an MoId.
pMoId | (out) Handle of new MOId. |
CL_OK | The API executed successfully. |
CL_COR_ERR_NO_MEM | Memory allocation failure. |
CL_COR_ERR_NULL_PTR | pMoId a NULL pointer. |
ClRcT clCorMoIdAppend | ( | CL_INOUT ClCorMOIdPtrT | pMoId, |
CL_IN ClCorClassTypeT | type, | ||
CL_IN ClCorInstanceIdT | instance | ||
) |
Adds an entry to the MoId.
pMoId | (in/out) Handle of the MOId |
type | (in) Node type. |
instance | (in) ID of the node instance. |
CL_OK | The API executed successfully. |
CL_COR_ERR_MAX_DEPTH | If depth exceeded the maximum limit. |
CL_COR_ERR_INVALID_CLASS | Invalid class to for append. |
CL_COR_ERR_INVALID_PARAM | Invalid parameter is passed. |
ClRcT clCorMoIdClone | ( | ClCorMOIdPtrT | pMoId, |
ClCorMOIdPtrT * | newH | ||
) |
Clones a particular MOId.
pMoId | (in) Handle of the MoId. |
newH | (out) Handle of the new clone. |
CL_OK | The API executed successfully. |
CL_COR_ERR_NO_MEM | Memory allocation failure. |
int clCorMoIdCompare | ( | CL_IN ClCorMOIdPtrT | pMoId, |
CL_IN ClCorMOIdPtrT | cmp | ||
) |
Compares two MoIds and verifies if they are equal.
0 | Both COR MOIDs match each other. |
-1 | MOIDs do not match. |
1 | The wildcards of MOIDs match each other. |
ClRcT clCorMoIdConcatenate | ( | CL_INOUT ClCorMOIdPtrT | part1, |
CL_INOUT ClCorMOIdPtrT | part2, | ||
CL_IN ClInt32T | copyWhere | ||
) |
Concatenates a MoId to another MoId.
part1 | First MoId. |
part2 | Second MoId. |
copyWhere | Indicates the place where the concatenated MoId has to be copied.
|
CL_OK | The API executed successfully. |
CL_COR_ERR_MAX_DEPTH | The depth exceeds the maximum limit. |
CL_COR_ERR_NULL_PTR | part1 or part2 is a NULL pointer. |
CL_COR_ERR_MAX_DEPTH | The depth of (part1 + part2) exceeds the maximum depth of ClCorMOIdT. |
ClInt16T clCorMoIdDepthGet | ( | CL_IN ClCorMOIdPtrT | pMoId | ) |
Returns node depth of the COR MoId.
pMoId | (in) Handle of the MOId. |
ClInt16T | The number of elements in the MoId. |
ClRcT clCorMoIdFirstInstanceGet | ( | CL_INOUT ClCorMOIdPtrT | pMoId | ) |
Returns the first child.
pMoId | (in/out) Updated ClCorMOId is returned. Memory allocation for the MoId must be done by you. |
CL_OK | The function executed successfully. |
CL_COR_ERR_NULL_PTR | pMoId is a NULL pointer. |
CL_COR_ERR_INVALID_PARAM | pMoId contains an invalid service ID. |
CL_COR_MO_TREE_ERR_NODE_NOT_FOUND | The node is not found in the MO tree. |
CL_COR_INST_ERR_NODE_NOT_FOUND | The node is not found in the object instance tree. |
ClRcT clCorMoIdFree | ( | CL_INOUT ClCorMOIdPtrT | pMoId | ) |
Deletes the ClCorMOId handle.
pMoId | (in/out) Handle of ClCorMOId. |
CL_OK | The API executed successfully. |
CL_COR_ERR_NULL_PTR | pMoId is a NULL pointer. |
ClRcT clCorMoIdInitialize | ( | CL_INOUT ClCorMOIdPtrT | pMoId | ) |
Initializes a MOID or resets the content of an existing MOID.
pMoId | (in/out) A pointer to an existing MoId structure. |
CL_OK | The API executed successfully. |
CL_COR_ERR_NULL_PTR | pMoId is a NULL pointer. |
ClRcT clCorMoIdInstanceSet | ( | CL_INOUT ClCorMOIdPtrT | pMoId, |
CL_IN ClUint16T | ndepth, | ||
CL_IN ClCorInstanceIdT | newInstance | ||
) |
Sets the instance of the MoId.
pMoId | (in/out) Handle of the MOId. |
ndepth | (in) Depth at which the instance is to be set. |
newInstance | (in) The instance of the MoId that needs to be set. |
CL_OK | The function executed successfully. |
CL_COR_INST_ERR_INVALID_MOID | The ndepth value is greater than the depth of the MOID. |
ClRcT clCorMoIdNameToMoIdGet | ( | CL_IN ClNameT * | moIdName, |
CL_OUT ClCorMOIdT * | moId | ||
) |
Retrieves moId in ClCorMOIdT format, when moId is provided in ClNameT format.
moIdName | MoId in String format. |
moId | (out) Returns the MoId. It has to be allocated by the user. |
CL_OK | The API executed successfully. |
CL_COR_ERR_NULL_PTR | moIdName or moId is a NULL pointer. |
ClRcT clCorMoIdNextSiblingGet | ( | CL_INOUT ClCorMOIdPtrT | pMoId | ) |
Returns the next sibling.
pMoId | (in/out) Updated ClCorMOId is returned. You must allocate the memory for the MoId. |
CL_OK | The function executed successfully. |
ClCorMOServiceIdT clCorMoIdServiceGet | ( | CL_IN ClCorMOIdPtrT | pMoId | ) |
Returns the service ID.
pMoId | (in) Handle of the MoId. |
ClCorMOServiceIdT | (out) Service Id of the MoId specified. |
ClRcT clCorMoIdServiceSet | ( | CL_INOUT ClCorMOIdPtrT | pMoId, |
CL_IN ClCorMOServiceIdT | svc | ||
) |
Sets the service ID.
pMoId | (in/out) Handle of the MoId. |
svc | (in) Service Id to be set. |
CL_OK | The API executed successfully. |
CL_COR_ERR_NULL_PTR | pMoId is a NULL pointer. |
CL_COR_ERR_INVALID_MSP_ID | The service ID is invalid. |
ClRcT clCorMoIdSet | ( | CL_INOUT ClCorMOIdPtrT | pMoId, |
CL_IN ClUint16T | level, | ||
CL_IN ClCorClassTypeT | type, | ||
CL_IN ClCorInstanceIdT | instance | ||
) |
Sets the class type and instanceId at a given node or level.
pMoId | (in/out) Handle of MOId Path. |
level | (in) Level of the node |
type | (in) Class type to be set. |
instance | (in) InstanceId to be set. |
CL_OK | The API executed successfully. |
CL_COR_ERR_INVALID_DEPTH | If the level specified is invalid. |
CL_COR_ERR_NULL_PTR | MOID is a NULL pointer. |
CL_COR_ERR_INVALID_CLASS | Invalid class type is set. |
void clCorMoIdShow | ( | CL_IN ClCorMOIdPtrT | pMoId | ) |
Displays the ClCorMOId handle.
pMoId | Handle of the MOId. |
None |
ClRcT clCorMoIdToClassGet | ( | CL_IN ClCorMOIdPtrT | pMoId, |
CL_IN ClCorMoIdClassGetFlagsT | flag, | ||
CL_OUT ClCorClassTypeT * | pClassId | ||
) |
Returns the class type.
pMoId | (in) Handle of the MOId. |
flag | (in) Specifies type of MO class to be returned. Its value can be either CL_COR_MO_CLASS_GET or CL_COR_MSO_CLASS_GET . |
pClassId | (out) The classId of the class. |
CL_OK | The function executed successfully. |
CL_COR_ERR_NULL_PTR | pMoId or pClassId is a NULL pointer. |
CL_COR_ERR_CLASS_INVALID_PATH | The MO-path specified in the pMoId is invalid. |
CL_COR_SVC_ERR_INVALID_ID | The service ID specified in the pMoId is invalid. |
CL_COR_ERR_INVALID_PARAM | The flag specified is invalid. |
ClCorInstanceIdT clCorMoIdToInstanceGet | ( | CL_IN ClCorMOIdPtrT | pMoId | ) |
Returns the instance.
pMoId | (in) Handle of the MoId. |
ClCorInstanceIdT | Associated Instance ID. |
ClRcT clCorMoIdToLogicalSlotGet | ( | ClCorMOIdPtrT | pMoId, |
ClUint32T * | logicalSlot | ||
) |
Returns the logical slot.
— Not Supported in this release.
pMoId | MOId of the card. |
logicalSlot | Logical slotId corresponding to the blade MOId. |
CL_OK | The function executed successfully. |
CL_COR_ERR_CARDTYPE_MISMATCH | If card present is different than the one specified in MOId. |
CL_COR_ERR_NOT_EXIST | If an entry is not present for a given MOId. |
CL_COR_ERR_INVALID_PARAM | On passing invalid parameters. |
CL_COR_ERR_NULL_PTR | On passing a NULL Pointer. |
ClRcT clCorMoIdToMoClassPathGet | ( | CL_IN ClCorMOIdPtrT | moIdh, |
CL_OUT ClCorMOClassPathPtrT | corIdh | ||
) |
Derives the COR path from given a MoId.
moIdh | (in) Handle of the MoId. |
corIdh | (out) Handle of the updated COR path. |
CL_OK | The function executed successfully. |
CL_COR_ERR_NULL_PTR | moIdh or corIdh is a NULL pointer. |
ClRcT clCorMoIdToMoIdNameGet | ( | CL_IN ClCorMOIdT * | moId, |
CL_OUT ClNameT * | moIdName | ||
) |
Retrieves MoId in ClNameT format, when MoId is provided in ClCorMOIdT format.
moId | (in) MoId in ClCorMOIdT format. |
moIdName | (out) MoId in ClNameT format. |
CL_OK | The function executed successfully. |
CL_COR_ERR_NULL_PTR | moIdName or moId is a NULL pointer. |
ClRcT clCorMoIdToNodeNameGet | ( | CL_IN ClCorMOIdPtrT | pMoId, |
CL_OUT ClNameT * | nodeName | ||
) |
This function can be used to get node name corresponding to a moId which is specified in the ASP configuration file.
pMoId | MoId for which the node name is required. |
nodeName | Node Name corresponding to the moId supplied. |
CL_OK | The function executed successfully. |
CL_COR_ERR_NOT_EXIST | If node name for the moId is not present. |
CL_COR_ERR_VERSION_UNSUPPORTED | version is not supported. |
ClRcT clCorMoIdTruncate | ( | CL_INOUT ClCorMOIdPtrT | pMoId, |
CL_IN ClInt16T | level | ||
) |
Removes the node after specified level.
pMoId | (in/out) Handle of the MoId. |
level | (in) Level to which the MoId needs to be truncated. |
CL_OK | The API executed successfully. |
CL_COR_ERR_INVALID_DEPTH | If the level specified is invalid. |
CL_COR_ERR_NULL_PTR | pMoId is a NULL pointer. |
ClRcT clCorMoIdValidate | ( | CL_IN ClCorMOIdPtrT | pMoId | ) |
Validates MoId in the input argument.
pMoId | Handle of the MOId. |
CL_OK | The function executed successfully. |
ClRcT clCorNodeNameToMoIdGet | ( | CL_IN ClNameT | nodeName, |
CL_OUT ClCorMOIdPtrT | pMoId | ||
) |
This function can be used to give the MoId corresponding to the node name supplied.
nodeName | Node name for which the moId is desired. |
pMoId | (out) moId is supplied by the user. |
CL_OK | The function executed successfully. |
CL_COR_ERR_NOT_EXIST | If moId for the node name is not present. |
CL_COR_ERR_VERSION_UNSUPPORTED | version is not supported. |
ClRcT clCorObjectAttributeGet | ( | CL_IN ClCorObjectHandleT | pHandle, |
CL_IN ClCorAttrPathPtrT | contAttrPath, | ||
CL_IN ClCorAttrIdT | attrId, | ||
CL_IN ClInt32T | index, | ||
CL_OUT void * | value, | ||
CL_INOUT ClUint32T * | size | ||
) |
Retrieves the value of an attribute belonging to an object.
pHandle | (in) handle of the object whose attribute is being read. |
contAttrPath | (in) Path of the containment hierarchy. |
attrID | (in) ID of the attribute. |
index | (in) Attribute index. It is set to CL_COR_INVALID_ATTR_IDX for a SIMPLE |
attribute. | |
value | (out) Pointer to the value. The attribute value is copied into this parameter. |
size | (in/out) Size of the value. |
CL_OK | The API executed successfully. |
CL_COR_ERR_NULL_PTR | value or size is a NULL pointer. |
CL_COR_ERR_NO_MEM | Memory allocation failure. |
CL_COR_ERR_CLASS_ATTR_NOT_PRESENT | Attribute ID passed is not present. |
CL_COR_ERR_CLASS_ATTR_INVALID_RELATION | Size of the attribute is invalid. |
CL_COR_ERR_INVALID_SIZE | For SIMPLE attributes, the parameter size, must be equal to the size if the attribute. For array attributes, this error is returned in one of the following cases: (1) the size is greater than the size of the associated array elements that must be updated; (2) the parameter size is less than size of a single array element; (3) the parameter size is not an integer. This integer must be a multiple of the size of the single array element. |
CL_COR_ERR_CLASS_ATTR_INVALID_INDEX | index is used for SIMPLE attributes. |
CL_COR_ERR_VERSION_UNSUPPORTED | Version is not supported. |
ClRcT clCorObjectAttributeSet | ( | CL_INOUT ClCorTxnSessionIdT * | txnSessionId, |
CL_IN ClCorObjectHandleT | pHandle, | ||
CL_IN ClCorAttrPathPtrT | contAttrPath, | ||
CL_IN ClCorAttrIdT | attrId, | ||
CL_IN ClUint32T | index, | ||
CL_IN void * | value, | ||
CL_IN ClUint32T | size | ||
) |
Sets the attribute of a COR object.
txnSessionID | (in/out) Transaction Session ID. |
phandle | (in) Handle of the object whose attribute is being set. |
contAttrPath | (in) Containment hierarchy path. |
attrID | (in) ID of the attribute. |
index | (in) Index of the attribute. It must be set to CL_COR_INVALID_ATTR_IDX for a SIMPLE attribute. |
value | (in) Pointer to the value that is required to be set. |
size | (in) Size of the value |
CL_OK | The API executed successfully. |
CL_COR_ERR_NULL_PTR | txnSessionId or value is a NULL pointer. |
CL_COR_TXN_ERR_INVALID_JOB_ID | The job ID is invalid . |
CL_COR_ERR_CLASS_ATTR_INVALID_INDEX | Index is used for the SIMPLE attribute. |
CL_COR_ERR_CLASS_ATTR_NOT_PRESENT | The attribute ID is not present. |
CL_COR_ERR_INVALID_SIZE | For SIMPLE attributes, the parameter size is less than the size associated with the attribute attrId. For array attributes, this error is returned in one of the following cases: (1) the size is greater than the size of the associated array elements that are required to be updated; (2) the parameter size is less than the size of an individual array element; (3) the parameter size is not an integer. This integer value must be the multiple of the size of the individual array element. |
CL_COR_ERR_OBJ_ATTR_INVALID_SET | This error code is applicable to SIMPLE attributes, when the value is not within the range specified by min and max values associated with the attribute. |
CL_COR_ERR_CLASS_ATTR_INVALID_INDEX | Invalid index for the attribute. |
CL_COR_ERR_CLASS_ATTR_INVALID_RELATION | Size of the attribute is invalid. |
CL_COR_ERR_VERSION_UNSUPPORTED | Version is not supported. |
ClRcT clCorObjectAttributeWalk | ( | CL_IN ClCorObjectHandleT | objH, |
CL_IN ClCorObjAttrWalkFilterT * | pFilter, | ||
CL_IN ClCorObjAttrWalkFuncT | fp, | ||
CL_IN void * | cookie | ||
) |
Walk is performed on the attributes of the object.
objH | (in) handle of the object |
pFilter | (in)Pointer to the attribute filter. You have to provide the values for this structure. |
fp | (in) User callback API called for every attribute found. |
cookie | (in)The user data passed to the user callback API. |
CL_OK | if the function executes successfully. |
CL_COR_ERR_INVALID_PARAM | A parameter is invalid. |
CL_COR_ERR_NULL_PTR | pFilter or cookie is a NULL pointer. |
CL_COR_ERR_NO_MEM | Failed to allocate memory. |
CL_COR_ERR_NOT_SUPPORTED | cmp_flag is not invalid. |
CL_COR_ERR_VERSION_UNSUPPORTED | Client version not supported. |
CL_COR_UTILS_ERR_INVALID_KEY | An invalid parameter has been passed to the function. A parameter is not set correctly. |
CL_COR_INST_ERR_INVALID_MOID | MoId is invalid. |
pFilter = NULL
pFilter->baseAttrWalk = CL_TRUE
pFilter->baseAttrWalk = CL_FALSE
pFilter->contAttrWalk = CL_FALSE
pFilter->pAttrPath = NULL
pFilter->cmpFlag
pFilter->attrWalkOption
ClRcT clCorObjectCreate | ( | CL_INOUT ClCorTxnSessionIdT * | txnSessionId, |
CL_IN ClCorMOIdPtrT | moId, | ||
CL_OUT ClCorObjectHandleT * | handle | ||
) |
Creates a COR object.
txnSessionID | (in/out) For a SIMPLE transaction containing one job, the value of the parameter must be CL_COR_SIMPLE_TXN. For a COMPLEX transaction containing multiple jobs, it must be initialized to zero and passed to the API for adding the first job. To add the subsequent jobs, the returned value from the previous API should be passed as the parameter. |
MoId | (in) ID of the object to be created. |
handle | (out) Pointer to the object handle. |
CL_OK | The API executed successfully. |
CL_COR_ERR_NULL_PTR | txnSessionId or moId is a NULL pointer. |
CL_COR_ERR_NO_MEM | Memory allocation failure. |
CL_COR_INST_ERR_INVALID_MOID | MoId is invalid. |
CL_COR_ERR_CLASS_NOT_PRESENT | The specified Class is not present. |
CL_COR_INST_ERR_NODE_NOT_FOUND | Parent class is not present in the instance tree. |
CL_COR_MO_TREE_ERR_NODE_NOT_FOUND | moTree node is not present for the class. |
CL_COR_INST_ERR_MAX_INSTANCE | Maximum instance count for this class is reached. |
CL_COR_INST_ERR_MO_ALREADY_PRESENT | MO is present in the instance tree. |
CL_COR_ERR_VERSION_UNSUPPORTED | Version is not supported. |
CL_COR_INST_ERR_MSO_ALREADY_PRESENT | MSO exists in the Object Tree. |
CL_COR_MO_TREE_ERR_CLASS_NO_PRESENT | MSO Class is not present in the MO Tree. |
ClRcT clCorObjectCreateAndSet | ( | CL_INOUT ClCorTxnSessionIdT * | tid, |
CL_IN ClCorMOIdPtrT | pMoId, | ||
CL_IN ClCorAttributeValueListPtrT | attrList, | ||
CL_OUT ClCorObjectHandleT * | pHandle | ||
) |
Creates and sets a COR object.
txnSessionId | (in/out) Transaction Session ID. For a simple transaction which contains only one job, the value of the parameter will be CL_COR_SIMPLE_TXN. For a complex transaction which contains more than one job, it is initialized to zero and passed to the API for adding the first job. To add the subsequent jobs the returned value from the previous function should be passed as the parameter. |
moId | (in) MoId of the object to be created. |
attrList | (in) List of attributes to be initialized. This should contain the value for all the 'Initialized' attributes in that MO. |
pHandle | (out) Pointer to the object handle. This will be updated after creation of the object and its attributes set is done. |
CL_OK | The function executed successfully. |
CL_COR_ERR_NULL_PTR | On passing a NULL pointer. |
CL_COR_ERR_NO_MEM | On memory allocation failure. |
CL_COR_INST_ERR_INVALID_MOID | MoId passed is invalid. |
CL_COR_ERR_CLASS_NOT_PRESENT | Class is not present. |
CL_COR_INST_ERR_PARENT_MO_NOT_EXIST | Parent MO does not exist. |
CL_COR_INST_ERR_MAX_INSTANCE | Maximum Instance count for this object is reached. |
CL_COR_INST_ERR_MO_ALREADY_PRESENT | MO is already present in the instance tree. |
CL_COR_ERR_VERSION_UNSUPPORTED | Version is not supported. |
CL_COR_INST_ERR_MSO_ALREADY_PRESENT | MSO is already present in the Object Tree. |
CL_COR_MO_TREE_ERR_CLASS_NO_PRESENT | Class is not present in the MO Tree. |
CL_COR_ERR_CLASS_ATTR_INVALID_INDEX | If index is used in case of simple attribute or index passed is invalid in case of array attribute. |
CL_COR_ERR_CLASS_ATTR_NOT_PRESENT | The attribute is not present. |
CL_COR_ERR_INVALID_SIZE | The size of the attribute specified is invalid. |
CL_COR_ERR_OBJ_ATTR_INVALID_SET | If the initial value specified is not within the range specified by min and max values associated with the attribute. |
CL_COR_ERR_ATTR_NOT_INITIALIZED | If value is not provided for a 'Initialized' attribute. |
ClRcT clCorObjectDelete | ( | CL_INOUT ClCorTxnSessionIdT * | txnSessionId, |
CL_IN ClCorObjectHandleT | handle | ||
) |
Deletes a COR object.
txnSessionID | (in/out) Transaction Session ID. |
handle | (in) Handle of the object to be deleted. |
CL_OK | The API executed successfully. |
CL_COR_ERR_NULL_PTR | txnSessionId is a NULL pointer. |
CL_COR_INVALID_SRVC_ID | Service ID is incorrect. |
CL_COR_INST_ERR_INVALID_MOID | MoId is invalid. |
CL_COR_INST_ERR_CHILD_MO_EXIST | Child MO exists for the MO object node. |
CL_COR_INST_ERR_MSO_EXIST | MSO exists for the MO object node. |
CL_COR_INST_ERR_NODE_NOT_FOUND | Node not found in the object tree. |
CL_COR_ERR_VERSION_UNSUPPORTED | Version is not supported. |
CL_COR_MO_TREE_ERR_NODE_NOT_FOUND | MO tree node not found. |
ClRcT clCorObjectHandleGet | ( | ClCorMOIdPtrT | pMoId, |
ClCorObjectHandleT * | objHandle | ||
) |
Retrieves the compressed MO handle corresponding to MOID.
pMoid | (in) Pointer to the MOID. |
*objHandle | (out) Pointer to object handle. |
CL_OK | The API executed successfully. |
CL_COR_ERR_NULL_PTR | pMoId is a NULL pointer. |
CL_COR_INST_ERR_INVALID_MOID | MoId is invalid. |
CL_COR_ERR_INVALID_DEPTH | The depth of the MoId is greater than the maximum depth that is configured. |
CL_COR_UTILS_ERR_INVALID_KEY | Failure to locate the node in the MO tree. |
CL_COR_ERR_INVALID_PARAM | An invalid parameter has been passed to the function. A parameter is not set correctly. |
CL_COR_ERR_VERSION_UNSUPPORTED | Version is not supported. |
ClRcT clCorObjectHandleToMoIdGet | ( | CL_IN ClCorObjectHandleT | objHandle, |
CL_OUT ClCorMOIdPtrT | moId, | ||
CL_OUT ClCorServiceIdT * | srvcId | ||
) |
Returns the MOID corresponding to compressed MO handle.
objHandle | (in) Object handle. |
moId | (out) MoId of the object. |
srvcId | (out) Service Id of the object. |
CL_OK | The function executed successfully. |
CL_COR_ERR_NULL_PTR | moId or srvcId is a NULL pointer. |
CL_COR_UTILS_ERR_INVALID_KEY | Invalid value of object handle passed. |
CL_COR_ERR_INVALID_PARAM | On passing an invalid parameter. |
CL_COR_ERR_VERSION_UNSUPPORTED | version is not supported. |
ClRcT clCorObjectHandleToTypeGet | ( | CL_IN ClCorObjectHandleT | pHandle, |
CL_OUT ClCorObjTypesT * | type | ||
) |
Returns the type of an object when its object handle is provided.
CL_IN | pHandle (in) Object handle. |
CL_OUT | type (out) It can be set to CL_COR_OBJ_TYPE_MO or CL_COR_OBJ_TYPE_MSO. |
CL_OK | The function is executed successfully. |
CL_COR_ERR_NULL_PTR | On passing a NULL pointer. |
CL_COR_UTILS_ERR_INVALID_KEY | Invalid value of object Handle. |
CL_COR_ERR_INVALID_PARAM | An invalid parameter has been passed to the function. A parameter is not set correctly. |
CL_COR_ERR_INVALID_DEPTH | Invalid depth of the moId. |
CL_COR_ERR_CLASS_INVALID_PATH | Qualifiers are invalid. |
CL_COR_SVC_ERR_INVALID_ID | Service ID of the MoId is invalid. |
CL_COR_ERR_VERSION_UNSUPPORTED | version is not supported. |
ClRcT clCorObjectWalk | ( | CL_IN ClCorMOIdPtrT | moIdRoot, |
CL_IN ClCorMOIdPtrT | moIdFilter, | ||
CL_IN ClCorObjectWalkFunT | fp, | ||
CL_IN ClCorObjWalkFlagsT | flags, | ||
CL_IN void * | cookie | ||
) |
Walks through the object tree.
moIdRoot | (in) MOID from where the walk operation begins. |
moIdFilter | (in) MOID with wild card entry. This filter is used to refine the scope of the search. For example, if the moIdRoot is /chassis:0/blade:1/, moIdFilter can have a value such as /chassis:0/blade:1/port:'*'/channel:'*' |
fp | (in) The callback API invoked for every object found in COR. |
flags | (in) Flags indicating walk related definitions. This parameter accepts the following values:
|
cookie | (in)Pointer to user-defined data. This value is passed as a parameter to the user callback API. |
CL_OK | The API executed successfully. |
CL_COR_ERR_NULL_PTR | moIdRoot or moIdFilter is a NULL pointer. |
CL_COR_SVC_ERR_INVALID_ID | Service ID is invalid. |
CL_COR_ERR_VERSION_UNSUPPORTED | version is not supported. |
CL_COR_ERR_NO_MEM | Memory allocation failure. |
ClRcT clCorOIRegister | ( | CL_IN const ClCorMOIdPtrT | pMoId, |
CL_IN const ClCorAddrPtrT | pCompAaddr | ||
) |
A component can register itself as an OI through this API.
pMoId | (in) This is pointer to MOID of the MO. |
pCompAddr | (in) IOC address of OI. |
CL_OK | The API executed successfully. |
CL_COR_ERR_NO_MEM | Event library is not initialized. |
CL_COR_ERR_TIMEOUT | The server failed to send the response within the time limit. |
CL_COR_ERR_NULL_PTR | pMoid or pCompAddr is NULL. |
ClRcT clCorOIUnregister | ( | CL_IN const ClCorMOIdPtrT | pMoId, |
CL_IN const ClCorAddrPtrT | pCompAddr | ||
) |
De-register the component acting as the OI.
pMoId | (in) This is pointer to MOID of the MO. |
pCompAddr | (in) The component that needs to be de-registered as the OI. The MOID can be a qualified MOID or a wild card MOID. |
CL_OK | If the OI un-registration operation is successful. |
CL_COR_ERR_OI_NOT_REGISTERED | Component was not registered as OI for this MO given by pMoId. |
CL_COR_ERR_NULL_PTR | pCompAddr or pMoId is a NULL pointer. |
CL_COR_ERR_TIMEOUT | The server failed to send the response within the time limit. |
ClRcT clCorPrimaryOIClear | ( | CL_IN const ClCorMOIdPtrT | pMoId, |
CL_IN const ClCorAddrPtrT | pCompAddr | ||
) |
De-register the component that is acting as the primary OI.
pMoId | (in) Pointer to MOID of the MO. |
pCompAddr | (in) Pointer to the component address structure. |
CL_OK | The API is successfull and the OI is not any more acting as a primary OI. |
CL_COR_ERR_OI_NOT_REGISTERED | This OI is not the Primary OI. |
CL_COR_ERR_NULL_PTR | pCompAddr or pMoId is NULL. |
CL_COR_ERR_TIMEOUT | Server failed to send the response within the time limit. |
ClRcT clCorPrimaryOIGet | ( | CL_IN const ClCorMOIdPtrT | pMoId, |
CL_OUT ClCorAddrPtrT | pCompAddr | ||
) |
Obtains the primary OI for a given MO.
pMoId | (in) Pointer to MOID of the MO. |
pCompAddr | (out) Pointer to the component address structure. |
CL_OK | The call is successful and the address of the component is populated in the second parameter. |
CL_COR_ERR_OI_NOT_REGISTERED | There is no Primary OI registered for this MO. |
CL_COR_ERR_NULL_PTR | pCompAddr or pMoId is NULL. |
CL_COR_ERR_TIMEOUT | Server failed to send the response within the time limit. |
ClRcT clCorPrimaryOISet | ( | CL_IN const ClCorMOIdPtrT | pMoId, |
CL_IN const ClCorAddrPtrT | pCompAddr | ||
) |
Sets a component as the primary OI.
pMoId | (in) Pointer to MOID of the MO. It can be a qualified MOID or wild card MOID. |
pCompAddr | (in) This is the pointer to the component address structure. |
CL_OK | If the call is successful, the OI provided by the component address becomes the Primary OI for this MO. |
CL_COR_ERR_OI_NOT_REGISTERED | An OI can be a primary OI only if is registered as an OI. This error indicates that the OI is attempting to be a primary OI without registering as an OI. |
CL_COR_ERR_ROUTE_PRESENT | A Primary OI already exists for the MO pointed by pMoId. |
CL_COR_ERR_NULL_PTR | pMoid, pCompAddr, or pMoId is a NULL pointer. |
CL_COR_ERR_TIMEOUT | Server failed to send the response within the time limit. |
ClRcT clCorServiceIdValidate | ( | CL_IN ClCorServiceIdT | srvcId | ) |
Validates serviceId in the input argument.
srvcId | Argument passed in serviceId. |
CL_OK | The function executed successfully. |
ClRcT clCorServiceRuleAdd | ( | CL_IN ClCorMOIdPtrT | moh, |
CL_IN ClCorAddrT | addr | ||
) |
Adds a new route rule entry.
CL_IN | moh Handle of ClCorMOId. |
CL_IN | addr COR Address. It contains card ID and EO ID. |
CL_OK | The function is executed successfully. |
CL_COR_ERR_NO_MEM | On memory allocation failure. |
CL_COR_ERR_VERSION_UNSUPPORTED | version is not supported. |
CL_COR_ERR_NULL_PTR | On passing a NULL pointer. |
CL_COR_ERR_MAX_DEPTH | Routes for a given MoId has reached the maximum limit. |
ClRcT clCorServiceRuleDelete | ( | CL_IN ClCorMOIdPtrT | moh, |
CL_IN ClCorAddrT | addr | ||
) |
Delete the station from the route list.
CL_IN | moh Handle of ClCorMOId. |
CL_IN | addr COR Address. It contains slot id and EO id. |
CL_OK | The API is successfully executed. |
CL_COR_ERR_NO_MEM | Failed to allocate memory. |
CL_COR_ERR_VERSION_UNSUPPORTED | version is not supported. |
CL_COR_ERR_NULL_PTR | MoId pointer passed is NULL. |
CL_COR_ERR_ROUTE_NOT_PRESENT | No Route list present for the given MOId. |
ClRcT clCorTxnFailedJobGet | ( | ClCorTxnSessionIdT | txnSessionId, |
ClCorTxnInfoT * | pPrevTxnInfo, | ||
ClCorTxnInfoT * | pNextTxnInfo | ||
) |
Retrieves the information about the failed transaction job for a pariticular transaction Id.
txnSessionId | (in) The transaction session Id for which the transaction had failed. |
pPrevTxnInfo | (in) If this is set to NULL, the first failed job information is sent in pNextTxnInfo. Otherwise, the next entry with respect to pPrevTxnInfo is sent. |
pNextTxnInfo | (out) The next failed job information is populated in this parameter. |
CL_OK | The API executed successfully. |
CL_COR_TXN_ERR_FAILED_JOB_GET | For the transaction Id there is no failed job info avaliable. |
ClRcT clCorTxnFirstJobGet | ( | CL_IN ClCorTxnIdT | txnId, |
CL_OUT ClCorTxnJobIdT * | pJobId | ||
) |
Get the first job.
txnId | Transaction ID . |
pJobId | Pointer to the transaction job ID . |
CL_OK | The API executed successfully. |
CL_COR_ERR_NULL_PTR | On passing a NULL pointer. |
CL_COR_ERR_INVALID_PARAM | On passing an invalid parameter. |
CL_COR_TXN_ERR_ZERO_JOBS | No jobs in the transaction. |
ClRcT clCorTxnIdTxnFree | ( | CL_IN ClCorTxnIdT | corTxnId | ) |
Frees the data for the transactionID .
corTxnId | COR transaction ID. |
CL_OK | The API executed successfully. |
ClRcT clCorTxnJobAttributeTypeGet | ( | CL_IN ClCorTxnIdT | txnId, |
CL_IN ClCorTxnJobIdT | jobId, | ||
CL_OUT ClCorAttrTypeT * | pAttrType, | ||
CL_OUT ClCorTypeT * | pAttrDataType | ||
) |
Get the attribute type information.
txnId | Transaction ID. |
jobId | ID of the job in the transaction. |
pAttrType | (out) Attribute type that is whether it is simple or array or association. |
pAttrDataType | (out) Basic type of the attribute. |
CL_OK | The API executed successfully. |
CL_COR_TXN_ERR_INVALID_JOB_ID | Invalid job ID. |
CL_COR_ERR_NULL_PTR | On passing a NULL pointer. |
CL_COR_ERR_INVALID_PARAM | On passing an invalid parameter. |
ClRcT clCorTxnJobAttrPathGet | ( | CL_IN ClCorTxnIdT | txnId, |
CL_IN ClCorTxnJobIdT | jobId, | ||
CL_OUT ClCorAttrPathT ** | pAttrPath | ||
) |
Retrieves the attrpath from the transaction.
txnId | Transaction ID . |
jobId | Transaction Job ID . |
pAttrPath | (out) Pointer to pointer of attrPath. |
CL_OK | The API executed successfully. |
CL_COR_ERR_NULL_PTR | On passing a NULL pointer. |
CL_COR_ERR_INVALID_PARAM | On passing an invalid parameter. |
CL_COR_TXN_ERR_INVALID_JOB_ID | Returned when the operation type is not set. |
ClRcT clCorTxnJobDefnHandleUpdate | ( | CL_OUT ClTxnJobDefnHandleT | jobDefnHandle, |
CL_IN ClCorTxnIdT | corTxnId | ||
) |
This function is used to pack the transaction information and update it in the given job definition handle.
jobDefnHandle | Handle for the job definition. |
corTxnId | Transaction Id. |
CL_OK | The API executed successfully. |
ClRcT clCorTxnJobHandleToCorTxnIdGet | ( | CL_IN ClTxnJobDefnHandleT | jobDefn, |
CL_IN ClSizeT | size, | ||
CL_OUT ClCorTxnIdT * | pTxnId | ||
) |
Get thetransactionID from thetransactionJob handle.
jobDefn | Transaction job handle. |
size | Size of the transaction. |
pTxnId | (out) Transaction ID . |
CL_OK | The API executed successfully. |
ClRcT clCorTxnJobMoIdGet | ( | CL_IN ClCorTxnIdT | txnId, |
CL_OUT ClCorMOIdT * | pMOId | ||
) |
Get the MoId From the transaction.
txnId | Transaction ID . |
pMOId | Pointer to the MoId for the transaction. |
CL_OK | The API executed successfully. |
CL_COR_ERR_NULL_PTR | On passing a Null Pointer. |
CL_COR_ERR_INVALID_PARAM | On passing an invalid parameter. |
ClRcT clCorTxnJobObjectHandleGet | ( | CL_IN ClCorTxnIdT | txnId, |
CL_OUT ClCorObjectHandleT * | pObjHandle | ||
) |
Get the Object handle from the transaction.
txnId | Transaction ID . |
pObjHandle | (out) Pointer to the Object handle. |
CL_OK | The API executed successfully. |
CL_COR_ERR_NULL_PTR | On passing a NULL pointer. |
CL_COR_ERR_INVALID_PARAM | On passing an invalid parameter. |
ClRcT clCorTxnJobOperationGet | ( | CL_IN ClCorTxnIdT | txnId, |
CL_IN ClCorTxnJobIdT | jobId, | ||
CL_OUT ClCorOpsT * | op | ||
) |
Get the operation type.
txnId | Transaction ID . |
jobId | Transaction Job ID . |
op | (out) Operation Type. (CL_COR_CREATE/SET/DELETE) |
CL_OK | The API executed successfully. |
CL_COR_ERR_NULL_PTR | On passing a NULL pointer. |
CL_COR_ERR_INVALID_PARAM | On passing an invalid parameter. |
CL_COR_CREATE
CL_COR_DELETE
CL_COR_SET
ClRcT clCorTxnJobSetParamsGet | ( | CL_IN ClCorTxnIdT | txnId, |
CL_IN ClCorTxnJobIdT | jobId, | ||
CL_OUT ClCorAttrIdT * | pAttrId, | ||
CL_OUT ClInt32T * | pIndex, | ||
CL_OUT void ** | pValue, | ||
CL_OUT ClUint32T * | pSize | ||
) |
Get all the information necessary for setting the attribute.
txnId | Transaction ID . |
jobId | Transaction job ID . |
pAttrId | (out) Pointer to attribute ID . |
pIndex | (out) Pointer index of the attribute ( CL_COR_INVALID_ATTR_IDX in case of simple attributes). |
pValue | (out) Pointer to the pointer to the value. |
pSize | (out) Size of the attribute value to be set. |
CL_OK | The API executed successfully. |
CL_COR_ERR_NULL_PTR | On passing a NULL pointer. |
CL_COR_ERR_INVALID_PARAM | On passing an invalid parameter. |
CL_COR_TXN_ERR_INVALID_JOB_ID | Job ID passed is NULL. |
ClRcT clCorTxnJobStatusGet | ( | CL_IN ClCorTxnIdT | txnId, |
CL_IN ClCorTxnJobIdT | jobId, | ||
CL_OUT ClUint32T * | jobStatus | ||
) |
Get the status of a particular job.
txnId | Transaction ID . |
jobId | job id in the transaction. |
jobStatus | to get the status. |
CL_OK | The API executed successfully. |
CL_COR_TXN_ERR_ZERO_JOBS | No jobs in the transaction. |
CL_COR_TXN_ERR_INVALID_JOB_ID | The jobId passed is invalid. |
ClRcT clCorTxnJobStatusSet | ( | CL_IN ClCorTxnIdT | txnId, |
CL_IN ClCorTxnJobIdT | jobId, | ||
CL_IN ClUint32T | jobStatus | ||
) |
Set the status of a particular job.
txnId | Transaction ID . |
jobId | job id in the transaction. |
jobStatus | status to be set. |
CL_OK | The API executed successfully. |
CL_COR_TXN_ERR_ZERO_JOBS | No jobs in the transaction. |
CL_COR_TXN_ERR_INVALID_JOB_ID | The jobId passed is invalid. |
ClRcT clCorTxnJobWalk | ( | CL_IN ClCorTxnIdT | pThis, |
CL_IN ClCorTxnFuncT | funcPtr, | ||
CL_IN void * | cookie | ||
) |
Walk through the transaction Jobs.
pThis | Pointer to the Transaction ID. |
funcPtr | Callback function for handling each job. |
cookie | Pointer to the user data. |
CL_OK | The API executed successfully. |
CL_COR_TXN_ERR_ZERO_JOBS | When there are no jobs to walk. |
ClRcT clCorTxnLastJobGet | ( | CL_IN ClCorTxnIdT | txnId, |
CL_OUT ClCorTxnJobIdT * | pJobId | ||
) |
Get the last job in the transaction.
txnId | Transaction ID . |
pJobId | (out) Pointer to the transaction Job ID . |
CL_OK | The API executed successfully. |
CL_COR_ERR_NULL_PTR | On passing a NULL pointer. |
CL_COR_ERR_INVALID_PARAM | On passing an invalid parameter. |
CL_COR_TXN_ERR_ZERO_JOBS | No jobs in the transaction. |
ClRcT clCorTxnNextJobGet | ( | CL_IN ClCorTxnIdT | txnId, |
CL_IN ClCorTxnJobIdT | currentJobHdl, | ||
CL_OUT ClCorTxnJobIdT * | pNextJobHdl | ||
) |
Get the next job in the transaction.
txnId | Transaction ID . |
currentJobHdl | Current transaction job handle. |
pNextJobHdl | (out) Pointer to the next transaction job handle. |
CL_OK | The API executed successfully. |
CL_COR_ERR_NULL_PTR | On passing a NULL pointer. |
CL_COR_ERR_INVALID_PARAM | On passing an invalid parameter. |
CL_COR_TXN_ERR_ZERO_JOBS | No jobs in the transaction. |
CL_COR_TXN_ERR_LAST_JOB | If the current job is the last job. |
ClRcT clCorTxnPreviousJobGet | ( | CL_IN ClCorTxnIdT | txnId, |
CL_IN ClCorTxnJobIdT | currentJobId, | ||
CL_OUT ClCorTxnJobIdT * | pPrevJobId | ||
) |
Get the previous job in the transaction.
txnId | Transaction ID . |
currentJobHdl | Current transaction job handle. |
pNextJobHdl | (out) Pointer to the next transaction job handle. |
CL_OK | The API executed successfully. |
CL_COR_ERR_NULL_PTR | On passing a NULL pointer. |
CL_COR_ERR_INVALID_PARAM | On passing an invalid parameter. |
CL_COR_TXN_ERR_ZERO_JOBS | No jobs in the transaction. |
CL_COR_TXN_ERR_FIRST_JOB | If the current job is the first job. |
ClRcT clCorTxnSessionCancel | ( | CL_IN ClCorTxnSessionIdT | txnSessionId | ) |
Cancels a transaction session.
txnSessionId,: | Transaction session ID. |
CL_OK | The API executed successfully. |
CL_ERR_INVALID_HANDLE | The txnSessionId is invalid. |
ClRcT clCorTxnSessionCommit | ( | CL_IN ClCorTxnSessionIdT | txnSessionId | ) |
Commits an active transaction session.
txnSessionId | Transaction session ID. The session ID is a unique ID which identifies a COMPLEX transaction obtained while calling object create, attribute set, or object delete APIs. |
CL_OK | The API executed successfully. |
CL_COR_TXN_ERR_ZERO_JOBS | If there are no jobs to commit. |
ClRcT clCorTxnSessionFinalize | ( | CL_IN ClCorTxnSessionIdT | txnSessionId | ) |
Finalizes a COR transaction session.
txnSessionId,: | Transaction session ID. |
CL_OK | The API executed successfully. |
CL_ERR_INVALID_HANDLE | The txnSessionId is invalid. |
ClRcT clCorUtilMoAndMSOCreate | ( | CL_IN ClCorMOIdPtrT | pMoId, |
CL_OUT ClCorObjectHandleT * | pHandle | ||
) |
Creates MO and MSO objects.
pMoId | (in) MOId of the MO to be created. |
pHandle | (out) Handle of the MO object created. |
CL_OK | The API executed successfully. |
CL_COR_INST_ERR_MO_ALREADY_PRESENT | MO exists in the instance tree. |
CL_COR_ERR_NULL_PTR | pmoId is a NULL pointer. |
CL_COR_ERR_NO_MEM | Memory allocation failure. |
CL_COR_INST_ERR_INVALID_MOID | pMoId is invalid. |
CL_COR_ERR_CLASS_NOT_PRESENT | The specified class is not present. |
CL_COR_INST_ERR_NODE_NOT_FOUND | Parent class is not present in the instance tree. |
CL_COR_MO_TREE_ERR_NODE_NOT_FOUND | moTree node not found for the class. |
CL_COR_INST_ERR_MAX_INSTANCE | Maximum Instance count for this class is reached. |
CL_COR_ERR_VERSION_UNSUPPORTED | Version is not supported. |
ClRcT clCorUtilMoAndMSODelete | ( | CL_IN ClCorMOIdPtrT | pMoId | ) |
Deletes MO and MSO objects.
pMoid | (in) MOID of the MO to be deleted. |
CL_OK | The API executed successfully. |
CL_ERR_NOT_EXIST | MO class type does not exist. |
CL_COR_ERR_INVALID_PARAM | pMoId of MSO passed instead of MO. |
CL_COR_ERR_NULL_PTR | pMoId is a NULL pointer. |
CL_COR_INST_ERR_INVALID_MOID | MoId is invalid. |
CL_COR_INST_ERR_CHILD_MO_EXIST | A child MO exists for the MO object node. |
CL_COR_INST_ERR_NODE_NOT_FOUND | Node not found in the object tree. |
CL_COR_ERR_VERSION_UNSUPPORTED | Version is not supported. |
CL_COR_MO_TREE_ERR_NODE_NOT_FOUND | MO tree node not found. |
ClRcT clCorVersionCheck | ( | CL_INOUT ClVersionT * | version | ) |
Verifies the version supported by COR.
version | Version supported. |
CL_OK | The function executed successfully. |
CL_COR_ERR_VERSION_UNSUPPORTED | If version is not supported. |