VirtualBox

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

Last change on this file since 28800 was 28800, checked in by vboxsync, 15 years ago

Automated rebranding to Oracle copyright/license strings via filemuncher

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
Line 
1/** @file
2 * HGCM - Host-Guest Communication Manager.
3 */
4
5/*
6 * Copyright (C) 2006-2007 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/pdm.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
51int HGCMHostSaveState (PSSMHANDLE pSSM);
52int HGCMHostLoadState (PSSMHANDLE pSSM);
53
54RT_C_DECLS_END
55
56#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