server.h revision 8130dc871cb147ed4d0433062b40d2df80e02f8f
/** @file
*
* Common header for XPCOM server and its module counterpart
*/
/*
* Copyright (C) 2006-2010 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modify it under the terms of the GNU
* 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.
*/
#ifndef ____H_LINUX_SERVER
#define ____H_LINUX_SERVER
#include <VBox/com/com.h>
#include <VBox/version.h>
/**
* IPC name used to resolve the client ID of the server.
*/
#define VBOXSVC_IPC_NAME "VBoxSVC-" VBOX_VERSION_STRING
/**
* Tag for the file descriptor passing for the daemonizing control.
*/
#define VBOXSVC_STARTUP_PIPE_NAME "vboxsvc:startup-pipe"
#endif /* ____H_LINUX_SERVER */
/**
* Implements NSGetInterfacesProcPtr (nsIGenericFactory.h)
* @note: declaration in nsIGenericFactory.h asks for zeroing
* count and array, if returning of list of interfaces isn't supported.
*/
HRESULT VirtualBox_GetInterfacesHelper(PRUint32 *count, nsIID** *array)
{
if (count != NULL) *count = 0;
if (array != NULL) *array = NULL;
return S_OK;
}
nsIClassInfo* VirtualBox_classInfoGlobal;