From f83360f66b246cc505ba803f35221c3e67236246 Mon Sep 17 00:00:00 2001 From: Alejandro Marzini Date: Fri, 4 Jun 2010 01:51:32 +0000 Subject: Created DefaultAudioManager and DefaultMutexManager. Deleted base subsystems, managers will be used instead. svn-id: r49419 --- backends/mutex/default/default-mutex.cpp | 38 +++++++++++++++++++++++++ backends/mutex/default/default-mutex.h | 48 ++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 backends/mutex/default/default-mutex.cpp create mode 100644 backends/mutex/default/default-mutex.h (limited to 'backends/mutex') diff --git a/backends/mutex/default/default-mutex.cpp b/backends/mutex/default/default-mutex.cpp new file mode 100644 index 0000000000..936ede197a --- /dev/null +++ b/backends/mutex/default/default-mutex.cpp @@ -0,0 +1,38 @@ +/* ScummVM - Graphic Adventure Engine + * + * ScummVM is the legal property of its developers, whose names + * are too numerous to list here. Please refer to the COPYRIGHT + * file distributed with this source distribution. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * $URL$ + * $Id$ + * + */ + +#include "backends/mutex/default/default-mutex.h" + +OSystem::MutexRef DefaultMutexManager::createMutex() { + return OSystem::MutexRef(); +} + +bool DefaultMutexManager::hasMutexFeature(OSystem::Feature f) { + return false; +} + +bool DefaultMutexManager::getMutexFeatureState(OSystem::Feature f) { + return false; +} diff --git a/backends/mutex/default/default-mutex.h b/backends/mutex/default/default-mutex.h new file mode 100644 index 0000000000..bd667eba5b --- /dev/null +++ b/backends/mutex/default/default-mutex.h @@ -0,0 +1,48 @@ +/* ScummVM - Graphic Adventure Engine + * + * ScummVM is the legal property of its developers, whose names + * are too numerous to list here. Please refer to the COPYRIGHT + * file distributed with this source distribution. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * $URL$ + * $Id$ + * + */ + +#ifndef BACKENDS_MUTEX_DEFAULT_H +#define BACKENDS_MUTEX_DEFAULT_H + +#include "common/system.h" +#include "common/noncopyable.h" + +class DefaultMutexManager : Common::NonCopyable { +public: + DefaultMutexManager() {} + ~DefaultMutexManager() {} + + bool hasMutexFeature(OSystem::Feature f); + void setMutexFeatureState(OSystem::Feature f, bool enable) {} + bool getMutexFeatureState(OSystem::Feature f); + + OSystem::MutexRef createMutex(); + void lockMutex(OSystem::MutexRef mutex) {} + void unlockMutex(OSystem::MutexRef mutex) {} + void deleteMutex(OSystem::MutexRef mutex); +}; + + +#endif -- cgit v1.2.3