VirtualBox

source: vbox/trunk/src/VBox/Main/cbinding/cbinding.h@ 16483

Last change on this file since 16483 was 16483, checked in by vboxsync, 16 years ago
  • Renamed tstLinuxC.h to cbinding.h
  • added doxygen @file tags and description
  • added copyright notice boilerplate
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1/** @file cbinding.h
2 *
3 * C binding for XPCOM.
4 *
5 * $Id: cbinding.h 16483 2009-02-03 10:52:11Z vboxsync $
6 */
7
8#ifndef __cbinding_h__
9#define __cbinding_h__
10
11/*
12 * Copyright (C) 2009 Sun Microsystems, Inc.
13 *
14 * This file is part of VirtualBox Open Source Edition (OSE), as
15 * available from http://www.virtualbox.org. This file is free software;
16 * you can redistribute it and/or modify it under the terms of the GNU
17 * General Public License (GPL) as published by the Free Software
18 * Foundation, in version 2 as it comes in the "COPYING" file of the
19 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
20 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
21 *
22 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
23 * Clara, CA 95054 USA or visit http://www.sun.com if you need
24 * additional information or have any questions.
25 */
26
27#ifdef __cplusplus
28# include "VirtualBox_XPCOM.h"
29#else
30# include "VirtualBox_CXPCOM.h"
31#endif
32
33#ifdef IN_VBOXXPCOMC
34# define VBOXXPCOMC_DECL(type) PR_EXPORT(type)
35#else
36# define VBOXXPCOMC_DECL(type) PR_IMPORT(type)
37#endif
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43VBOXXPCOMC_DECL(void) VBoxComInitialize(IVirtualBox **virtualBox, ISession **session);
44VBOXXPCOMC_DECL(void) VBoxComUninitialize(void);
45VBOXXPCOMC_DECL(void) VBoxComUnallocStr(PRUnichar *str_dealloc);
46VBOXXPCOMC_DECL(void) VBoxComUnallocIID(nsIID *iid);
47VBOXXPCOMC_DECL(const char *) VBoxConvertPRUnichartoAscii(PRUnichar *src);
48VBOXXPCOMC_DECL(const PRUnichar *) VBoxConvertAsciitoPRUnichar(char *src);
49VBOXXPCOMC_DECL(const PRUnichar *) VBoxConvertUTF8toPRUnichar(char *src);
50VBOXXPCOMC_DECL(const char *) VBoxConvertPRUnichartoUTF8(PRUnichar *src);
51VBOXXPCOMC_DECL(int) VBoxStrToUtf16(const char *pszString, PRUnichar **ppwszString);
52VBOXXPCOMC_DECL(int) VBoxUtf16ToUtf8(const PRUnichar *pszString, char **ppwszString);
53VBOXXPCOMC_DECL(void) VBoxUtf16Free(PRUnichar *pwszString);
54VBOXXPCOMC_DECL(void) VBoxStrFree(char *pszString);
55
56#ifdef __cplusplus
57}
58#endif
59
60#endif /* __cbinding_h__ */
Note: See TracBrowser for help on using the repository browser.

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