VBoxXPCOMC.cpp revision 96f3acffe761f0265957167a9d51fc6a7330b3f1
/* $Id$ */
/** @file VBoxXPCOMC.cpp
* Utility functions to use with the C binding for XPCOM.
*/
/*
* Copyright (C) 2009 Sun Microsystems, Inc.
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
#include <iostream>
#include <iomanip>
#include <nsMemory.h>
#include <nsIServiceManager.h>
#include <nsEventQueueUtils.h>
#include "VirtualBox_XPCOM.h"
#include "cbinding.h"
using namespace std;
static IVirtualBox *Ivirtualbox;
static nsIServiceManager *serviceManager;
static nsIComponentManager *manager;
VBOXXPCOMC_DECL(int)
{
}
VBOXXPCOMC_DECL(int)
{
}
VBOXXPCOMC_DECL(void)
{
}
VBOXXPCOMC_DECL(void)
VBoxUtf8Free(char *pszString)
{
}
VBOXXPCOMC_DECL(void)
VBoxComUnallocMem(void *ptr)
{
if (ptr)
{
}
}
VBOXXPCOMC_DECL(void)
{
*virtualBox = NULL;
* It would be preferred to use RTPrintf/RTStrmPrintf(g_pStdErr,..). If this is
* going to be used in real life, the cout(/RTPrintf) bits should be optional,
* add a flag argument and define VBOXCOMINIT_FLAG_VERBOSE for the purpose. */
// All numbers on stderr in hex prefixed with 0X.
{
return;
}
{
return;
}
(void **)virtualBox);
{
return;
}
(void **)session);
{
return;
}
}
VBOXXPCOMC_DECL(void)
VBoxComUninitialize(void)
{
if (Session)
if (Ivirtualbox)
if (manager)
if (serviceManager)
}
/* vim: set ts=4 sw=4 et: */