Changeset 106771 in vbox for trunk/src/VBox/Additions/x11
- Timestamp:
- Oct 29, 2024 1:38:58 PM (6 months ago)
- svn:sync-xref-src-repo-rev:
- 165660
- Location:
- trunk/src/VBox/Additions/x11/VBoxClient
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/wayland-helper-dcp.cpp
r106765 r106771 181 181 static vbox_wl_dcp_ctx_t g_DcpCtx; 182 182 183 static DECLCALLBACK(int) vbcl_wayland_hlp_dcp_ hg_clip_report_join2_cb(vbcl_wl_session_type_t enmSessionType, void *pvUser);184 static DECLCALLBACK(int) vbcl_wayland_hlp_dcp_ hg_clip_report_join3_cb(vbcl_wl_session_type_t enmSessionType, void *pvUser);183 static DECLCALLBACK(int) vbcl_wayland_hlp_dcp_clip_hg_report_join2_cb(vbcl_wl_session_type_t enmSessionType, void *pvUser); 184 static DECLCALLBACK(int) vbcl_wayland_hlp_dcp_clip_hg_report_join3_cb(vbcl_wl_session_type_t enmSessionType, void *pvUser); 185 185 186 186 … … 1020 1020 1021 1021 rc = vbcl_wayland_session_join(&pCtx->Session.Base, 1022 &vbcl_wayland_hlp_dcp_ hg_clip_report_join3_cb,1022 &vbcl_wayland_hlp_dcp_clip_hg_report_join3_cb, 1023 1023 &priv); 1024 1024 … … 1214 1214 { 1215 1215 rc = vbcl_wayland_session_join(&pCtx->Session.Base, 1216 &vbcl_wayland_hlp_dcp_ hg_clip_report_join2_cb,1216 &vbcl_wayland_hlp_dcp_clip_hg_report_join2_cb, 1217 1217 NULL); 1218 1218 } … … 1270 1270 * @interface_method_impl{VBCLWAYLANDHELPER_CLIPBOARD,pfnInit} 1271 1271 */ 1272 RTDECL(int) vbcl_wayland_hlp_dcp_ init(void)1272 RTDECL(int) vbcl_wayland_hlp_dcp_clip_init(void) 1273 1273 { 1274 1274 vbcl_wayland_hlp_dcp_reset_ctx(&g_DcpCtx, false /* fShutdown */); … … 1281 1281 * @interface_method_impl{VBCLWAYLANDHELPER_CLIPBOARD,pfnTerm} 1282 1282 */ 1283 RTDECL(int) vbcl_wayland_hlp_dcp_ term(void)1283 RTDECL(int) vbcl_wayland_hlp_dcp_clip_term(void) 1284 1284 { 1285 1285 int rc; … … 1303 1303 * @interface_method_impl{VBCLWAYLANDHELPER_CLIPBOARD,pfnSetClipboardCtx} 1304 1304 */ 1305 static DECLCALLBACK(void) vbcl_wayland_hlp_dcp_ set_clipboard_ctx(PVBGLR3SHCLCMDCTX pCtx)1305 static DECLCALLBACK(void) vbcl_wayland_hlp_dcp_clip_set_ctx(PVBGLR3SHCLCMDCTX pCtx) 1306 1306 { 1307 1307 g_DcpCtx.pClipboardCtx = pCtx; … … 1311 1311 * @interface_method_impl{VBCLWAYLANDHELPER_CLIPBOARD,pfnPopup} 1312 1312 */ 1313 static DECLCALLBACK(int) vbcl_wayland_hlp_dcp_ popup(void)1313 static DECLCALLBACK(int) vbcl_wayland_hlp_dcp_clip_popup(void) 1314 1314 { 1315 1315 return VINF_SUCCESS; … … 1334 1334 * @param pvUser User data (Wayland I/O context). 1335 1335 */ 1336 static DECLCALLBACK(int) vbcl_wayland_hlp_dcp_ hg_clip_report_join3_cb(1336 static DECLCALLBACK(int) vbcl_wayland_hlp_dcp_clip_hg_report_join3_cb( 1337 1337 vbcl_wl_session_type_t enmSessionType, void *pvUser) 1338 1338 { … … 1416 1416 * other Wayland clients (this is needed in order to avoid feedback 1417 1417 * loop from our own advertisements), (2) waits for the list of clipboard 1418 * formats available on the host side (set by vbcl_wayland_hlp_dcp_ hg_clip_report_join_cb),1418 * formats available on the host side (set by vbcl_wayland_hlp_dcp_clip_hg_report_join_cb), 1419 1419 * and (3) sends data offers for available host clipboard to other clients. 1420 1420 * … … 1424 1424 * @param pvUser User data (unused). 1425 1425 */ 1426 static DECLCALLBACK(int) vbcl_wayland_hlp_dcp_ hg_clip_report_join2_cb(1426 static DECLCALLBACK(int) vbcl_wayland_hlp_dcp_clip_hg_report_join2_cb( 1427 1427 vbcl_wl_session_type_t enmSessionType, void *pvUser) 1428 1428 { … … 1483 1483 * @param pvUser User data (host clipboard formats). 1484 1484 */ 1485 static DECLCALLBACK(int) vbcl_wayland_hlp_dcp_ hg_clip_report_join_cb(1485 static DECLCALLBACK(int) vbcl_wayland_hlp_dcp_clip_hg_report_join_cb( 1486 1486 vbcl_wl_session_type_t enmSessionType, void *pvUser) 1487 1487 { … … 1531 1531 * @interface_method_impl{VBCLWAYLANDHELPER_CLIPBOARD,pfnHGClipReport} 1532 1532 */ 1533 static DECLCALLBACK(int) vbcl_wayland_hlp_dcp_ hg_clip_report(SHCLFORMATS fFormats)1533 static DECLCALLBACK(int) vbcl_wayland_hlp_dcp_clip_hg_report(SHCLFORMATS fFormats) 1534 1534 { 1535 1535 int rc = VERR_NO_DATA; … … 1549 1549 if (RT_SUCCESS(rc)) 1550 1550 rc = vbcl_wayland_session_join(&g_DcpCtx.Session.Base, 1551 vbcl_wayland_hlp_dcp_ hg_clip_report_join_cb,1551 vbcl_wayland_hlp_dcp_clip_hg_report_join_cb, 1552 1552 &fFormats); 1553 1553 } … … 1575 1575 * @param pvUser User data (requested format). 1576 1576 */ 1577 static DECLCALLBACK(int) vbcl_wayland_hlp_dcp_ gh_clip_read_join_cb(1577 static DECLCALLBACK(int) vbcl_wayland_hlp_dcp_clip_gh_read_join_cb( 1578 1578 vbcl_wl_session_type_t enmSessionType, void *pvUser) 1579 1579 { … … 1613 1613 * @interface_method_impl{VBCLWAYLANDHELPER_CLIPBOARD,pfnGHClipRead} 1614 1614 */ 1615 static DECLCALLBACK(int) vbcl_wayland_hlp_dcp_ gh_clip_read(SHCLFORMAT uFmt)1615 static DECLCALLBACK(int) vbcl_wayland_hlp_dcp_clip_gh_read(SHCLFORMAT uFmt) 1616 1616 { 1617 1617 int rc; … … 1620 1620 1621 1621 rc = vbcl_wayland_session_join(&g_DcpCtx.Session.Base, 1622 &vbcl_wayland_hlp_dcp_ gh_clip_read_join_cb,1622 &vbcl_wayland_hlp_dcp_clip_gh_read_join_cb, 1623 1623 &uFmt); 1624 1624 return rc; … … 1627 1627 static const VBCLWAYLANDHELPER_CLIPBOARD g_WaylandHelperDcpClip = 1628 1628 { 1629 vbcl_wayland_hlp_dcp_ init,/* .pfnInit */1630 vbcl_wayland_hlp_dcp_ term,/* .pfnTerm */1631 vbcl_wayland_hlp_dcp_ set_clipboard_ctx,/* .pfnSetClipboardCtx */1632 vbcl_wayland_hlp_dcp_ popup,/* .pfnPopup */1633 vbcl_wayland_hlp_dcp_ hg_clip_report, /* .pfnHGClipReport */1634 vbcl_wayland_hlp_dcp_ gh_clip_read, /* .pfnGHClipRead */1629 vbcl_wayland_hlp_dcp_clip_init, /* .pfnInit */ 1630 vbcl_wayland_hlp_dcp_clip_term, /* .pfnTerm */ 1631 vbcl_wayland_hlp_dcp_clip_set_ctx, /* .pfnSetClipboardCtx */ 1632 vbcl_wayland_hlp_dcp_clip_popup, /* .pfnPopup */ 1633 vbcl_wayland_hlp_dcp_clip_hg_report, /* .pfnHGClipReport */ 1634 vbcl_wayland_hlp_dcp_clip_gh_read, /* .pfnGHClipRead */ 1635 1635 }; 1636 1636 -
trunk/src/VBox/Additions/x11/VBoxClient/wayland-helper-gtk.cpp
r106765 r106771 404 404 * @interface_method_impl{VBCLWAYLANDHELPER_CLIPBOARD,pfnInit} 405 405 */ 406 RTDECL(int) vbcl_wayland_hlp_gtk_ init(void)406 RTDECL(int) vbcl_wayland_hlp_gtk_clip_init(void) 407 407 { 408 408 VBCL_LOG_CALLBACK; … … 416 416 * @interface_method_impl{VBCLWAYLANDHELPER_CLIPBOARD,pfnTerm} 417 417 */ 418 RTDECL(int) vbcl_wayland_hlp_gtk_ term(void)418 RTDECL(int) vbcl_wayland_hlp_gtk_clip_term(void) 419 419 { 420 420 int rc; … … 444 444 * @interface_method_impl{VBCLWAYLANDHELPER_CLIPBOARD,pfnSetClipboardCtx} 445 445 */ 446 static DECLCALLBACK(void) vbcl_wayland_hlp_gtk_ set_clipboard_ctx(PVBGLR3SHCLCMDCTX pCtx)446 static DECLCALLBACK(void) vbcl_wayland_hlp_gtk_clip_set_ctx(PVBGLR3SHCLCMDCTX pCtx) 447 447 { 448 448 g_GtkCtx.pClipboardCtx = pCtx; … … 461 461 * @param pvUser User data (unused). 462 462 */ 463 static DECLCALLBACK(int) vbcl_wayland_hlp_gtk_ popup_join_cb(463 static DECLCALLBACK(int) vbcl_wayland_hlp_gtk_clip_popup_join_cb( 464 464 vbcl_wl_session_type_t enmSessionType, void *pvUser) 465 465 { … … 486 486 * @interface_method_impl{VBCLWAYLANDHELPER_CLIPBOARD,pfnPopup} 487 487 */ 488 static DECLCALLBACK(int) vbcl_wayland_hlp_gtk_ popup(void)488 static DECLCALLBACK(int) vbcl_wayland_hlp_gtk_clip_popup(void) 489 489 { 490 490 int rc; … … 499 499 { 500 500 rc = vbcl_wayland_session_join(&g_GtkCtx.Session.Base, 501 &vbcl_wayland_hlp_gtk_ popup_join_cb,501 &vbcl_wayland_hlp_gtk_clip_popup_join_cb, 502 502 NULL); 503 503 } … … 523 523 * @param pvUser User data (host clipboard formats). 524 524 */ 525 static DECLCALLBACK(int) vbcl_wayland_hlp_gtk_ hg_clip_report_join_cb(525 static DECLCALLBACK(int) vbcl_wayland_hlp_gtk_clip_hg_report_join_cb( 526 526 vbcl_wl_session_type_t enmSessionType, void *pvUser) 527 527 { … … 563 563 * @interface_method_impl{VBCLWAYLANDHELPER_CLIPBOARD,pfnHGClipReport} 564 564 */ 565 static DECLCALLBACK(int) vbcl_wayland_hlp_gtk_ hg_clip_report(SHCLFORMATS fFormats)565 static DECLCALLBACK(int) vbcl_wayland_hlp_gtk_clip_hg_report(SHCLFORMATS fFormats) 566 566 { 567 567 int rc = VERR_NO_DATA; … … 578 578 { 579 579 rc = vbcl_wayland_session_join(&g_GtkCtx.Session.Base, 580 &vbcl_wayland_hlp_gtk_ hg_clip_report_join_cb,580 &vbcl_wayland_hlp_gtk_clip_hg_report_join_cb, 581 581 &fFormats); 582 582 } … … 602 602 * @param pvUser User data (requested format). 603 603 */ 604 static DECLCALLBACK(int) vbcl_wayland_hlp_gtk_ gh_clip_read_join_cb(604 static DECLCALLBACK(int) vbcl_wayland_hlp_gtk_clip_gh_read_join_cb( 605 605 vbcl_wl_session_type_t enmSessionType, void *pvUser) 606 606 { … … 641 641 * @interface_method_impl{VBCLWAYLANDHELPER_CLIPBOARD,pfnGHClipRead} 642 642 */ 643 static DECLCALLBACK(int) vbcl_wayland_hlp_gtk_ gh_clip_read(SHCLFORMAT uFmt)643 static DECLCALLBACK(int) vbcl_wayland_hlp_gtk_clip_gh_read(SHCLFORMAT uFmt) 644 644 { 645 645 int rc = VINF_SUCCESS; … … 678 678 { 679 679 rc = vbcl_wayland_session_join(&g_GtkCtx.Session.Base, 680 &vbcl_wayland_hlp_gtk_ gh_clip_read_join_cb,680 &vbcl_wayland_hlp_gtk_clip_gh_read_join_cb, 681 681 &uFmt); 682 682 } 683 683 } 684 684 685 VBClLogVerbose(2, "vbcl_wayland_hlp_gtk_ gh_clip_read ended rc=%Rrc\n", rc);685 VBClLogVerbose(2, "vbcl_wayland_hlp_gtk_clip_gh_read ended rc=%Rrc\n", rc); 686 686 687 687 return rc; … … 716 716 static const VBCLWAYLANDHELPER_CLIPBOARD g_WaylandHelperGtkClip = 717 717 { 718 vbcl_wayland_hlp_gtk_ init,/* .pfnInit */719 vbcl_wayland_hlp_gtk_ term,/* .pfnTerm */720 vbcl_wayland_hlp_gtk_ set_clipboard_ctx,/* .pfnSetClipboardCtx */721 vbcl_wayland_hlp_gtk_ popup,/* .pfnPopup */722 vbcl_wayland_hlp_gtk_ hg_clip_report, /* .pfnHGClipReport */723 vbcl_wayland_hlp_gtk_ gh_clip_read, /* .pfnGHClipRead */718 vbcl_wayland_hlp_gtk_clip_init, /* .pfnInit */ 719 vbcl_wayland_hlp_gtk_clip_term, /* .pfnTerm */ 720 vbcl_wayland_hlp_gtk_clip_set_ctx, /* .pfnSetClipboardCtx */ 721 vbcl_wayland_hlp_gtk_clip_popup, /* .pfnPopup */ 722 vbcl_wayland_hlp_gtk_clip_hg_report, /* .pfnHGClipReport */ 723 vbcl_wayland_hlp_gtk_clip_gh_read, /* .pfnGHClipRead */ 724 724 }; 725 725
Note:
See TracChangeset
for help on using the changeset viewer.