VirtualBox

source: vbox/trunk/src/VBox/HostServices/SharedClipboard/linux-stub.cpp@ 5320

Last change on this file since 5320 was 4510, checked in by vboxsync, 18 years ago

export dummy stub

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.4 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 innotek GmbH
9 *
10 * innotek GmbH confidential
11 * All rights reserved
12 */
13
14#include <VBox/HostServices/VBoxClipboardSvc.h>
15
16#include <iprt/alloc.h>
17#include <iprt/asm.h> /* For atomic operations */
18#include <iprt/assert.h>
19#include <iprt/mem.h>
20#include <iprt/string.h>
21#include <iprt/thread.h>
22#include <iprt/process.h>
23#include <iprt/semaphore.h>
24#include <string.h>
25#include <stdio.h>
26#include <stdint.h>
27
28#include "VBoxClipboard.h"
29
30/** Initialise the host side of the shared clipboard - called by the hgcm layer. */
31int vboxClipboardInit (void)
32{
33 LogFlowFunc(("called, returning VINF_SUCCESS.\n"));
34 return VINF_SUCCESS;
35}
36
37/** Terminate the host side of the shared clipboard - called by the hgcm layer. */
38void vboxClipboardDestroy (void)
39{
40 LogFlowFunc(("called, returning.\n"));
41}
42
43/**
44 * Enable the shared clipboard - called by the hgcm clipboard subsystem.
45 *
46 * @param pClient Structure containing context information about the guest system
47 * @returns RT status code
48 */
49int vboxClipboardConnect (VBOXCLIPBOARDCLIENTDATA * /* pClient */)
50{
51 LogFlowFunc(("called, returning VINF_SUCCESS.\n"));
52 return VINF_SUCCESS;
53}
54
55/**
56 * Synchronise the contents of the host clipboard with the guest, called by the HGCM layer
57 * after a save and restore of the guest.
58 */
59int vboxClipboardSync (VBOXCLIPBOARDCLIENTDATA * /* pClient */)
60{
61 LogFlowFunc(("called, returning VINF_SUCCESS.\n"));
62 return VINF_SUCCESS;
63}
64
65/**
66 * Shut down the shared clipboard subsystem and "disconnect" the guest.
67 */
68void vboxClipboardDisconnect (VBOXCLIPBOARDCLIENTDATA * /* pClient */)
69{
70 LogFlowFunc(("called, returning.\n"));
71}
72
73/**
74 * The guest is taking possession of the shared clipboard. Called by the HGCM clipboard
75 * subsystem.
76 *
77 * @param pClient Context data for the guest system
78 * @param u32Formats Clipboard formats the the guest is offering
79 */
80void vboxClipboardFormatAnnounce (VBOXCLIPBOARDCLIENTDATA * /* pClient */,
81 uint32_t /* u32Formats */)
82{
83 LogFlowFunc(("called, returning.\n"));
84}
85
86/**
87 * Called by the HGCM clipboard subsystem when the guest wants to read the host clipboard.
88 *
89 * @param pClient Context information about the guest VM
90 * @param u32Format The format that the guest would like to receive the data in
91 * @param pv Where to write the data to
92 * @param cb The size of the buffer to write the data to
93 * @param pcbActual Where to write the actual size of the written data
94 */
95int vboxClipboardReadData (VBOXCLIPBOARDCLIENTDATA * /* pClient */, uint32_t /* u32Format */,
96 void * /* pv */, uint32_t /* cb */, uint32_t * pcbActual)
97{
98 LogFlowFunc(("called, returning VINF_SUCCESS.\n"));
99 /* No data available. */
100 *pcbActual = 0;
101 return VINF_SUCCESS;
102}
103
104/**
105 * Called by the HGCM clipboard subsystem when we have requested data and that data arrives.
106 *
107 * @param pClient Context information about the guest VM
108 * @param pv Buffer to which the data was written
109 * @param cb The size of the data written
110 * @param u32Format The format of the data written
111 */
112void vboxClipboardWriteData (VBOXCLIPBOARDCLIENTDATA * /* pClient */, void * /* pv */,
113 uint32_t /* cb */, uint32_t /* u32Format */)
114{
115 LogFlowFunc(("called, returning.\n"));
116}
Note: See TracBrowser for help on using the repository browser.

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