VirtualBox

source: vbox/trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-x11-stubs.cpp@ 89394

Last change on this file since 89394 was 87566, checked in by vboxsync, 4 years ago

Shared Clipboard: doxygen fixes for unnecessary @copydoc in definitions and duplicate @param docs. (probably bugref:9437)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.2 KB
Line 
1/* $Id: VBoxSharedClipboardSvc-x11-stubs.cpp 87566 2021-02-03 13:48:48Z vboxsync $*/
2/** @file
3 * Shared Clipboard Service - Linux host, a stub version with no functionality for use on headless hosts.
4 */
5
6/*
7 * Copyright (C) 2006-2020 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18
19/*********************************************************************************************************************************
20* Header Files *
21*********************************************************************************************************************************/
22#define LOG_GROUP LOG_GROUP_SHARED_CLIPBOARD
23#include <VBox/HostServices/VBoxClipboardSvc.h>
24
25#include <iprt/alloc.h>
26#include <iprt/asm.h> /* For atomic operations */
27#include <iprt/assert.h>
28#include <iprt/mem.h>
29#include <iprt/string.h>
30#include <iprt/thread.h>
31#include <iprt/process.h>
32#include <iprt/semaphore.h>
33#include <string.h>
34#include <stdio.h>
35#include <stdint.h>
36
37#include "VBoxSharedClipboardSvc-internal.h"
38
39
40/*
41 * Initialise the host side of the shared clipboard - called by the hgcm layer.
42 */
43int ShClBackendInit(void)
44{
45 LogFlowFunc(("called, returning VINF_SUCCESS\n"));
46 return VINF_SUCCESS;
47}
48
49/*
50 * Terminate the host side of the shared clipboard - called by the hgcm layer.
51 */
52void ShClBackendDestroy(void)
53{
54 LogFlowFunc(("called, returning\n"));
55}
56
57int ShClBackendConnect(PSHCLCLIENT pClient, bool fHeadless)
58{
59 RT_NOREF(pClient, fHeadless);
60 LogFlowFunc(("called, returning VINF_SUCCESS\n"));
61 return VINF_SUCCESS;
62}
63
64/*
65 * Synchronise the contents of the host clipboard with the guest, called by the HGCM layer
66 * after a save and restore of the guest.
67 */
68int ShClBackendSync(PSHCLCLIENT pClient)
69{
70 RT_NOREF(pClient);
71 LogFlowFunc(("called, returning VINF_SUCCESS\n"));
72 return VINF_SUCCESS;
73}
74
75int ShClBackendDisconnect(PSHCLCLIENT pClient)
76{
77 RT_NOREF(pClient);
78 return VINF_SUCCESS;
79}
80
81/*
82 * The guest is taking possession of the shared clipboard.
83 * Called by the HGCM clipboard subsystem.
84 */
85int ShClBackendFormatAnnounce(PSHCLCLIENT pClient, SHCLFORMATS fFormats)
86{
87 RT_NOREF(pClient, fFormats);
88 return VINF_SUCCESS;
89}
90
91/*
92 * Called by the HGCM clipboard subsystem when the guest wants to read the host clipboard.
93 */
94int ShClBackendReadData(PSHCLCLIENT pClient, PSHCLCLIENTCMDCTX pCmdCtx,
95 SHCLFORMAT uFormat, void *pvData, uint32_t cbData, uint32_t *pcbActual)
96{
97 RT_NOREF(pClient, pCmdCtx, uFormat, pvData, cbData);
98
99 /* No data available. */
100 *pcbActual = 0;
101
102 return VINF_SUCCESS;
103}
104
105int ShClBackendWriteData(PSHCLCLIENT pClient, PSHCLCLIENTCMDCTX pCmdCtx,
106 SHCLFORMAT uFormat, void *pvData, uint32_t cbData)
107{
108 RT_NOREF(pClient, pCmdCtx, uFormat, pvData, cbData);
109 return VERR_NOT_IMPLEMENTED;
110}
111
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette