VirtualBox

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

Last change on this file since 26624 was 21227, checked in by vboxsync, 16 years ago

VBoxGuest.h/VMMDev.h/VBoxGuestLib.h usage cleanup.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1/** @file
2 * HGCM - Host-Guest Communication Manager.
3 */
4
5/*
6 * Copyright (C) 2006-2007 Sun Microsystems, Inc.
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 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
17 * Clara, CA 95054 USA or visit http://www.sun.com if you need
18 * additional information or have any questions.
19 */
20
21#ifndef __HGCM_h__
22#define __HGCM_h__
23
24#include <VBox/cdefs.h>
25#include <VBox/types.h>
26#include <VBox/pdm.h>
27
28#include <VBox/VMMDev.h>
29#include <VBox/hgcmsvc.h>
30
31/* HGCM saved state version */
32#define HGCM_SSM_VERSION 2
33
34/* Handle of a HGCM service extension. */
35struct _HGCMSVCEXTHANDLEDATA;
36typedef struct _HGCMSVCEXTHANDLEDATA *HGCMSVCEXTHANDLE;
37
38RT_C_DECLS_BEGIN
39int HGCMHostInit (void);
40int HGCMHostShutdown (void);
41
42int HGCMHostReset (void);
43
44int HGCMHostLoad (const char *pszServiceLibrary, const char *pszServiceName);
45
46int HGCMHostRegisterServiceExtension (HGCMSVCEXTHANDLE *pHandle, const char *pszServiceName, PFNHGCMSVCEXT pfnExtension, void *pvExtension);
47void HGCMHostUnregisterServiceExtension (HGCMSVCEXTHANDLE handle);
48
49int HGCMGuestConnect (PPDMIHGCMPORT pHGCMPort, PVBOXHGCMCMD pCmdPtr, const char *pszServiceName, uint32_t *pClientID);
50int HGCMGuestDisconnect (PPDMIHGCMPORT pHGCMPort, PVBOXHGCMCMD pCmdPtr, uint32_t clientID);
51int HGCMGuestCall (PPDMIHGCMPORT pHGCMPort, PVBOXHGCMCMD pCmdPtr, uint32_t clientID, uint32_t function, uint32_t cParms, VBOXHGCMSVCPARM *paParms);
52
53int HGCMHostCall (const char *pszServiceName, uint32_t function, uint32_t cParms, VBOXHGCMSVCPARM aParms[]);
54
55int HGCMHostSaveState (PSSMHANDLE pSSM);
56int HGCMHostLoadState (PSSMHANDLE pSSM);
57
58RT_C_DECLS_END
59
60#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