VirtualBox

source: vbox/trunk/src/VBox/HostServices/SharedClipboard/x11-stub.cpp@ 45907

Last change on this file since 45907 was 44528, checked in by vboxsync, 12 years ago

header (C) fixes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.9 KB
Line 
1/** @file
2 *
3 * Shared Clipboard:
4 * Linux host, a stub version with no functionality for use on headless hosts.
5 */
6
7/*
8 * Copyright (C) 2006-2012 Oracle Corporation
9 *
10 * This file is part of VirtualBox Open Source Edition (OSE), as
11 * available from http://www.virtualbox.org. This file is free software;
12 * you can redistribute it and/or modify it under the terms of the GNU
13 * General Public License (GPL) as published by the Free Software
14 * Foundation, in version 2 as it comes in the "COPYING" file of the
15 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
16 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
17 */
18
19#include <VBox/HostServices/VBoxClipboardSvc.h>
20
21#include <iprt/alloc.h>
22#include <iprt/asm.h> /* For atomic operations */
23#include <iprt/assert.h>
24#include <iprt/mem.h>
25#include <iprt/string.h>
26#include <iprt/thread.h>
27#include <iprt/process.h>
28#include <iprt/semaphore.h>
29#include <string.h>
30#include <stdio.h>
31#include <stdint.h>
32
33#include "VBoxClipboard.h"
34
35/** Initialise the host side of the shared clipboard - called by the hgcm layer. */
36int vboxClipboardInit (void)
37{
38 LogFlowFunc(("called, returning VINF_SUCCESS.\n"));
39 return VINF_SUCCESS;
40}
41
42/** Terminate the host side of the shared clipboard - called by the hgcm layer. */
43void vboxClipboardDestroy (void)
44{
45 LogFlowFunc(("called, returning.\n"));
46}
47
48/**
49 * Enable the shared clipboard - called by the hgcm clipboard subsystem.
50 *
51 * @param pClient Structure containing context information about the guest system
52 * @returns RT status code
53 */
54int vboxClipboardConnect (VBOXCLIPBOARDCLIENTDATA * /* pClient */,
55 bool /* fHeadless */)
56{
57 LogFlowFunc(("called, returning VINF_SUCCESS.\n"));
58 return VINF_SUCCESS;
59}
60
61/**
62 * Synchronise the contents of the host clipboard with the guest, called by the HGCM layer
63 * after a save and restore of the guest.
64 */
65int vboxClipboardSync (VBOXCLIPBOARDCLIENTDATA * /* pClient */)
66{
67 LogFlowFunc(("called, returning VINF_SUCCESS.\n"));
68 return VINF_SUCCESS;
69}
70
71/**
72 * Shut down the shared clipboard subsystem and "disconnect" the guest.
73 */
74void vboxClipboardDisconnect (VBOXCLIPBOARDCLIENTDATA * /* pClient */)
75{
76 LogFlowFunc(("called, returning.\n"));
77}
78
79/**
80 * The guest is taking possession of the shared clipboard. Called by the HGCM clipboard
81 * subsystem.
82 *
83 * @param pClient Context data for the guest system
84 * @param u32Formats Clipboard formats the guest is offering
85 */
86void vboxClipboardFormatAnnounce (VBOXCLIPBOARDCLIENTDATA * /* pClient */,
87 uint32_t /* u32Formats */)
88{
89 LogFlowFunc(("called, returning.\n"));
90}
91
92/**
93 * Called by the HGCM clipboard subsystem when the guest wants to read the host clipboard.
94 *
95 * @param pClient Context information about the guest VM
96 * @param u32Format The format that the guest would like to receive the data in
97 * @param pv Where to write the data to
98 * @param cb The size of the buffer to write the data to
99 * @param pcbActual Where to write the actual size of the written data
100 */
101int vboxClipboardReadData (VBOXCLIPBOARDCLIENTDATA * /* pClient */, uint32_t /* u32Format */,
102 void * /* pv */, uint32_t /* cb */, uint32_t * pcbActual)
103{
104 LogFlowFunc(("called, returning VINF_SUCCESS.\n"));
105 /* No data available. */
106 *pcbActual = 0;
107 return VINF_SUCCESS;
108}
109
110/**
111 * Called by the HGCM clipboard subsystem when we have requested data and that data arrives.
112 *
113 * @param pClient Context information about the guest VM
114 * @param pv Buffer to which the data was written
115 * @param cb The size of the data written
116 * @param u32Format The format of the data written
117 */
118void vboxClipboardWriteData (VBOXCLIPBOARDCLIENTDATA * /* pClient */, void * /* pv */,
119 uint32_t /* cb */, uint32_t /* u32Format */)
120{
121 LogFlowFunc(("called, returning.\n"));
122}
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