summaryrefslogtreecommitdiff
path: root/open-vm-tools/services/plugins/dndcp/copyPasteCompat.h
blob: 3d01d137ba626415b128f1cda401bc79dcdf44df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*********************************************************
 * Copyright (C) 2010-2015 VMware, Inc. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published
 * by the Free Software Foundation version 2.1 and no later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the Lesser GNU General Public
 * License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA.
 *
 *********************************************************/

/*
 * copyPasteCompat.h --
 *
 *    copyPaste header file.
 *
 */

#if !defined _COPYPASTE_COMPAT_H
#define _COPYPASTE_COMPAT_H

#include "vmware.h"

/* Functions to be compatible with old text copy/paste directly based on backdoor cmd. */
Bool CopyPaste_RequestSelection(void);
Bool CopyPaste_GetBackdoorSelections(void);
Bool CopyPaste_IsRpcCPSupported(void);
void CopyPaste_Init(void);
void CopyPaste_SetVersion(int version);

int32
CopyPaste_GetHostSelectionLen(void);

void
CopyPaste_GetHostSelection(unsigned int size, // IN
                           char *data);       // OUT

void
CopyPaste_SetSelLength(uint32 length); // IN

void
CopyPaste_SetNextPiece(uint32 data); // IN

#endif