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);