[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/libbase rc.h rc.cpp
From: |
Rob Savoye |
Subject: |
[Gnash-commit] gnash/libbase rc.h rc.cpp |
Date: |
Thu, 20 Dec 2007 02:57:11 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Rob Savoye <rsavoye> 07/12/20 02:57:11
Modified files:
libbase : rc.h rc.cpp
Log message:
Add suppor for SOLSafeDir option.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/rc.h?cvsroot=gnash&r1=1.36&r2=1.37
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/rc.cpp?cvsroot=gnash&r1=1.47&r2=1.48
Patches:
Index: rc.h
===================================================================
RCS file: /sources/gnash/gnash/libbase/rc.h,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -b -r1.36 -r1.37
--- rc.h 18 Dec 2007 16:34:33 -0000 1.36
+++ rc.h 20 Dec 2007 02:57:11 -0000 1.37
@@ -139,6 +139,12 @@
_localSandboxPath = path;
}
+ // Get the location of the sandbox for .sol files
+ const std::string &getSOLSafeDir() const { return _solsandbox; }
+
+ // Set the location of the sandbox for .sol files
+ void setSOLSafeDir(std::string &x) { _solsandbox = x; }
+
void dump();
private:
@@ -190,10 +196,14 @@
/// The number of seconds of inactivity triggering download timeout
double _streamsTimeout;
- /// Local sendbox: the set of resources on the filesystem we want to
+ /// Local sandbox: the set of resources on the filesystem we want to
/// give the current movie access to.
PathList _localSandboxPath;
+ // SOL Sandbox: This is the only dir .sol (Shared Object) files can be
written in,
+ // or read from.
+ std::string _solsandbox;
+
protected:
/// Construct only by getDefaultInstance()
Index: rc.cpp
===================================================================
RCS file: /sources/gnash/gnash/libbase/rc.cpp,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -b -r1.47 -r1.48
--- rc.cpp 18 Dec 2007 16:34:33 -0000 1.47
+++ rc.cpp 20 Dec 2007 02:57:11 -0000 1.48
@@ -405,6 +405,12 @@
continue;
}
+ if (noCaseCompare(variable, "SOLSafeDir")) {
+ expandPath (value);
+ _solsandbox = value;
+ continue;
+ }
+
if (noCaseCompare(action , "set") ) {
extractSetting(&_splashScreen, "splash_screen", variable,
value);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash/libbase rc.h rc.cpp,
Rob Savoye <=