libXPCOMtoC.cpp revision f8013f753e040be49d43749b47adb0129841ddbd
/** @file libXPCOMtoC.cpp
*
* Utility functions to use with the C binding for XPCOM.
*
* $Id$
*/
/*
* 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 <nsString.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;
{
}
{
}
{
}
void VBoxStrFree(char *pszString)
{
}
{
}
{
}
{
}
{
}
{
if (str_dealloc) {
}
}
{
if (iid) {
}
}
{
*virtualBox = NULL;
// All numbers on stderr in hex prefixed with 0X.
{
return;
}
{
return;
}
(void **)virtualBox);
{
return;
}
(void **)session);
{
return;
}
}
void VBoxComUninitialize(void)
{
if (Session)
if (Ivirtualbox)
if (manager)
if (serviceManager)
}
/* vim: set ts=4 sw=4 et: */