VirtualBox

source: vbox/trunk/src/VBox/Additions/darwin/VBoxClient/VBoxClientInternal.h@ 69500

Last change on this file since 69500 was 69500, checked in by vboxsync, 7 years ago

*: scm --update-copyright-year

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.5 KB
Line 
1/** $Id: VBoxClientInternal.h 69500 2017-10-28 15:14:05Z vboxsync $ */
2/** @file
3 * VBoxClient - common definitions, Darwin.
4 */
5
6/*
7 * Copyright (C) 2007-2017 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#ifndef ___VBoxClientInternal_h
19#define ___VBoxClientInternal_h
20
21#include <VBox/VBoxGuestLib.h>
22#include <Carbon/Carbon.h>
23
24/* Service description */
25typedef struct
26{
27 /** The service name. */
28 const char *pszName;
29
30 /**
31 * Start service.
32 * @returns VBox status code.
33 */
34 DECLCALLBACKMEMBER(int, pfnStart)(void);
35
36 /**
37 * Stop service.
38 * @returns VBox status code.
39 */
40 DECLCALLBACKMEMBER(int, pfnStop)(void);
41
42} VBOXCLIENTSERVICE;
43
44
45/*
46 * Services
47 */
48
49RT_C_DECLS_BEGIN
50
51extern VBOXCLIENTSERVICE g_ClipboardService;
52
53RT_C_DECLS_END
54
55
56/*
57 * Functions
58 */
59
60/**
61 * Displays a verbose message.
62 *
63 * @param iLevel Minimum log level required to display this message.
64 * @param pszFormat The message text.
65 * @param ... Format arguments.
66 */
67extern void VBoxClientVerbose(int iLevel, const char *pszFormat, ...);
68
69/**
70 * Walk through pasteboard items and report currently available item types.
71 *
72 * @param pPasteboard Reference to guest Pasteboard.
73 # @returns Available formats bit field.
74 */
75extern uint32_t vbclClipboardGetAvailableFormats(PasteboardRef pPasteboard);
76
77/**
78 * Read host's clipboard buffer and put its content to guest clipboard.
79 *
80 * @param u32ClientId Host connection.
81 * @param pPasteboard Guest PasteBoard reference.
82 * @param fFormats List of data formats (bit field) received from host.
83 *
84 * @returns IPRT status code.
85 */
86extern int vbclClipboardForwardToGuest(uint32_t u32ClientId, PasteboardRef pPasteboard, uint32_t fFormats);
87
88/**
89 * Read guest's clipboard buffer and forward its content to host.
90 *
91 * @param u32ClientId Host clipboard connection.
92 * @param pPasteboard Guest PasteBoard reference.
93 * @param fFormats List of data formats (bit field) received from host.
94 *
95 * @returns IPRT status code.
96 */
97extern int vbclClipboardForwardToHost(uint32_t u32ClientId, PasteboardRef pPasteboard, uint32_t fFormats);
98
99#endif /* ___VBoxClientInternal_h */
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