VirtualBox

Changeset 100246 in vbox for trunk


Ignore:
Timestamp:
Jun 22, 2023 10:55:10 AM (18 months ago)
Author:
vboxsync
Message:

Additions: Linux: Added a skeleton for Wayland service, bugref:10194.

Location:
trunk/src/VBox/Additions/x11/VBoxClient
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/Makefile.kmk

    r99689 r100246  
    7272        main.cpp \
    7373        logging.cpp
     74
     75ifdef VBOX_WITH_WAYLAND_ADDITIONS
     76VBoxClient_DEFS += VBOX_WITH_WAYLAND_ADDITIONS
     77VBoxClient_SOURCES += \
     78        wayland-helper-dcp.cpp \
     79        wayland-helper-gtk.cpp \
     80        wayland.cpp
     81endif
     82
    7483VBoxClient_SOURCES += $(VBOX_GH_SOURCES)
    7584
  • trunk/src/VBox/Additions/x11/VBoxClient/VBoxClient.h

    r99689 r100246  
    133133extern VBCLSERVICE g_SvcHostVersion;
    134134extern VBCLSERVICE g_SvcSeamless;
     135# ifdef VBOX_WITH_WAYLAND_ADDITIONS
     136extern VBCLSERVICE g_SvcWayland;
     137# endif
    135138
    136139extern unsigned    g_cVerbosity;
  • trunk/src/VBox/Additions/x11/VBoxClient/main.cpp

    r100063 r100246  
    6666#define VBOXCLIENT_OPT_SESSION_DETECT       VBOXCLIENT_OPT_SERVICES + 7
    6767#define VBOXCLIENT_OPT_SESSION_TYPE         VBOXCLIENT_OPT_SERVICES + 8
     68#define VBOXCLIENT_OPT_WAYLAND              VBOXCLIENT_OPT_SERVICES + 9
    6869
    6970
     
    330331    RTPrintf("  --session-detect     detects and prints the current session type\n"
    331332             "                       (exit code 0 if detection succeeded)\n");
     333#ifdef VBOX_WITH_WAYLAND_ADDITIONS
     334    RTPrintf("  --wayland            starts the shared clipboard and drag-and-drop services for Wayland\n");
     335#endif
    332336    RTPrintf("  -f, --foreground     run in the foreground (no daemonizing)\n");
    333337    RTPrintf("  -d, --nodaemon       continues running as a system service\n");
     
    538542#endif
    539543        { "--session-detect",               VBOXCLIENT_OPT_SESSION_DETECT,      RTGETOPT_REQ_NOTHING },
    540         { "--session-type",                 VBOXCLIENT_OPT_SESSION_TYPE,        RTGETOPT_REQ_STRING }
     544        { "--session-type",                 VBOXCLIENT_OPT_SESSION_TYPE,        RTGETOPT_REQ_STRING  },
     545#ifdef VBOX_WITH_WAYLAND_ADDITIONS
     546        { "--wayland",                      VBOXCLIENT_OPT_WAYLAND,             RTGETOPT_REQ_NOTHING }
     547#endif
    541548    };
    542549
     
    705712                break;
    706713            }
     714#ifdef VBOX_WITH_WAYLAND_ADDITIONS
     715            case VBOXCLIENT_OPT_WAYLAND:
     716            {
     717                if (g_Service.pDesc)
     718                    return vbclSyntaxOnlyOneService();
     719                g_Service.pDesc = &g_SvcWayland;
     720                break;
     721            }
     722#endif
    707723
    708724            case VINF_GETOPT_NOT_OPTION:
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