~ubuntu-branches/ubuntu/precise/virtualbox/precise-updates

« back to all changes in this revision

Viewing changes to src/VBox/VMM/VMMR3/PDMDriver.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-07-04 13:02:31 UTC
  • mfrom: (3.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20110704130231-l843es6wqhx614n7
Tags: 4.0.10-dfsg-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add Apport hook.
    - debian/virtualbox-ose.files/source_virtualbox-ose.py
    - debian/virtualbox-ose.install
  - Drop *-source packages.
* Add the Modaliases control field manually for maximum backportability.

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
static int pdmR3DrvLoad(PVM pVM, PPDMDRVREGCBINT pRegCB, const char *pszFilename, const char *pszName);
72
72
 
73
73
 
74
 
 
75
74
/**
76
 
 * Register external drivers
 
75
 * Register drivers in a statically linked environment.
77
76
 *
78
77
 * @returns VBox status code.
79
78
 * @param   pVM         The VM to operate on.
80
79
 * @param   pfnCallback Driver registration callback
81
80
 */
82
 
VMMR3DECL(int) PDMR3RegisterDrivers(PVM pVM, FNPDMVBOXDRIVERSREGISTER pfnCallback)
 
81
VMMR3DECL(int) PDMR3DrvStaticRegistration(PVM pVM, FNPDMVBOXDRIVERSREGISTER pfnCallback)
83
82
{
84
83
    /*
85
84
     * The registration callbacks.
88
87
    RegCB.Core.u32Version   = PDM_DRVREG_CB_VERSION;
89
88
    RegCB.Core.pfnRegister  = pdmR3DrvRegister;
90
89
    RegCB.pVM               = pVM;
 
90
    RegCB.pCfgNode          = NULL;
91
91
 
92
92
    int rc = pfnCallback(&RegCB.Core, VBOX_VERSION);
93
93
    if (RT_FAILURE(rc))
96
96
    return rc;
97
97
}
98
98
 
 
99
 
99
100
/**
100
101
 * This function will initialize the drivers for this VM instance.
101
102
 *