914f528d3f28ebb22dbd01e504ae0785f2203b54vboxsync/** @file
914f528d3f28ebb22dbd01e504ae0785f2203b54vboxsync * Shared Clipboard:
914f528d3f28ebb22dbd01e504ae0785f2203b54vboxsync * Common header for the service extension.
914f528d3f28ebb22dbd01e504ae0785f2203b54vboxsync */
914f528d3f28ebb22dbd01e504ae0785f2203b54vboxsync
914f528d3f28ebb22dbd01e504ae0785f2203b54vboxsync/*
c58f1213e628a545081c70e26c6b67a841cff880vboxsync * Copyright (C) 2006-2010 Oracle Corporation
914f528d3f28ebb22dbd01e504ae0785f2203b54vboxsync *
914f528d3f28ebb22dbd01e504ae0785f2203b54vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
914f528d3f28ebb22dbd01e504ae0785f2203b54vboxsync * available from http://www.virtualbox.org. This file is free software;
914f528d3f28ebb22dbd01e504ae0785f2203b54vboxsync * you can redistribute it and/or modify it under the terms of the GNU
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * General Public License (GPL) as published by the Free Software
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync *
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * The contents of this file may alternatively be used under the terms
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * of the Common Development and Distribution License Version 1.0
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * VirtualBox OSE distribution, in which case the provisions of the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * CDDL are applicable instead of those of the GPL.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync *
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * You may elect to license modified versions of this file under the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * terms and conditions of either the GPL or the CDDL or both.
914f528d3f28ebb22dbd01e504ae0785f2203b54vboxsync */
914f528d3f28ebb22dbd01e504ae0785f2203b54vboxsync
cd41ce42a6251fb6086e4688bec5148970eed8d7vboxsync#ifndef ___VBox_HostService_VBoxClipboardExt_h
cd41ce42a6251fb6086e4688bec5148970eed8d7vboxsync#define ___VBox_HostService_VBoxClipboardExt_h
914f528d3f28ebb22dbd01e504ae0785f2203b54vboxsync
914f528d3f28ebb22dbd01e504ae0785f2203b54vboxsync#include <VBox/types.h>
914f528d3f28ebb22dbd01e504ae0785f2203b54vboxsync
914f528d3f28ebb22dbd01e504ae0785f2203b54vboxsync#define VBOX_CLIPBOARD_EXT_FN_SET_CALLBACK (0)
914f528d3f28ebb22dbd01e504ae0785f2203b54vboxsync#define VBOX_CLIPBOARD_EXT_FN_FORMAT_ANNOUNCE (1)
914f528d3f28ebb22dbd01e504ae0785f2203b54vboxsync#define VBOX_CLIPBOARD_EXT_FN_DATA_READ (2)
914f528d3f28ebb22dbd01e504ae0785f2203b54vboxsync#define VBOX_CLIPBOARD_EXT_FN_DATA_WRITE (3)
914f528d3f28ebb22dbd01e504ae0785f2203b54vboxsync
914f528d3f28ebb22dbd01e504ae0785f2203b54vboxsynctypedef DECLCALLBACK(int) VRDPCLIPBOARDEXTCALLBACK (uint32_t u32Function, uint32_t u32Format, void *pvData, uint32_t cbData);
914f528d3f28ebb22dbd01e504ae0785f2203b54vboxsynctypedef VRDPCLIPBOARDEXTCALLBACK *PFNVRDPCLIPBOARDEXTCALLBACK;
914f528d3f28ebb22dbd01e504ae0785f2203b54vboxsync
914f528d3f28ebb22dbd01e504ae0785f2203b54vboxsynctypedef struct _VBOXCLIPBOARDEXTPARMS
914f528d3f28ebb22dbd01e504ae0785f2203b54vboxsync{
914f528d3f28ebb22dbd01e504ae0785f2203b54vboxsync uint32_t u32Format;
c7210c2150d85e23412b7c1d887e7f38c6ab2d25vboxsync union
c7210c2150d85e23412b7c1d887e7f38c6ab2d25vboxsync {
443c12296d86304574c62ed1638b5e5cad59e0edvboxsync void *pvData;
443c12296d86304574c62ed1638b5e5cad59e0edvboxsync PFNVRDPCLIPBOARDEXTCALLBACK pfnCallback;
c7210c2150d85e23412b7c1d887e7f38c6ab2d25vboxsync } u;
914f528d3f28ebb22dbd01e504ae0785f2203b54vboxsync uint32_t cbData;
914f528d3f28ebb22dbd01e504ae0785f2203b54vboxsync} VBOXCLIPBOARDEXTPARMS;
914f528d3f28ebb22dbd01e504ae0785f2203b54vboxsync
cd41ce42a6251fb6086e4688bec5148970eed8d7vboxsync#endif