VirtualBox

source: vbox/trunk/src/VBox/Main/include/HGCM.h@ 51465

Last change on this file since 51465 was 44528, checked in by vboxsync, 12 years ago

header (C) fixes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1/** @file
2 * HGCM - Host-Guest Communication Manager.
3 */
4
5/*
6 * Copyright (C) 2006-2010 Oracle Corporation
7 *
8 * This file is part of VirtualBox Open Source Edition (OSE), as
9 * available from http://www.virtualbox.org. This file is free software;
10 * you can redistribute it and/or modify it under the terms of the GNU
11 * General Public License (GPL) as published by the Free Software
12 * Foundation, in version 2 as it comes in the "COPYING" file of the
13 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
14 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
15 */
16
17#ifndef __HGCM_h__
18#define __HGCM_h__
19
20#include <VBox/cdefs.h>
21#include <VBox/types.h>
22#include <VBox/vmm/pdmifs.h>
23
24#include <VBox/VMMDev.h>
25#include <VBox/hgcmsvc.h>
26
27/* HGCM saved state version */
28#define HGCM_SSM_VERSION 2
29
30/* Handle of a HGCM service extension. */
31struct _HGCMSVCEXTHANDLEDATA;
32typedef struct _HGCMSVCEXTHANDLEDATA *HGCMSVCEXTHANDLE;
33
34RT_C_DECLS_BEGIN
35int HGCMHostInit (void);
36int HGCMHostShutdown (void);
37
38int HGCMHostReset (void);
39
40int HGCMHostLoad (const char *pszServiceLibrary, const char *pszServiceName);
41
42int HGCMHostRegisterServiceExtension (HGCMSVCEXTHANDLE *pHandle, const char *pszServiceName, PFNHGCMSVCEXT pfnExtension, void *pvExtension);
43void HGCMHostUnregisterServiceExtension (HGCMSVCEXTHANDLE handle);
44
45int HGCMGuestConnect (PPDMIHGCMPORT pHGCMPort, PVBOXHGCMCMD pCmdPtr, const char *pszServiceName, uint32_t *pClientID);
46int HGCMGuestDisconnect (PPDMIHGCMPORT pHGCMPort, PVBOXHGCMCMD pCmdPtr, uint32_t clientID);
47int HGCMGuestCall (PPDMIHGCMPORT pHGCMPort, PVBOXHGCMCMD pCmdPtr, uint32_t clientID, uint32_t function, uint32_t cParms, VBOXHGCMSVCPARM *paParms);
48
49int HGCMHostCall (const char *pszServiceName, uint32_t function, uint32_t cParms, VBOXHGCMSVCPARM aParms[]);
50
51#ifdef VBOX_WITH_CRHGSMI
52int HGCMHostSvcHandleCreate (const char *pszServiceName, HGCMCVSHANDLE * phSvc);
53int HGCMHostSvcHandleDestroy (HGCMCVSHANDLE hSvc);
54int HGCMHostFastCallAsync (HGCMCVSHANDLE hSvc, uint32_t function, PVBOXHGCMSVCPARM pParm, PHGCMHOSTFASTCALLCB pfnCompletion, void *pvCompletion);
55#endif
56
57int HGCMHostSaveState (PSSMHANDLE pSSM);
58int HGCMHostLoadState (PSSMHANDLE pSSM);
59
60RT_C_DECLS_END
61
62#endif /* __HGCM_h__ */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette