Changeset 99620 in vbox for trunk/src/VBox/Additions/x11/VBoxClient
- Timestamp:
- May 5, 2023 9:08:00 AM (23 months ago)
- svn:sync-xref-src-repo-rev:
- 157146
- Location:
- trunk/src/VBox/Additions/x11/VBoxClient
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/Makefile.kmk
r99595 r99620 52 52 VBOX_GH_SOURCES := \ 53 53 $(PATH_ROOT)/src/VBox/GuestHost/Log.cpp \ 54 $(PATH_ROOT)/src/VBox/GuestHost/ SessionType.cpp54 $(PATH_ROOT)/src/VBox/GuestHost/DisplayServerType.cpp 55 55 56 56 VBoxClient_TEMPLATE = VBoxGuestR3Exe -
trunk/src/VBox/Additions/x11/VBoxClient/VBoxClient.h
r99585 r99620 38 38 39 39 #include <VBox/GuestHost/Log.h> 40 #include <VBox/GuestHost/ SessionType.h>40 #include <VBox/GuestHost/DisplayServerType.h> 41 41 42 42 int VBClShowNotify(const char *pszHeader, const char *pszBody); … … 54 54 extern void VBClShutdown(bool fExit = true); 55 55 56 extern VBGH SESSIONTYPE VBClGetSessionType(void);56 extern VBGHDISPLAYSERVERTYPE VBClGetDisplayServerType(void); 57 57 58 58 /** -
trunk/src/VBox/Additions/x11/VBoxClient/clipboard.cpp
r99590 r99620 83 83 int rc = VINF_SUCCESS; 84 84 85 if (VBClGet SessionType() == VBGHSESSIONTYPE_X11)85 if (VBClGetDisplayServerType() == VBGHDISPLAYSERVERTYPE_X11) 86 86 { 87 87 rc = VBClX11ClipboardInit(); … … 95 95 } 96 96 #if 0 97 else (VBClGetSessionType() == VBGHSESSIONTYPE_WAYLAND)97 else (VBClGetSessionType() == GHDISPLAYSERVERTYPE_WAYLAND) 98 98 { 99 99 -
trunk/src/VBox/Additions/x11/VBoxClient/display-helper-gnome3.cpp
r99585 r99620 982 982 int rc; 983 983 984 if (VBClGet SessionType() == VBGHSESSIONTYPE_X11)984 if (VBClGetDisplayServerType() == VBGHDISPLAYSERVERTYPE_X11) 985 985 { 986 986 rc = vbcl_hlp_generic_init(); … … 998 998 int rc; 999 999 1000 if (VBClGet SessionType() == VBGHSESSIONTYPE_X11)1000 if (VBClGetDisplayServerType() == VBGHDISPLAYSERVERTYPE_X11) 1001 1001 { 1002 1002 rc = vbcl_hlp_generic_term(); -
trunk/src/VBox/Additions/x11/VBoxClient/display-svga-x11.cpp
r99585 r99620 581 581 } 582 582 583 if (VBClGet SessionType() == VBGHSESSIONTYPE_WAYLAND)583 if (VBClGetDisplayServerType() == VBGHDISPLAYSERVERTYPE_WAYLAND) 584 584 { 585 585 rc = VbglR3DrmClientStart(); -
trunk/src/VBox/Additions/x11/VBoxClient/draganddrop.cpp
r99603 r99620 42 42 static DECLCALLBACK(int) vbclDnDInit(void) 43 43 { 44 switch (VBClGet SessionType())44 switch (VBClGetDisplayServerType()) 45 45 { 46 case VBGH SESSIONTYPE_X11:46 case VBGHDISPLAYSERVERTYPE_X11: 47 47 g_pSvc = new VBClX11DnDSvc(); 48 48 break; 49 49 50 case VBGH SESSIONTYPE_WAYLAND:50 case VBGHDISPLAYSERVERTYPE_WAYLAND: 51 51 RT_FALL_THROUGH(); 52 52 default: -
trunk/src/VBox/Additions/x11/VBoxClient/main.cpp
r99616 r99620 114 114 /** The file handle of parent process pidfile. */ 115 115 static RTFILE g_hControlPidFile; 116 /** The sessiontype to use. */117 static VBGH SESSIONTYPE g_enmSessionType = VBGHSESSIONTYPE_AUTO;116 /** The display server type to use. */ 117 static VBGHDISPLAYSERVERTYPE g_enmDisplayServerType = VBGHDISPLAYSERVERTYPE_AUTO; 118 118 119 119 /** Global critical section held during the clean-up routine (to prevent it … … 165 165 166 166 /** 167 * Returns the current sessiontype.167 * Returns the current display server type. 168 168 * 169 * @returns The sessiontype.170 */ 171 VBGH SESSIONTYPE VBClGetSessionType(void)172 { 173 return g_enm SessionType;169 * @returns The display server type. 170 */ 171 VBGHDISPLAYSERVERTYPE VBClGetDisplayServerType(void) 172 { 173 return g_enmDisplayServerType; 174 174 } 175 175 … … 668 668 { 669 669 if (!RTStrICmp(ValueUnion.psz, "x11")) 670 g_enm SessionType = VBGHSESSIONTYPE_X11;670 g_enmDisplayServerType = VBGHDISPLAYSERVERTYPE_X11; 671 671 else if (!RTStrICmp(ValueUnion.psz, "wayland")) 672 g_enm SessionType = VBGHSESSIONTYPE_WAYLAND;672 g_enmDisplayServerType = VBGHDISPLAYSERVERTYPE_WAYLAND; 673 673 else if (!RTStrICmp(ValueUnion.psz, "none")) 674 g_enm SessionType = VBGHSESSIONTYPE_NONE;674 g_enmDisplayServerType = VBGHDISPLAYSERVERTYPE_NONE; 675 675 else if (!RTStrICmp(ValueUnion.psz, "auto")) 676 g_enm SessionType = VBGHSESSIONTYPE_AUTO;676 g_enmDisplayServerType = VBGHDISPLAYSERVERTYPE_AUTO; 677 677 else 678 678 { 679 679 RTMsgError("Session type \"%s\" is invalid; defaulting to \"auto\" instead.\n", ValueUnion.psz); 680 g_enm SessionType = VBGHSESSIONTYPE_AUTO;680 g_enmDisplayServerType = VBGHDISPLAYSERVERTYPE_AUTO; 681 681 } 682 682 break; … … 741 741 742 742 /* Try to detect the current session type early on, if needed. */ 743 if (g_enm SessionType == VBGHSESSIONTYPE_AUTO)744 { 745 g_enm SessionType = VBGHSessionTypeDetect();743 if (g_enmDisplayServerType == VBGHDISPLAYSERVERTYPE_AUTO) 744 { 745 g_enmDisplayServerType = VBGHDisplayServerTypeDetect(); 746 746 } 747 747 else 748 VBClLogInfo("Session type was manually set to: %s\n", VBGH SessionTypeToStr(g_enmSessionType));749 750 VBClLogInfo("Session type is: %s\n", VBGH SessionTypeToStr(g_enmSessionType));748 VBClLogInfo("Session type was manually set to: %s\n", VBGHDisplayServerTypeToStr(g_enmDisplayServerType)); 749 750 VBClLogInfo("Session type is: %s\n", VBGHDisplayServerTypeToStr(g_enmDisplayServerType)); 751 751 752 752 VBClLogInfo("Service: %s\n", g_Service.pDesc->pszDesc); … … 796 796 } 797 797 798 if (g_enm SessionType == VBGHSESSIONTYPE_X11)798 if (g_enmDisplayServerType == VBGHDISPLAYSERVERTYPE_X11) 799 799 { 800 800 /* This should never be called twice in one process - in fact one Display -
trunk/src/VBox/Additions/x11/VBoxClient/seamless.cpp
r99603 r99620 84 84 static DECLCALLBACK(int) vbclSeamlessInit(void) 85 85 { 86 switch (VBClGet SessionType())86 switch (VBClGetDisplayServerType()) 87 87 { 88 case VBGH SESSIONTYPE_X11:88 case VBGHDISPLAYSERVERTYPE_X11: 89 89 g_pSvc = new VBClX11SeamlessSvc(); 90 90 break; 91 91 92 case VBGH SESSIONTYPE_WAYLAND:92 case VBGHDISPLAYSERVERTYPE_WAYLAND: 93 93 RT_FALL_THROUGH(); 94 94 default: -
trunk/src/VBox/Additions/x11/VBoxClient/testcase/tstSeamlessX11.cpp
r99600 r99620 35 35 36 36 #include <VBox/VBoxGuestLib.h> 37 #include <VBox/GuestHost/ SessionType.h>37 #include <VBox/GuestHost/DisplayServerType.h> 38 38 39 39 #include "../seamless.h" … … 41 41 static RTSEMEVENT eventSem; 42 42 43 VBGH SESSIONTYPE VBClGetSessionType(void)43 VBGHDISPLAYSERVERTYPE VBClGetDisplayServerType(void) 44 44 { 45 return VBGH SESSIONTYPE_X11;45 return VBGHDISPLAYSERVERTYPE_X11; 46 46 } 47 47
Note:
See TracChangeset
for help on using the changeset viewer.