VirtualBox

Ignore:
Timestamp:
Sep 10, 2013 10:28:34 PM (11 years ago)
Author:
vboxsync
Message:

Filled in a few blanks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ExtPacks/BusMouseSample/BusMouse.cpp

    r48418 r48419  
    3434#define LOG_GROUP LOG_GROUP_DEV_KBD
    3535#include <VBox/vmm/pdmdev.h>
     36#include <VBox/version.h>
    3637#include <iprt/assert.h>
    3738#include <iprt/uuid.h>
    38 
    3939
    4040/** @page pg_busmouse DevBusMouse - Microsoft Bus Mouse Emulation
     
    876876};
    877877
     878#ifdef VBOX_IN_EXTPACK_R3
     879/**
     880 * @callback_method_impl{FNPDMVBOXDEVICESREGISTER}
     881 */
     882extern "C" DECLEXPORT(int) VBoxDevicesRegister(PPDMDEVREGCB pCallbacks, uint32_t u32Version)
     883{
     884    AssertLogRelMsgReturn(u32Version >= VBOX_VERSION,
     885                          ("u32Version=%#x VBOX_VERSION=%#x\n", u32Version, VBOX_VERSION),
     886                          VERR_EXTPACK_VBOX_VERSION_MISMATCH);
     887    AssertLogRelMsgReturn(pCallbacks->u32Version == PDM_DEVREG_CB_VERSION,
     888                          ("pCallbacks->u32Version=%#x PDM_DEVREG_CB_VERSION=%#x\n", pCallbacks->u32Version, PDM_DEVREG_CB_VERSION),
     889                          VERR_VERSION_MISMATCH);
     890
     891    return pCallbacks->pfnRegister(pCallbacks, &g_DeviceBusMouse);
     892}
     893#endif /* VBOX_IN_EXTPACK_R3 */
     894
    878895# endif /* IN_RING3 */
    879896#endif /* !VBOX_DEVICE_STRUCT_TESTCASE */
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