2
* Copyright (C) 2010 Oracle Corporation
4
* This file is part of VirtualBox Open Source Edition (OSE), as
5
* available from http://www.virtualbox.org. This file is free software;
6
* you can redistribute it and/or modify it under the terms of the GNU
7
* General Public License (GPL) as published by the Free Software
8
* Foundation, in version 2 as it comes in the "COPYING" file of the
9
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
10
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
12
* The contents of this file may alternatively be used under the terms
13
* of the Common Development and Distribution License Version 1.0
14
* (CDDL) only, as it comes in the "COPYING.CDDL" file of the
15
* VirtualBox OSE distribution, in which case the provisions of the
16
* CDDL are applicable instead of those of the GPL.
18
* You may elect to license modified versions of this file under the
19
* terms and conditions of either the GPL or the CDDL or both.
21
#ifndef ___VBoxCrHgsmi_h__
22
#define ___VBoxCrHgsmi_h__
24
#include <iprt/cdefs.h>
25
#include <VBox/VBoxUhgsmi.h>
30
/* enable this in case we include this in a dll*/
31
# ifdef IN_VBOXCRHGSMI
32
# define VBOXCRHGSMI_DECL(_type) DECLEXPORT(_type)
34
# define VBOXCRHGSMI_DECL(_type) DECLIMPORT(_type)
37
/*enable this in case we include this in a static lib*/
38
# define VBOXCRHGSMI_DECL(_type) _type
41
#ifdef VBOX_CRHGSMI_WITH_D3DDEV
42
typedef void * HVBOXCRHGSMI_CLIENT;
44
typedef DECLCALLBACK(HVBOXCRHGSMI_CLIENT) FNVBOXCRHGSMI_CLIENT_CREATE(PVBOXUHGSMI pHgsmi);
45
typedef FNVBOXCRHGSMI_CLIENT_CREATE *PFNVBOXCRHGSMI_CLIENT_CREATE;
47
typedef DECLCALLBACK(void) FNVBOXCRHGSMI_CLIENT_DESTROY(HVBOXCRHGSMI_CLIENT hClient);
48
typedef FNVBOXCRHGSMI_CLIENT_DESTROY *PFNVBOXCRHGSMI_CLIENT_DESTROY;
50
typedef struct VBOXCRHGSMI_CALLBACKS
52
PFNVBOXCRHGSMI_CLIENT_CREATE pfnClientCreate;
53
PFNVBOXCRHGSMI_CLIENT_DESTROY pfnClientDestroy;
54
} VBOXCRHGSMI_CALLBACKS, *PVBOXCRHGSMI_CALLBACKS;
56
VBOXCRHGSMI_DECL(int) VBoxCrHgsmiInit(PVBOXCRHGSMI_CALLBACKS pCallbacks);
57
VBOXCRHGSMI_DECL(HVBOXCRHGSMI_CLIENT) VBoxCrHgsmiQueryClient();
59
VBOXCRHGSMI_DECL(int) VBoxCrHgsmiInit();
60
VBOXCRHGSMI_DECL(PVBOXUHGSMI) VBoxCrHgsmiCreate();
61
VBOXCRHGSMI_DECL(void) VBoxCrHgsmiDestroy(PVBOXUHGSMI pHgsmi);
63
VBOXCRHGSMI_DECL(int) VBoxCrHgsmiTerm();
65
VBOXCRHGSMI_DECL(void) VBoxCrHgsmiLog(char * szString);
69
#endif /* #ifndef ___VBoxCrHgsmi_h__ */