VBoxClientInternal.h revision 1a84601801d5bd045712787a3ef59313795389a1
1691N/A/** $Id$ */
2887N/A/** @file
1691N/A * VBoxClient - common definitions, Darwin.
1691N/A */
1691N/A
1691N/A/*
1691N/A * Copyright (C) 2007-2013 Oracle Corporation
1691N/A *
1691N/A * This file is part of VirtualBox Open Source Edition (OSE), as
1691N/A * available from http://www.virtualbox.org. This file is free software;
6982N/A * you can redistribute it and/or modify it under the terms of the GNU
6982N/A * General Public License (GPL) as published by the Free Software
1691N/A * Foundation, in version 2 as it comes in the "COPYING" file of the
1691N/A * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
1691N/A * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
6982N/A */
6982N/A
6982N/A#ifndef ___VBoxClientInternal_h
6982N/A#define ___VBoxClientInternal_h
6982N/A
1691N/A#include <VBox/VBoxGuestLib.h>
1691N/A#include <Carbon/Carbon.h>
1691N/A
1691N/A/* Service description */
4618N/Atypedef struct
1691N/A{
1691N/A /** The service name. */
4618N/A const char *pszName;
1691N/A
3816N/A /**
3816N/A * Start service.
3816N/A * @returns VBox status code.
1691N/A */
1691N/A DECLCALLBACKMEMBER(int, pfnStart)(void);
4618N/A
4618N/A /**
4618N/A * Stop service.
4618N/A * @returns VBox status code.
4618N/A */
4618N/A DECLCALLBACKMEMBER(int, pfnStop)(void);
4618N/A
4618N/A} VBOXCLIENTSERVICE;
4618N/A
4618N/A
4618N/A/*
4618N/A * Services
4618N/A */
4618N/A
4618N/ART_C_DECLS_BEGIN
4618N/A
4618N/Aextern VBOXCLIENTSERVICE g_ClipboardService;
4618N/A
4618N/ART_C_DECLS_END
4618N/A
4618N/A
4618N/A/*
4618N/A * Functions
4618N/A */
4618N/A
4618N/A/**
4618N/A * Displays a verbose message.
4618N/A *
4618N/A * @param iLevel Minimum log level required to display this message.
4618N/A * @param pszFormat The message text.
4618N/A * @param ... Format arguments.
4618N/A */
4618N/Aextern void VBoxClientVerbose(int iLevel, const char *pszFormat, ...);
4618N/A
4618N/A/**
4618N/A * Walk through pasteboard items and report currently available item types.
4618N/A *
4618N/A * @param pPasteboard Reference to guest Pasteboard.
4618N/A # @returns Available formats bit field.
4618N/A */
4618N/Aextern uint32_t vbclClipboardGetAvailableFormats(PasteboardRef pPasteboard);
4618N/A
4618N/A/**
4618N/A * Read host's clipboard buffer and put its content to guest clipboard.
4618N/A *
4618N/A * @param u32ClientId Host connection.
4618N/A * @param pPasteboard Guest PasteBoard reference.
4618N/A * @param fFormats List of data formats (bit field) received from host.
4618N/A *
4618N/A * @returns IPRT status code.
4618N/A */
4618N/Aextern int vbclClipboardForwardToGuest(uint32_t u32ClientId, PasteboardRef pPasteboard, uint32_t fFormats);
4618N/A
4618N/A/**
4618N/A * Read guest's clipboard buffer and forward its content to host.
4618N/A *
4618N/A * @param u32ClientId Host clipboard connection.
4618N/A * @param pPasteboard Guest PasteBoard reference.
4618N/A * @param fFormats List of data formats (bit field) received from host.
1691N/A *
4618N/A * @returns IPRT status code.
4618N/A */
1691N/Aextern int vbclClipboardForwardToHost(uint32_t u32ClientId, PasteboardRef pPasteboard, uint32_t fFormats);
1691N/A
4618N/A#endif /* ___VBoxClientInternal_h */