1 | /*
|
---|
2 | * Copyright (C) 2010 Oracle Corporation
|
---|
3 | *
|
---|
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.
|
---|
11 | */
|
---|
12 | #ifndef ___VBoxCrHgsmi_h__
|
---|
13 | #define ___VBoxCrHgsmi_h__
|
---|
14 |
|
---|
15 | #include <iprt/cdefs.h>
|
---|
16 | #include <VBox/VBoxUhgsmi.h>
|
---|
17 |
|
---|
18 | RT_C_DECLS_BEGIN
|
---|
19 |
|
---|
20 | #if 0
|
---|
21 | /* enable this in case we include this in a dll*/
|
---|
22 | # ifdef IN_VBOXCRHGSMI
|
---|
23 | # define VBOXCRHGSMI_DECL(_type) DECLEXPORT(_type)
|
---|
24 | # else
|
---|
25 | # define VBOXCRHGSMI_DECL(_type) DECLIMPORT(_type)
|
---|
26 | # endif
|
---|
27 | #else
|
---|
28 | /*enable this in case we include this in a static lib*/
|
---|
29 | # define VBOXCRHGSMI_DECL(_type) _type
|
---|
30 | #endif
|
---|
31 |
|
---|
32 | typedef void * HVBOXCRHGSMI_CLIENT;
|
---|
33 |
|
---|
34 | typedef DECLCALLBACK(HVBOXCRHGSMI_CLIENT) FNVBOXCRHGSMI_CLIENT_CREATE(PVBOXUHGSMI pHgsmi);
|
---|
35 | typedef FNVBOXCRHGSMI_CLIENT_CREATE *PFNVBOXCRHGSMI_CLIENT_CREATE;
|
---|
36 |
|
---|
37 | typedef DECLCALLBACK(void) FNVBOXCRHGSMI_CLIENT_DESTROY(HVBOXCRHGSMI_CLIENT hClient);
|
---|
38 | typedef FNVBOXCRHGSMI_CLIENT_DESTROY *PFNVBOXCRHGSMI_CLIENT_DESTROY;
|
---|
39 |
|
---|
40 | typedef struct VBOXCRHGSMI_CALLBACKS
|
---|
41 | {
|
---|
42 | PFNVBOXCRHGSMI_CLIENT_CREATE pfnClientCreate;
|
---|
43 | PFNVBOXCRHGSMI_CLIENT_DESTROY pfnClientDestroy;
|
---|
44 | } VBOXCRHGSMI_CALLBACKS, *PVBOXCRHGSMI_CALLBACKS;
|
---|
45 |
|
---|
46 | VBOXCRHGSMI_DECL(int) VBoxCrHgsmiInit(PVBOXCRHGSMI_CALLBACKS pCallbacks);
|
---|
47 | VBOXCRHGSMI_DECL(int) VBoxCrHgsmiTerm();
|
---|
48 | VBOXCRHGSMI_DECL(HVBOXCRHGSMI_CLIENT) VBoxCrHgsmiQueryClient();
|
---|
49 |
|
---|
50 | RT_C_DECLS_END
|
---|
51 |
|
---|
52 | #endif /* #ifndef ___VBoxCrHgsmi_h__ */
|
---|