[Scummvm-cvs-logs] SF.net SVN: scummvm: [30723] scummvm/trunk
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Sat Feb 2 00:36:45 CET 2008
Revision: 30723
http://scummvm.svn.sourceforge.net/scummvm/?rev=30723&view=rev
Author: fingolfin
Date: 2008-02-01 15:36:45 -0800 (Fri, 01 Feb 2008)
Log Message:
-----------
Moved enum PluginError from base/plugins.h to common/error.h
Modified Paths:
--------------
scummvm/trunk/base/plugins.h
scummvm/trunk/common/error.h
Modified: scummvm/trunk/base/plugins.h
===================================================================
--- scummvm/trunk/base/plugins.h 2008-02-01 23:32:20 UTC (rev 30722)
+++ scummvm/trunk/base/plugins.h 2008-02-01 23:36:45 UTC (rev 30723)
@@ -27,6 +27,7 @@
#define BASE_PLUGINS_H
#include "common/array.h"
+#include "common/error.h"
#include "common/list.h"
#include "common/singleton.h"
#include "common/util.h"
@@ -37,20 +38,6 @@
class OSystem;
/**
- * Error codes which mayb be reported by plugins under various circumstances.
- * @todo Turn this into a global 'ErrorCode' enum used by all of ScummVM ?
- */
-enum PluginError {
- kNoError = 0, // No error occured
- kInvalidPathError,
- kNoGameDataFoundError,
- kUnsupportedGameidError,
-
- kUnknownError // Catch-all error, used if no other error code matches
-};
-
-
-/**
* Abstract base class for the plugin system.
* Subclasses for this can be used to wrap both static and dynamic
* plugins.
Modified: scummvm/trunk/common/error.h
===================================================================
--- scummvm/trunk/common/error.h 2008-02-01 23:32:20 UTC (rev 30722)
+++ scummvm/trunk/common/error.h 2008-02-01 23:36:45 UTC (rev 30723)
@@ -44,4 +44,17 @@
SFM_DIR_ROFS //mkdir()::EROFS: The parent directory resides on a read-only file system
};
+/**
+ * Error codes which may be reported by plugins under various circumstances.
+ * @todo Turn this into a global 'ErrorCode' enum used by all of ScummVM ?
+ */
+enum PluginError {
+ kNoError = 0, // No error occured
+ kInvalidPathError,
+ kNoGameDataFoundError,
+ kUnsupportedGameidError,
+
+ kUnknownError // Catch-all error, used if no other error code matches
+};
+
#endif //COMMON_ERROR_H
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list