VBoxClient.h revision 0c185819ebfc2c615efe0d9edd4e12b950fadc68
/** @file
*
* VirtualBox additions user session daemon.
*/
/*
* Copyright (C) 2006-2011 Oracle Corporation
*
* 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.
*/
#ifndef ___vboxclient_vboxclient_h
# define ___vboxclient_vboxclient_h
/** Namespace for VBoxClient-specific things */
/** A simple class describing a service. VBoxClient will run exactly one
* service per invocation. */
{
/** Get the services default path to pidfile, relative to $HOME */
virtual const char *getPidFilePath() = 0;
/** Run the service main loop */
/** Pause the service loop. This must be safe to call on a different thread
* and potentially before @run is or after it exits. */
/** Resume after pausing. The same applies here as for @a pause. */
/** Clean up any global resources before we shut down hard. Calling
* @a pause or @a resume later than @a cleanup must not cause errors. */
/** Virtual destructor. Not used */
};
extern Service *GetClipboardService();
extern Service *GetSeamlessService();
extern Service *GetDisplayService();
extern Service *GetHostVersionService();
#ifdef VBOX_WITH_DRAG_AND_DROP
extern Service *GetDragAndDropService();
#endif /* VBOX_WITH_DRAG_AND_DROP */
extern void CleanUp();
} /* namespace VBoxClient */
#endif /* !___vboxclient_vboxclient_h */