Changeset 42897 in vbox for trunk/src/VBox/Main/include/GuestCtrlImplPrivate.h
- Timestamp:
- Aug 21, 2012 10:03:52 AM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 80189
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/GuestCtrlImplPrivate.h
r42693 r42897 37 37 #endif 38 38 39 #ifdef LOG_GROUP40 #undef LOG_GROUP41 #endif42 #define LOG_GROUP LOG_GROUP_GUEST_CONTROL43 #include <VBox/log.h>44 45 39 /** Maximum number of guest sessions a VM can have. */ 46 40 #define VBOX_GUESTCTRL_MAX_SESSIONS 255 47 /** Maximum of guest processes a guest session can have. */ 48 #define VBOX_GUESTCTRL_MAX_PROCESSES 255 41 /** Maximum number of guest objects (processes, files, ...) 42 * a guest session can have. */ 43 #define VBOX_GUESTCTRL_MAX_OBJECTS 255 49 44 /** Maximum of callback contexts a guest process can have. */ 50 45 #define VBOX_GUESTCTRL_MAX_CONTEXTS _64K - 1 51 46 52 /** Builds a context ID out of the session ID, processID and an47 /** Builds a context ID out of the session ID, object ID and an 53 48 * increasing count. */ 54 #define VBOX_GUESTCTRL_CONTEXTID_MAKE(uSession, u Process, uCount) \49 #define VBOX_GUESTCTRL_CONTEXTID_MAKE(uSession, uObject, uCount) \ 55 50 ( (uint32_t)((uSession) & 0xff) << 24 \ 56 | (uint32_t)((u Process)& 0xff) << 16 \51 | (uint32_t)((uObject) & 0xff) << 16 \ 57 52 | (uint32_t)((uCount) & 0xffff) \ 58 53 ) … … 61 56 ((uContextID) >> 24) 62 57 /** Gets the process ID out of a context ID. */ 63 #define VBOX_GUESTCTRL_CONTEXTID_GET_ PROCESS(uContextID) \58 #define VBOX_GUESTCTRL_CONTEXTID_GET_OBJECT(uContextID) \ 64 59 (((uContextID) >> 16) & 0xff) 65 60 /** Gets the conext count of a process out of a context ID. */
Note:
See TracChangeset
for help on using the changeset viewer.