Changeset 1080 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Feb 28, 2007 8:28:11 AM (18 years ago)
- Location:
- trunk/src/VBox/Main/include/hgcm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/hgcm/HGCM.h
r906 r1080 43 43 int hgcmHostCallInternal (const char *pszServiceName, uint32_t function, uint32_t cParms, VBOXHGCMSVCPARM aParms[]); 44 44 45 int hgcmSaveStateInternal ( PPDMIHGCMPORT pHGCMPort,uint32_t clientID, PSSMHANDLE pSSM);46 int hgcmLoadStateInternal ( PPDMIHGCMPORT pHGCMPort,uint32_t clientID, PSSMHANDLE pSSM);45 int hgcmSaveStateInternal (uint32_t clientID, PSSMHANDLE pSSM); 46 int hgcmLoadStateInternal (uint32_t clientID, PSSMHANDLE pSSM); 47 47 48 48 __END_DECLS -
trunk/src/VBox/Main/include/hgcm/HGCMObjects.h
r1 r1080 36 36 } ObjectAVLCore; 37 37 38 typedef enum 39 { 40 HGCMOBJ_CLIENT, 41 HGCMOBJ_THREAD, 42 HGCMOBJ_MSG, 43 HGCMOBJ_SizeHack = 0x7fffffff 44 } HGCMOBJ_TYPE; 45 38 46 class HGCMObject 39 47 { … … 42 50 43 51 int32_t volatile cRef; 52 HGCMOBJ_TYPE enmObjType; 44 53 45 54 ObjectAVLCore Core; … … 51 60 52 61 public: 53 HGCMObject () : cRef (0) {}; 62 HGCMObject (HGCMOBJ_TYPE enmObjType) : cRef (0) 63 { 64 this->enmObjType = enmObjType; 65 }; 54 66 55 67 void Reference (void) … … 79 91 return Core.AvlCore.Key; 80 92 }; 93 94 HGCMOBJ_TYPE Type (void) 95 { 96 return enmObjType; 97 }; 81 98 }; 82 99 … … 89 106 void hgcmObjDeleteHandle (uint32_t handle); 90 107 91 HGCMObject *hgcmObjReference (uint32_t handle );108 HGCMObject *hgcmObjReference (uint32_t handle, HGCMOBJ_TYPE enmObjType); 92 109 93 110 void hgcmObjDereference (HGCMObject *pObject); 94 111 112 uint32_t hgcmObjQueryHandleCount (); 113 void hgcmObjSetHandleCount (uint32_t u32HandleCount); 114 95 115 #endif /* __HGCMOBJECTS__H */ -
trunk/src/VBox/Main/include/hgcm/HGCMThread.h
r1 r1080 95 95 96 96 public: 97 HGCMMsgCore () {};97 HGCMMsgCore () : HGCMObject(HGCMOBJ_MSG) {}; 98 98 99 99 uint32_t MsgId (void) { return m_u32Msg; };
Note:
See TracChangeset
for help on using the changeset viewer.