00001
00011 #ifndef __CMI_COMMON_OOC_H
00012 #define __CMI_COMMON_OOC_H
00013
00014 #include <stdio.h>
00015
00016 #ifdef __cplusplus
00017 extern "C" {
00018 #endif
00019
00026 typedef struct _CooPrefetchManager {
00032 int (* msg2ObjId) (void *msg);
00033
00038 void (* writeToSwap) (FILE *swapfile,void *objptr);
00039
00044 void (* readFromSwap) (FILE *swapfile,void *objptr);
00045 } CooPrefetchManager;
00046
00053 extern void CooRegisterManager(CooPrefetchManager *pf,int handlerIdx);
00054
00055
00065 extern int CooRegisterObject(CooPrefetchManager *pf,int objsize,void *objptr);
00066
00071 extern void CooDeregisterObject(int objid);
00072
00073
00079 extern void CooSetSize(int objid,int newsize);
00080
00086 extern void CooBringIn(int objid);
00087
00088
00089 #ifdef __cplusplus
00090 };
00091 #endif
00092
00093 #endif