SUPSvcGlobal.cpp revision c7814cf6e1240a519cbec0441e033d0e2470ed00
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync/* $Id$ */
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync/** @file
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync * VirtualBox Support Service - The Global Service.
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync */
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync/*
9fc464631dc4a68fbb5eb6419d61fbe91b6b16bdvboxsync * Copyright (C) 2008-2010 Oracle Corporation
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync *
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync * available from http://www.virtualbox.org. This file is free software;
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync * you can redistribute it and/or modify it under the terms of the GNU
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync * General Public License (GPL) as published by the Free Software
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync *
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync * The contents of this file may alternatively be used under the terms
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync * of the Common Development and Distribution License Version 1.0
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync * VirtualBox OSE distribution, in which case the provisions of the
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync * CDDL are applicable instead of those of the GPL.
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync *
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync * You may elect to license modified versions of this file under the
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync * terms and conditions of either the GPL or the CDDL or both.
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync */
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync/*******************************************************************************
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync* Header Files *
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync*******************************************************************************/
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync#include "SUPSvcInternal.h"
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync#include <iprt/err.h>
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync#include <iprt/assert.h>
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync/** @copydoc SUPSVCSERVICE::pfnCreate */
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsyncDECLCALLBACK(int) supSvcGlobalCreate(void **ppvInstance)
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync{
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync *ppvInstance = (void *)1;
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync return VINF_SUCCESS;
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync}
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync/** @copydoc SUPSVCSERVICE::pfnStart */
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsyncDECLCALLBACK(void) supSvcGlobalStart(void *pvInstance)
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync{
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync Assert(pvInstance == (void *)1);
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync NOREF(pvInstance);
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync}
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync/** @copydoc SUPSVCSERVICE::pfnTryStop */
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsyncDECLCALLBACK(int) supSvcGlobalTryStop(void *pvInstance)
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync{
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync Assert(pvInstance == (void *)1);
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync NOREF(pvInstance);
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync return VINF_SUCCESS;
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync}
9fc464631dc4a68fbb5eb6419d61fbe91b6b16bdvboxsync
9fc464631dc4a68fbb5eb6419d61fbe91b6b16bdvboxsync
9fc464631dc4a68fbb5eb6419d61fbe91b6b16bdvboxsync/** @copydoc SUPSVCSERVICE::pfnStopAndDestroy */
9fc464631dc4a68fbb5eb6419d61fbe91b6b16bdvboxsyncDECLCALLBACK(void) supSvcGlobalStopAndDestroy(void *pvInstance, bool fRunning)
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync{
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync Assert(pvInstance == (void *)1);
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync NOREF(pvInstance);
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync NOREF(fRunning);
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync}
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync
c1bf14b7bd52ba68e91e056d3f054c053f944164vboxsync