VirtualBox

Ignore:
Timestamp:
Aug 21, 2012 10:03:52 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
80189
Message:

Guest Control 2.0: Bugfixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/GuestCtrlImplPrivate.h

    r42693 r42897  
    3737#endif
    3838
    39 #ifdef LOG_GROUP
    40  #undef LOG_GROUP
    41 #endif
    42 #define LOG_GROUP LOG_GROUP_GUEST_CONTROL
    43 #include <VBox/log.h>
    44 
    4539/** Maximum number of guest sessions a VM can have. */
    4640#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
    4944/** Maximum of callback contexts a guest process can have. */
    5045#define VBOX_GUESTCTRL_MAX_CONTEXTS     _64K - 1
    5146
    52 /** Builds a context ID out of the session ID, process ID and an
     47/** Builds a context ID out of the session ID, object ID and an
    5348 *  increasing count. */
    54 #define VBOX_GUESTCTRL_CONTEXTID_MAKE(uSession, uProcess, uCount) \
     49#define VBOX_GUESTCTRL_CONTEXTID_MAKE(uSession, uObject, uCount) \
    5550    (  (uint32_t)((uSession) &   0xff) << 24 \
    56      | (uint32_t)((uProcess) &   0xff) << 16 \
     51     | (uint32_t)((uObject) &   0xff) << 16 \
    5752     | (uint32_t)((uCount)   & 0xffff)       \
    5853    )
     
    6156    ((uContextID) >> 24)
    6257/** 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) \
    6459    (((uContextID) >> 16) & 0xff)
    6560/** Gets the conext count of a process out of a context ID. */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette