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