1 #ifndef CL_COR_SIMPLE_API_H
2 #define CL_COR_SIMPLE_API_H
6 #include <clMemGroup.h>
8 typedef struct ClCorObjectReference
16 } ClCorObjectReferenceT;
18 #define clFieldOffset(_type,_field) ((ClUint32T)(ClWordT)&(((_type*) 0)->_field))
19 #define clField(_type,_field) ((ClUint32T)(ClWordT)&(((_type*) 0)->_field)), sizeof((((_type*) 0)->_field))
21 typedef ClCorObjectReferenceT* ClCorHandleT;
23 typedef enum ClCorObjectFlags
30 typedef struct ClCor2CEntry
38 typedef struct ClCor2C
41 ClCor2CEntryT* itemDef;
57 typedef struct ClCorTreeNode
59 struct ClCorTreeNode* sib;
60 struct ClCorTreeNode* child;
61 struct ClCorTreeNode* parent;
122 ClCorObjectReferenceT *clCorObjRefGet(
const ClCharT *name,
ClCorServiceIdT type);
143 void clCorObjRefRelease(ClCorObjectReferenceT *ref);
165 ClRcT clCorOpen(
const ClCharT *name, ClCorObjectFlagsT flags, ClCorHandleT *fd);
183 ClRcT clCorHandleRelease(ClCorHandleT hdl);
205 ClRcT clCorDelete(
const ClCharT *name);
228 ClRcT clCorCreate(
const ClCharT *name,
void* myObj, ClCor2CT* objDef, ClCorHandleT *fd);
249 ClRcT clCorSetPrimary(
const ClCharT *name, ClBoolT val);
271 ClRcT clCorSetPrimaryByMoid(
void* moId, ClBoolT state);
293 ClRcT clCorRead(
const ClCharT *name,
void* myObj, ClCor2CT* objDef);
315 ClRcT clCorReadByMoid(
void* MoId,
void* myObj, ClCor2CT* objDef);
348 void clCorTreeNodeInit(ClCorTreeNodeT* obj);
355 void clCorTreeInit(
ClCorTreeT* obj,ClWordT nSize);
Header file of Clovis Object Registry (COR) related APIs.
Header file of COR Service Ids.
ClUint32T ClRcT
Clovis return code type.
Definition: clCommon.h:168
enum ClCorType ClCorTypeT
The ClCorType enumeration contains the basic COR data types.
ClUint32T ClCorJobStatusT
Status of each failed job.
Definition: clCorMetaData.h:221
enum ClCorAttrType ClCorAttrTypeT
The values of this enumeration type refer to the COR attribute types.
ClPtrT ClCorObjectHandleT
The structure ClCorObjectHandle is the handle to MO.
Definition: clCorMetaData.h:608
ClCorServiceIdT
The members of this enumeration type contains the service ID for all MSPs.
Definition: clCorServiceId.h:57
ClInt32T ClCorAttrIdT
The type of an identifier for a COR attribute.
Definition: clCorMetaData.h:206
A name.
Definition: clCommon.h:197
The structure ClCorMOId contains MoId of the object, which is the address of the COR object.
Definition: clCorMetaData.h:918
Type to provide the list of attribute values for initialized attributes.
Definition: clCorMetaData.h:1350
Type for the attribute value list.
Definition: clCorMetaData.h:1418
COR Tree common elements (i.e.
Definition: clCorSimpleApi.h:49
ClOsalMutexT mutex
Modification mutex.
Definition: clCorSimpleApi.h:53
ClMemGroupT allocated
All nodes in this tree are allocated from this memory group.
Definition: clCorSimpleApi.h:51
Object Tree node.
Definition: clCorSimpleApi.h:66
Class tree node.
Definition: clCorSimpleApi.h:78
Object Tree.
Definition: clCorSimpleApi.h:85
ClCorObjectTreeNodeT * root
the top of the tree
Definition: clCorSimpleApi.h:89
ClCorTreeT cmn
Elements common to all COR trees.
Definition: clCorSimpleApi.h:87
Class Tree.
Definition: clCorSimpleApi.h:94
ClCorTreeT cmn
Elements common to all COR trees.
Definition: clCorSimpleApi.h:96
ClCorClassTreeNodeT * root
the top of the tree
Definition: clCorSimpleApi.h:98