VirtualBox

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

Last change on this file since 33045 was 28800, checked in by vboxsync, 15 years ago

Automated rebranding to Oracle copyright/license strings via filemuncher

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.8 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-2007 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{
56 LogFlowFunc(("called, returning VINF_SUCCESS.\n"));
57 return VINF_SUCCESS;
58}
59
60/**
61 * Synchronise the contents of the host clipboard with the guest, called by the HGCM layer
62 * after a save and restore of the guest.
63 */
64int vboxClipboardSync (VBOXCLIPBOARDCLIENTDATA * /* pClient */)
65{
66 LogFlowFunc(("called, returning VINF_SUCCESS.\n"));
67 return VINF_SUCCESS;
68}
69
70/**
71 * Shut down the shared clipboard subsystem and "disconnect" the guest.
72 */
73void vboxClipboardDisconnect (VBOXCLIPBOARDCLIENTDATA * /* pClient */)
74{
75 LogFlowFunc(("called, returning.\n"));
76}
77
78/**
79 * The guest is taking possession of the shared clipboard. Called by the HGCM clipboard
80 * subsystem.
81 *
82 * @param pClient Context data for the guest system
83 * @param u32Formats Clipboard formats the guest is offering
84 */
85void vboxClipboardFormatAnnounce (VBOXCLIPBOARDCLIENTDATA * /* pClient */,
86 uint32_t /* u32Formats */)
87{
88 LogFlowFunc(("called, returning.\n"));
89}
90
91/**
92 * Called by the HGCM clipboard subsystem when the guest wants to read the host clipboard.
93 *
94 * @param pClient Context information about the guest VM
95 * @param u32Format The format that the guest would like to receive the data in
96 * @param pv Where to write the data to
97 * @param cb The size of the buffer to write the data to
98 * @param pcbActual Where to write the actual size of the written data
99 */
100int vboxClipboardReadData (VBOXCLIPBOARDCLIENTDATA * /* pClient */, uint32_t /* u32Format */,
101 void * /* pv */, uint32_t /* cb */, uint32_t * pcbActual)
102{
103 LogFlowFunc(("called, returning VINF_SUCCESS.\n"));
104 /* No data available. */
105 *pcbActual = 0;
106 return VINF_SUCCESS;
107}
108
109/**
110 * Called by the HGCM clipboard subsystem when we have requested data and that data arrives.
111 *
112 * @param pClient Context information about the guest VM
113 * @param pv Buffer to which the data was written
114 * @param cb The size of the data written
115 * @param u32Format The format of the data written
116 */
117void vboxClipboardWriteData (VBOXCLIPBOARDCLIENTDATA * /* pClient */, void * /* pv */,
118 uint32_t /* cb */, uint32_t /* u32Format */)
119{
120 LogFlowFunc(("called, returning.\n"));
121}
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