VBoxXPCOMC.cpp revision f60ec22bd796760b850219cbfc447acd8231ab84
/* $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.
*/
#define LOG_GROUP LOG_GROUP_MAIN
#include <nsMemory.h>
#include <nsIServiceManager.h>
#include <nsEventQueueUtils.h>
#include "VBoxCAPI_v2_5.h"
using namespace std;
static void VBoxComUninitialize(void);
static int
{
}
static int
{
}
static void
{
}
static void
VBoxUtf8Free(char *pszString)
{
}
static void
VBoxComUnallocMem(void *ptr)
{
if (ptr)
{
}
}
static void
{
*virtualBox = NULL;
{
return;
}
{
return;
}
{
return;
}
(void **)virtualBox);
{
return;
}
Log(("Cbinding: IVirtualBox object created.\n"));
(void **)session);
{
return;
}
Log(("Cbinding: ISession object created.\n"));
}
static void
VBoxComUninitialize(void)
{
if (Session)
if (Ivirtualbox)
if (eventQ)
if (manager)
if (serviceManager)
Log(("Cbinding: Cleaned up the created IVirtualBox and ISession Objects.\n"));
}
static void
{
*eventQueue = eventQ;
}
static uint32_t
VBoxVersion(void)
{
return version;
}
VBoxGetXPCOMCFunctions(unsigned uVersion)
{
/* The current version. */
static const VBOXXPCOMC s_Functions =
{
sizeof(VBOXXPCOMC),
};
return NULL; /* not supported. */
return &s_Functions;
}
/* vim: set ts=4 sw=4 et: */