src/vmwarectrl.c
void
VMwareCtrl_ExtInit(ScrnInfoPtr pScrn)
{
   ExtensionEntry *myext;

   if (!(myext = CheckExtension(VMWARE_CTRL_PROTOCOL_NAME))) {
      if (!(myext = AddExtension(VMWARE_CTRL_PROTOCOL_NAME, 0, 0,
                                 VMwareCtrlDispatch,
                                 SVMwareCtrlDispatch,
                                 VMwareCtrlResetProc,
                                 StandardMinorOpcode))) {
         xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
                    "Failed to add VMWARE_CTRL extension\n");
	 return;
      }

      /*
       * For now, only support one screen as that's all the virtual
       * hardware supports.
       */
      myext->extPrivate = pScrn;

      xf86DrvMsg(pScrn->scrnIndex, X_INFO,
                 "Initialized VMWARE_CTRL extension version %d.%d\n",
                 VMWARE_CTRL_MAJOR_VERSION, VMWARE_CTRL_MINOR_VERSION);
   }
}
/*
 *----------------------------------------------------------------------------
 *
 * VMwareCtrl_ExitInit --
 *
 *      Initialiser for the VMWARE_CTRL protocol extension.
 *
 * Results:
 *      None.
 *
 * Side effects:
 *      Protocol extension will be registered if successful.
 *
 *----------------------------------------------------------------------------
 */
VMwareCtrl_ExitInit
Initialiser for the VMWARE_CTRL protocol extension.

None.

Side effects:
Protocol extension will be registered if successful.
VMwareCtrl_ExitInit Initialiser for the VMWARE_CTRL protocol extension . None . Side effects : Protocol extension will be registered if successful .
void
VMwareCtrl_ExtInit(ScrnInfoPtr pScrn)
{
   ExtensionEntry *myext;
   if (!(myext = CheckExtension(VMWARE_CTRL_PROTOCOL_NAME))) {
      if (!(myext = AddExtension(VMWARE_CTRL_PROTOCOL_NAME, 0, 0,
                                 VMwareCtrlDispatch,
                                 SVMwareCtrlDispatch,
                                 VMwareCtrlResetProc,
                                 StandardMinorOpcode))) {
         xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
                    "Failed to add VMWARE_CTRL extension\n");
	 return;
      }
      myext->extPrivate = pScrn;
      xf86DrvMsg(pScrn->scrnIndex, X_INFO,
                 "Initialized VMWARE_CTRL extension version %d.%d\n",
                 VMWARE_CTRL_MAJOR_VERSION, VMWARE_CTRL_MINOR_VERSION);
   }
}
void VMwareCtrl_ExtInit ( ScrnInfoPtr pScrn ) { ExtensionEntry * myext ; if ( ! ( myext = CheckExtension ( VMWARE_CTRL_PROTOCOL_NAME ) ) ) { if ( ! ( myext = AddExtension ( VMWARE_CTRL_PROTOCOL_NAME , 0 , 0 , VMwareCtrlDispatch , SVMwareCtrlDispatch , VMwareCtrlResetProc , StandardMinorOpcode ) ) ) { xf86DrvMsg ( pScrn -> scrnIndex , X_ERROR , " \n " ) ; return ; } myext -> extPrivate = pScrn ; xf86DrvMsg ( pScrn -> scrnIndex , X_INFO , " \n " , VMWARE_CTRL_MAJOR_VERSION , VMWARE_CTRL_MINOR_VERSION ) ; } }
VMwareCtrl_ExitInit
      Initialiser for the VMWARE_CTRL protocol extension.
VMwareCtrl_ExitInit Initialiser for the VMWARE_CTRL protocol extension .
/*
       * For now, only support one screen as that's all the virtual
       * hardware supports.
       */