src/vmwarexinerama.c
void
VMwareXinerama_ExtInit(ScrnInfoPtr pScrn)
{
   ExtensionEntry *myext;
   VMWAREPtr pVMWARE = VMWAREPTR(pScrn);

#ifdef PANORAMIX
   if(!noPanoramiXExtension) {
      xf86DrvMsg(pScrn->scrnIndex, X_INFO,
                 "Built-in Xinerama active, not initializing VMware Xinerama\n");
      pVMWARE->xinerama = FALSE;
      return;
   }
#endif

   if (!(myext = CheckExtension(PANORAMIX_PROTOCOL_NAME))) {
      if (!(myext = AddExtension(PANORAMIX_PROTOCOL_NAME, 0, 0,
                                 VMwareXineramaDispatch,
                                 SVMwareXineramaDispatch,
                                 VMwareXineramaResetProc,
                                 StandardMinorOpcode))) {
         xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
                    "Failed to add VMware Xinerama extension.\n");
         return;
      }

      pVMWARE->xinerama = TRUE;

      myext->extPrivate = pScrn;

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

None.

Side effects:
Protocol extension will be registered if successful.
VMwareCtrl_ExitInit Initialiser for the Xinerama protocol extension . None . Side effects : Protocol extension will be registered if successful .
void
VMwareXinerama_ExtInit(ScrnInfoPtr pScrn)
{
   ExtensionEntry *myext;
   VMWAREPtr pVMWARE = VMWAREPTR(pScrn);
#ifdef PANORAMIX
   if(!noPanoramiXExtension) {
      xf86DrvMsg(pScrn->scrnIndex, X_INFO,
                 "Built-in Xinerama active, not initializing VMware Xinerama\n");
      pVMWARE->xinerama = FALSE;
      return;
   }
#endif
   if (!(myext = CheckExtension(PANORAMIX_PROTOCOL_NAME))) {
      if (!(myext = AddExtension(PANORAMIX_PROTOCOL_NAME, 0, 0,
                                 VMwareXineramaDispatch,
                                 SVMwareXineramaDispatch,
                                 VMwareXineramaResetProc,
                                 StandardMinorOpcode))) {
         xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
                    "Failed to add VMware Xinerama extension.\n");
         return;
      }
      pVMWARE->xinerama = TRUE;
      myext->extPrivate = pScrn;
      xf86DrvMsg(pScrn->scrnIndex, X_INFO,
                 "Initialized VMware Xinerama extension.\n");
   }
}
void VMwareXinerama_ExtInit ( ScrnInfoPtr pScrn ) { ExtensionEntry * myext ; VMWAREPtr pVMWARE = VMWAREPTR ( pScrn ) ; #ifdef PANORAMIX if ( ! noPanoramiXExtension ) { xf86DrvMsg ( pScrn -> scrnIndex , X_INFO , " \n " ) ; pVMWARE -> xinerama = FALSE ; return ; } #endif if ( ! ( myext = CheckExtension ( PANORAMIX_PROTOCOL_NAME ) ) ) { if ( ! ( myext = AddExtension ( PANORAMIX_PROTOCOL_NAME , 0 , 0 , VMwareXineramaDispatch , SVMwareXineramaDispatch , VMwareXineramaResetProc , StandardMinorOpcode ) ) ) { xf86DrvMsg ( pScrn -> scrnIndex , X_ERROR , " \n " ) ; return ; } pVMWARE -> xinerama = TRUE ; myext -> extPrivate = pScrn ; xf86DrvMsg ( pScrn -> scrnIndex , X_INFO , " \n " ) ; } }
VMwareCtrl_ExitInit
      Initialiser for the Xinerama protocol extension.
VMwareCtrl_ExitInit Initialiser for the Xinerama protocol extension .