VBoxCrHgsmi.h revision 87150caf549846b0edba30c50dabe5092df70b5f
0N/A/*
0N/A * Copyright (C) 2010 Oracle Corporation
0N/A *
0N/A * This file is part of VirtualBox Open Source Edition (OSE), as
0N/A * available from http://www.virtualbox.org. This file is free software;
0N/A * you can redistribute it and/or modify it under the terms of the GNU
0N/A * General Public License (GPL) as published by the Free Software
0N/A * Foundation, in version 2 as it comes in the "COPYING" file of the
0N/A * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
0N/A * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
0N/A *
0N/A * The contents of this file may alternatively be used under the terms
0N/A * of the Common Development and Distribution License Version 1.0
0N/A * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
0N/A * VirtualBox OSE distribution, in which case the provisions of the
0N/A * CDDL are applicable instead of those of the GPL.
0N/A *
0N/A * You may elect to license modified versions of this file under the
0N/A * terms and conditions of either the GPL or the CDDL or both.
0N/A */
0N/A#ifndef ___VBox_VBoxCrHgsmi_h
0N/A#define ___VBox_VBoxCrHgsmi_h
0N/A
0N/A#include <iprt/cdefs.h>
0N/A#include <VBox/VBoxUhgsmi.h>
392N/A
392N/ART_C_DECLS_BEGIN
392N/A
392N/A#if 0
392N/A/* enable this in case we include this in a dll*/
392N/A# ifdef IN_VBOXCRHGSMI
392N/A# define VBOXCRHGSMI_DECL(a_Type) DECLEXPORT(a_Type)
392N/A# else
392N/A# define VBOXCRHGSMI_DECL(a_Type) DECLIMPORT(a_Type)
392N/A# endif
392N/A#else
99N/A/*enable this in case we include this in a static lib*/
392N/A# define VBOXCRHGSMI_DECL(a_Type) a_Type
0N/A#endif
392N/A
392N/A#ifdef VBOX_CRHGSMI_WITH_D3DDEV
0N/Atypedef void * HVBOXCRHGSMI_CLIENT;
0N/A
0N/Atypedef DECLCALLBACK(HVBOXCRHGSMI_CLIENT) FNVBOXCRHGSMI_CLIENT_CREATE(PVBOXUHGSMI pHgsmi);
0N/Atypedef FNVBOXCRHGSMI_CLIENT_CREATE *PFNVBOXCRHGSMI_CLIENT_CREATE;
0N/A
0N/Atypedef DECLCALLBACK(void) FNVBOXCRHGSMI_CLIENT_DESTROY(HVBOXCRHGSMI_CLIENT hClient);
0N/Atypedef FNVBOXCRHGSMI_CLIENT_DESTROY *PFNVBOXCRHGSMI_CLIENT_DESTROY;
0N/A
0N/Atypedef struct VBOXCRHGSMI_CALLBACKS
0N/A{
0N/A PFNVBOXCRHGSMI_CLIENT_CREATE pfnClientCreate;
0N/A PFNVBOXCRHGSMI_CLIENT_DESTROY pfnClientDestroy;
0N/A} VBOXCRHGSMI_CALLBACKS, *PVBOXCRHGSMI_CALLBACKS;
0N/A
0N/AVBOXCRHGSMI_DECL(int) VBoxCrHgsmiInit(PVBOXCRHGSMI_CALLBACKS pCallbacks);
0N/AVBOXCRHGSMI_DECL(HVBOXCRHGSMI_CLIENT) VBoxCrHgsmiQueryClient();
0N/A#else
0N/AVBOXCRHGSMI_DECL(int) VBoxCrHgsmiInit(uint32_t crVersionMajor, uint32_t crVersionMinor);
0N/AVBOXCRHGSMI_DECL(PVBOXUHGSMI) VBoxCrHgsmiCreate(void);
0N/AVBOXCRHGSMI_DECL(void) VBoxCrHgsmiDestroy(PVBOXUHGSMI pHgsmi);
0N/A#endif
0N/AVBOXCRHGSMI_DECL(int) VBoxCrHgsmiTerm(void);
0N/A
0N/AVBOXCRHGSMI_DECL(void) VBoxCrHgsmiLog(char * szString);
0N/A
0N/AVBOXCRHGSMI_DECL(int) VBoxCrHgsmiTerm(void);
0N/A
0N/AVBOXCRHGSMI_DECL(int) VBoxCrHgsmiCtlConGetClientID(PVBOXUHGSMI pHgsmi, uint32_t *pu32ClientID);
0N/AVBOXCRHGSMI_DECL(int) VBoxCrHgsmiCtlConCall(PVBOXUHGSMI pHgsmi, struct VBoxGuestHGCMCallInfo *pCallInfo, int cbCallInfo);
25N/A
25N/ART_C_DECLS_END
0N/A
0N/A#endif
0N/A
0N/A