diff options
Diffstat (limited to 'linden')
22 files changed, 132 insertions, 64 deletions
diff --git a/linden/indra/llplugin/CMakeLists.txt b/linden/indra/llplugin/CMakeLists.txt index e41cdf7..d9b623d 100755 --- a/linden/indra/llplugin/CMakeLists.txt +++ b/linden/indra/llplugin/CMakeLists.txt | |||
@@ -48,13 +48,13 @@ set(llplugin_HEADER_FILES | |||
48 | set_source_files_properties(${llplugin_HEADER_FILES} | 48 | set_source_files_properties(${llplugin_HEADER_FILES} |
49 | PROPERTIES HEADER_FILE_ONLY TRUE) | 49 | PROPERTIES HEADER_FILE_ONLY TRUE) |
50 | 50 | ||
51 | if(WORD_SIZE EQUAL 64) | 51 | if(NOT CMAKE_SIZEOF_VOID_P MATCHES 4) |
52 | if(WINDOWS) | 52 | if(WINDOWS) |
53 | add_definitions(/FIXED:NO) | 53 | add_definitions(/FIXED:NO) |
54 | else(WINDOWS) # not windows therefore gcc LINUX and DARWIN | 54 | else(WINDOWS) # not windows therefore gcc LINUX and DARWIN |
55 | add_definitions(-fPIC) | 55 | add_definitions(-fPIC) |
56 | endif(WINDOWS) | 56 | endif(WINDOWS) |
57 | endif (WORD_SIZE EQUAL 64) | 57 | endif (NOT CMAKE_SIZEOF_VOID_P MATCHES 4) |
58 | 58 | ||
59 | list(APPEND llplugin_SOURCE_FILES ${llplugin_HEADER_FILES}) | 59 | list(APPEND llplugin_SOURCE_FILES ${llplugin_HEADER_FILES}) |
60 | 60 | ||
diff --git a/linden/indra/llplugin/llpluginclassmedia.cpp b/linden/indra/llplugin/llpluginclassmedia.cpp index 2e8bf3f..b958f0c 100755 --- a/linden/indra/llplugin/llpluginclassmedia.cpp +++ b/linden/indra/llplugin/llpluginclassmedia.cpp | |||
@@ -13,13 +13,13 @@ | |||
13 | * ("GPL"), unless you have obtained a separate licensing agreement | 13 | * ("GPL"), unless you have obtained a separate licensing agreement |
14 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 14 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
15 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 15 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
16 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | 16 | * online at http://secondlife.com/developers/opensource/gplv2 |
17 | * | 17 | * |
18 | * There are special exceptions to the terms and conditions of the GPL as | 18 | * There are special exceptions to the terms and conditions of the GPL as |
19 | * it is applied to this Source Code. View the full text of the exception | 19 | * it is applied to this Source Code. View the full text of the exception |
20 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 20 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
21 | * online at | 21 | * online at |
22 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | 22 | * http://secondlife.com/developers/opensource/flossexception |
23 | * | 23 | * |
24 | * By copying, modifying or distributing this software, you acknowledge | 24 | * By copying, modifying or distributing this software, you acknowledge |
25 | * that you have read and understood your obligations described above, | 25 | * that you have read and understood your obligations described above, |
@@ -29,6 +29,7 @@ | |||
29 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | 29 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, |
30 | * COMPLETENESS OR PERFORMANCE. | 30 | * COMPLETENESS OR PERFORMANCE. |
31 | * $/LicenseInfo$ | 31 | * $/LicenseInfo$ |
32 | * | ||
32 | * @endcond | 33 | * @endcond |
33 | */ | 34 | */ |
34 | 35 | ||
@@ -66,15 +67,19 @@ LLPluginClassMedia::~LLPluginClassMedia() | |||
66 | reset(); | 67 | reset(); |
67 | } | 68 | } |
68 | 69 | ||
69 | bool LLPluginClassMedia::init(const std::string &launcher_filename, const std::string &plugin_filename, bool debug, const std::string &user_data_path) | 70 | bool LLPluginClassMedia::init(const std::string &launcher_filename, const std::string &plugin_filename, bool debug) |
70 | { | 71 | { |
71 | LL_DEBUGS("Plugin") << "launcher: " << launcher_filename << LL_ENDL; | 72 | LL_DEBUGS("Plugin") << "launcher: " << launcher_filename << LL_ENDL; |
72 | LL_DEBUGS("Plugin") << "plugin: " << plugin_filename << LL_ENDL; | 73 | LL_DEBUGS("Plugin") << "plugin: " << plugin_filename << LL_ENDL; |
73 | LL_DEBUGS("Plugin") << "user_data_path: " << user_data_path << LL_ENDL; | ||
74 | 74 | ||
75 | mPlugin = new LLPluginProcessParent(this); | 75 | mPlugin = new LLPluginProcessParent(this); |
76 | mPlugin->setSleepTime(mSleepTime); | 76 | mPlugin->setSleepTime(mSleepTime); |
77 | mPlugin->init(launcher_filename, plugin_filename, debug, user_data_path); | 77 | |
78 | // Queue up the media init message -- it will be sent after all the currently queued messages. | ||
79 | LLPluginMessage message(LLPLUGIN_MESSAGE_CLASS_MEDIA, "init"); | ||
80 | sendMessage(message); | ||
81 | |||
82 | mPlugin->init(launcher_filename, plugin_filename, debug); | ||
78 | 83 | ||
79 | return true; | 84 | return true; |
80 | } | 85 | } |
@@ -384,7 +389,7 @@ bool LLPluginClassMedia::textureValid(void) | |||
384 | 389 | ||
385 | bool LLPluginClassMedia::getDirty(LLRect *dirty_rect) | 390 | bool LLPluginClassMedia::getDirty(LLRect *dirty_rect) |
386 | { | 391 | { |
387 | bool result = !mDirtyRect.isNull();//awfixme isEmpty(); | 392 | bool result = !mDirtyRect.isNull(); |
388 | 393 | ||
389 | if(dirty_rect != NULL) | 394 | if(dirty_rect != NULL) |
390 | { | 395 | { |
@@ -679,6 +684,34 @@ void LLPluginClassMedia::paste() | |||
679 | sendMessage(message); | 684 | sendMessage(message); |
680 | } | 685 | } |
681 | 686 | ||
687 | void LLPluginClassMedia::setUserDataPath(const std::string &user_data_path) | ||
688 | { | ||
689 | LLPluginMessage message(LLPLUGIN_MESSAGE_CLASS_MEDIA, "set_user_data_path"); | ||
690 | message.setValue("path", user_data_path); | ||
691 | sendMessage(message); | ||
692 | } | ||
693 | |||
694 | void LLPluginClassMedia::setLanguageCode(const std::string &language_code) | ||
695 | { | ||
696 | LLPluginMessage message(LLPLUGIN_MESSAGE_CLASS_MEDIA, "set_language_code"); | ||
697 | message.setValue("language", language_code); | ||
698 | sendMessage(message); | ||
699 | } | ||
700 | |||
701 | void LLPluginClassMedia::setPluginsEnabled(const bool enabled) | ||
702 | { | ||
703 | LLPluginMessage message(LLPLUGIN_MESSAGE_CLASS_MEDIA, "plugins_enabled"); | ||
704 | message.setValueBoolean("enable", enabled); | ||
705 | sendMessage(message); | ||
706 | } | ||
707 | |||
708 | void LLPluginClassMedia::setJavascriptEnabled(const bool enabled) | ||
709 | { | ||
710 | LLPluginMessage message(LLPLUGIN_MESSAGE_CLASS_MEDIA, "javascript_enabled"); | ||
711 | message.setValueBoolean("enable", enabled); | ||
712 | sendMessage(message); | ||
713 | } | ||
714 | |||
682 | LLPluginClassMedia::ETargetType getTargetTypeFromLLQtWebkit(int target_type) | 715 | LLPluginClassMedia::ETargetType getTargetTypeFromLLQtWebkit(int target_type) |
683 | { | 716 | { |
684 | // convert a LinkTargetType value from llqtwebkit to an ETargetType | 717 | // convert a LinkTargetType value from llqtwebkit to an ETargetType |
@@ -746,7 +779,7 @@ void LLPluginClassMedia::receivePluginMessage(const LLPluginMessage &message) | |||
746 | newDirtyRect.mBottom = temp; | 779 | newDirtyRect.mBottom = temp; |
747 | } | 780 | } |
748 | 781 | ||
749 | if(mDirtyRect.isNull())//awfixme isEmpty()) | 782 | if(mDirtyRect.isNull()) |
750 | { | 783 | { |
751 | mDirtyRect = newDirtyRect; | 784 | mDirtyRect = newDirtyRect; |
752 | } | 785 | } |
@@ -1048,6 +1081,7 @@ void LLPluginClassMedia::clear_cookies() | |||
1048 | void LLPluginClassMedia::enable_cookies(bool enable) | 1081 | void LLPluginClassMedia::enable_cookies(bool enable) |
1049 | { | 1082 | { |
1050 | LLPluginMessage message(LLPLUGIN_MESSAGE_CLASS_MEDIA_BROWSER, "enable_cookies"); | 1083 | LLPluginMessage message(LLPLUGIN_MESSAGE_CLASS_MEDIA_BROWSER, "enable_cookies"); |
1084 | message.setValueBoolean("enable", enable); | ||
1051 | sendMessage(message); | 1085 | sendMessage(message); |
1052 | } | 1086 | } |
1053 | 1087 | ||
diff --git a/linden/indra/llplugin/llpluginclassmedia.h b/linden/indra/llplugin/llpluginclassmedia.h index ab54348..fc94563 100755 --- a/linden/indra/llplugin/llpluginclassmedia.h +++ b/linden/indra/llplugin/llpluginclassmedia.h | |||
@@ -13,13 +13,13 @@ | |||
13 | * ("GPL"), unless you have obtained a separate licensing agreement | 13 | * ("GPL"), unless you have obtained a separate licensing agreement |
14 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 14 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
15 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 15 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
16 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | 16 | * online at http://secondlife.com/developers/opensource/gplv2 |
17 | * | 17 | * |
18 | * There are special exceptions to the terms and conditions of the GPL as | 18 | * There are special exceptions to the terms and conditions of the GPL as |
19 | * it is applied to this Source Code. View the full text of the exception | 19 | * it is applied to this Source Code. View the full text of the exception |
20 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 20 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
21 | * online at | 21 | * online at |
22 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | 22 | * http://secondlife.com/developers/opensource/flossexception |
23 | * | 23 | * |
24 | * By copying, modifying or distributing this software, you acknowledge | 24 | * By copying, modifying or distributing this software, you acknowledge |
25 | * that you have read and understood your obligations described above, | 25 | * that you have read and understood your obligations described above, |
@@ -29,6 +29,7 @@ | |||
29 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | 29 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, |
30 | * COMPLETENESS OR PERFORMANCE. | 30 | * COMPLETENESS OR PERFORMANCE. |
31 | * $/LicenseInfo$ | 31 | * $/LicenseInfo$ |
32 | * | ||
32 | * @endcond | 33 | * @endcond |
33 | */ | 34 | */ |
34 | 35 | ||
@@ -50,7 +51,9 @@ public: | |||
50 | virtual ~LLPluginClassMedia(); | 51 | virtual ~LLPluginClassMedia(); |
51 | 52 | ||
52 | // local initialization, called by the media manager when creating a source | 53 | // local initialization, called by the media manager when creating a source |
53 | virtual bool init(const std::string &launcher_filename, const std::string &plugin_filename, bool debug, const std::string &user_data_path); | 54 | virtual bool init(const std::string &launcher_filename, |
55 | const std::string &plugin_filename, | ||
56 | bool debug); | ||
54 | 57 | ||
55 | // undoes everything init() didm called by the media manager when destroying a source | 58 | // undoes everything init() didm called by the media manager when destroying a source |
56 | virtual void reset(); | 59 | virtual void reset(); |
@@ -174,6 +177,12 @@ public: | |||
174 | 177 | ||
175 | void paste(); | 178 | void paste(); |
176 | bool canPaste() const { return mCanPaste; }; | 179 | bool canPaste() const { return mCanPaste; }; |
180 | |||
181 | // These can be called before init(), and they will be queued and sent before the media init message. | ||
182 | void setUserDataPath(const std::string &user_data_path); | ||
183 | void setLanguageCode(const std::string &language_code); | ||
184 | void setPluginsEnabled(const bool enabled); | ||
185 | void setJavascriptEnabled(const bool enabled); | ||
177 | 186 | ||
178 | /////////////////////////////////// | 187 | /////////////////////////////////// |
179 | // media browser class functions | 188 | // media browser class functions |
diff --git a/linden/indra/llplugin/llpluginclassmediaowner.h b/linden/indra/llplugin/llpluginclassmediaowner.h index 239f692..c1f6ae1 100755 --- a/linden/indra/llplugin/llpluginclassmediaowner.h +++ b/linden/indra/llplugin/llpluginclassmediaowner.h | |||
@@ -13,13 +13,13 @@ | |||
13 | * ("GPL"), unless you have obtained a separate licensing agreement | 13 | * ("GPL"), unless you have obtained a separate licensing agreement |
14 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 14 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
15 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 15 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
16 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | 16 | * online at http://secondlife.com/developers/opensource/gplv2 |
17 | * | 17 | * |
18 | * There are special exceptions to the terms and conditions of the GPL as | 18 | * There are special exceptions to the terms and conditions of the GPL as |
19 | * it is applied to this Source Code. View the full text of the exception | 19 | * it is applied to this Source Code. View the full text of the exception |
20 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 20 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
21 | * online at | 21 | * online at |
22 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | 22 | * http://secondlife.com/developers/opensource/flossexception |
23 | * | 23 | * |
24 | * By copying, modifying or distributing this software, you acknowledge | 24 | * By copying, modifying or distributing this software, you acknowledge |
25 | * that you have read and understood your obligations described above, | 25 | * that you have read and understood your obligations described above, |
@@ -29,6 +29,7 @@ | |||
29 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | 29 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, |
30 | * COMPLETENESS OR PERFORMANCE. | 30 | * COMPLETENESS OR PERFORMANCE. |
31 | * $/LicenseInfo$ | 31 | * $/LicenseInfo$ |
32 | * | ||
32 | * @endcond | 33 | * @endcond |
33 | */ | 34 | */ |
34 | 35 | ||
diff --git a/linden/indra/llplugin/llplugininstance.cpp b/linden/indra/llplugin/llplugininstance.cpp index ce10cb6..b822b9e 100755 --- a/linden/indra/llplugin/llplugininstance.cpp +++ b/linden/indra/llplugin/llplugininstance.cpp | |||
@@ -13,13 +13,13 @@ | |||
13 | * ("GPL"), unless you have obtained a separate licensing agreement | 13 | * ("GPL"), unless you have obtained a separate licensing agreement |
14 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 14 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
15 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 15 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
16 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | 16 | * online at http://secondlife.com/developers/opensource/gplv2 |
17 | * | 17 | * |
18 | * There are special exceptions to the terms and conditions of the GPL as | 18 | * There are special exceptions to the terms and conditions of the GPL as |
19 | * it is applied to this Source Code. View the full text of the exception | 19 | * it is applied to this Source Code. View the full text of the exception |
20 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 20 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
21 | * online at | 21 | * online at |
22 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | 22 | * http://secondlife.com/developers/opensource/flossexception |
23 | * | 23 | * |
24 | * By copying, modifying or distributing this software, you acknowledge | 24 | * By copying, modifying or distributing this software, you acknowledge |
25 | * that you have read and understood your obligations described above, | 25 | * that you have read and understood your obligations described above, |
@@ -29,6 +29,7 @@ | |||
29 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | 29 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, |
30 | * COMPLETENESS OR PERFORMANCE. | 30 | * COMPLETENESS OR PERFORMANCE. |
31 | * $/LicenseInfo$ | 31 | * $/LicenseInfo$ |
32 | * | ||
32 | * @endcond | 33 | * @endcond |
33 | */ | 34 | */ |
34 | 35 | ||
diff --git a/linden/indra/llplugin/llplugininstance.h b/linden/indra/llplugin/llplugininstance.h index baa51cc..9cf6075 100755 --- a/linden/indra/llplugin/llplugininstance.h +++ b/linden/indra/llplugin/llplugininstance.h | |||
@@ -12,13 +12,13 @@ | |||
12 | * ("GPL"), unless you have obtained a separate licensing agreement | 12 | * ("GPL"), unless you have obtained a separate licensing agreement |
13 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 13 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
15 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | 15 | * online at http://secondlife.com/developers/opensource/gplv2 |
16 | * | 16 | * |
17 | * There are special exceptions to the terms and conditions of the GPL as | 17 | * There are special exceptions to the terms and conditions of the GPL as |
18 | * it is applied to this Source Code. View the full text of the exception | 18 | * it is applied to this Source Code. View the full text of the exception |
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 19 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
20 | * online at | 20 | * online at |
21 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | 21 | * http://secondlife.com/developers/opensource/flossexception |
22 | * | 22 | * |
23 | * By copying, modifying or distributing this software, you acknowledge | 23 | * By copying, modifying or distributing this software, you acknowledge |
24 | * that you have read and understood your obligations described above, | 24 | * that you have read and understood your obligations described above, |
@@ -28,6 +28,7 @@ | |||
28 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | 28 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, |
29 | * COMPLETENESS OR PERFORMANCE. | 29 | * COMPLETENESS OR PERFORMANCE. |
30 | * $/LicenseInfo$ | 30 | * $/LicenseInfo$ |
31 | * | ||
31 | * @endcond | 32 | * @endcond |
32 | */ | 33 | */ |
33 | 34 | ||
diff --git a/linden/indra/llplugin/llpluginmessage.cpp b/linden/indra/llplugin/llpluginmessage.cpp index 8efc774..6452f4a 100755 --- a/linden/indra/llplugin/llpluginmessage.cpp +++ b/linden/indra/llplugin/llpluginmessage.cpp | |||
@@ -13,13 +13,13 @@ | |||
13 | * ("GPL"), unless you have obtained a separate licensing agreement | 13 | * ("GPL"), unless you have obtained a separate licensing agreement |
14 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 14 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
15 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 15 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
16 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | 16 | * online at http://secondlife.com/developers/opensource/gplv2 |
17 | * | 17 | * |
18 | * There are special exceptions to the terms and conditions of the GPL as | 18 | * There are special exceptions to the terms and conditions of the GPL as |
19 | * it is applied to this Source Code. View the full text of the exception | 19 | * it is applied to this Source Code. View the full text of the exception |
20 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 20 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
21 | * online at | 21 | * online at |
22 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | 22 | * http://secondlife.com/developers/opensource/flossexception |
23 | * | 23 | * |
24 | * By copying, modifying or distributing this software, you acknowledge | 24 | * By copying, modifying or distributing this software, you acknowledge |
25 | * that you have read and understood your obligations described above, | 25 | * that you have read and understood your obligations described above, |
@@ -29,6 +29,7 @@ | |||
29 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | 29 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, |
30 | * COMPLETENESS OR PERFORMANCE. | 30 | * COMPLETENESS OR PERFORMANCE. |
31 | * $/LicenseInfo$ | 31 | * $/LicenseInfo$ |
32 | * | ||
32 | * @endcond | 33 | * @endcond |
33 | */ | 34 | */ |
34 | 35 | ||
diff --git a/linden/indra/llplugin/llpluginmessage.h b/linden/indra/llplugin/llpluginmessage.h index 82eb89f..fe504c8 100755 --- a/linden/indra/llplugin/llpluginmessage.h +++ b/linden/indra/llplugin/llpluginmessage.h | |||
@@ -12,13 +12,13 @@ | |||
12 | * ("GPL"), unless you have obtained a separate licensing agreement | 12 | * ("GPL"), unless you have obtained a separate licensing agreement |
13 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 13 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
15 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | 15 | * online at http://secondlife.com/developers/opensource/gplv2 |
16 | * | 16 | * |
17 | * There are special exceptions to the terms and conditions of the GPL as | 17 | * There are special exceptions to the terms and conditions of the GPL as |
18 | * it is applied to this Source Code. View the full text of the exception | 18 | * it is applied to this Source Code. View the full text of the exception |
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 19 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
20 | * online at | 20 | * online at |
21 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | 21 | * http://secondlife.com/developers/opensource/flossexception |
22 | * | 22 | * |
23 | * By copying, modifying or distributing this software, you acknowledge | 23 | * By copying, modifying or distributing this software, you acknowledge |
24 | * that you have read and understood your obligations described above, | 24 | * that you have read and understood your obligations described above, |
@@ -28,6 +28,7 @@ | |||
28 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | 28 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, |
29 | * COMPLETENESS OR PERFORMANCE. | 29 | * COMPLETENESS OR PERFORMANCE. |
30 | * $/LicenseInfo$ | 30 | * $/LicenseInfo$ |
31 | * | ||
31 | * @endcond | 32 | * @endcond |
32 | */ | 33 | */ |
33 | 34 | ||
diff --git a/linden/indra/llplugin/llpluginmessageclasses.h b/linden/indra/llplugin/llpluginmessageclasses.h index 9a39e98..8812a16 100755 --- a/linden/indra/llplugin/llpluginmessageclasses.h +++ b/linden/indra/llplugin/llpluginmessageclasses.h | |||
@@ -13,13 +13,13 @@ | |||
13 | * ("GPL"), unless you have obtained a separate licensing agreement | 13 | * ("GPL"), unless you have obtained a separate licensing agreement |
14 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 14 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
15 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 15 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
16 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | 16 | * online at http://secondlife.com/developers/opensource/gplv2 |
17 | * | 17 | * |
18 | * There are special exceptions to the terms and conditions of the GPL as | 18 | * There are special exceptions to the terms and conditions of the GPL as |
19 | * it is applied to this Source Code. View the full text of the exception | 19 | * it is applied to this Source Code. View the full text of the exception |
20 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 20 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
21 | * online at | 21 | * online at |
22 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | 22 | * http://secondlife.com/developers/opensource/flossexception |
23 | * | 23 | * |
24 | * By copying, modifying or distributing this software, you acknowledge | 24 | * By copying, modifying or distributing this software, you acknowledge |
25 | * that you have read and understood your obligations described above, | 25 | * that you have read and understood your obligations described above, |
@@ -29,6 +29,7 @@ | |||
29 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | 29 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, |
30 | * COMPLETENESS OR PERFORMANCE. | 30 | * COMPLETENESS OR PERFORMANCE. |
31 | * $/LicenseInfo$ | 31 | * $/LicenseInfo$ |
32 | * | ||
32 | * @endcond | 33 | * @endcond |
33 | */ | 34 | */ |
34 | 35 | ||
diff --git a/linden/indra/llplugin/llpluginmessagepipe.cpp b/linden/indra/llplugin/llpluginmessagepipe.cpp index 85ed227..b16381c 100755 --- a/linden/indra/llplugin/llpluginmessagepipe.cpp +++ b/linden/indra/llplugin/llpluginmessagepipe.cpp | |||
@@ -13,13 +13,13 @@ | |||
13 | * ("GPL"), unless you have obtained a separate licensing agreement | 13 | * ("GPL"), unless you have obtained a separate licensing agreement |
14 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 14 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
15 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 15 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
16 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | 16 | * online at http://secondlife.com/developers/opensource/gplv2 |
17 | * | 17 | * |
18 | * There are special exceptions to the terms and conditions of the GPL as | 18 | * There are special exceptions to the terms and conditions of the GPL as |
19 | * it is applied to this Source Code. View the full text of the exception | 19 | * it is applied to this Source Code. View the full text of the exception |
20 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 20 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
21 | * online at | 21 | * online at |
22 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | 22 | * http://secondlife.com/developers/opensource/flossexception |
23 | * | 23 | * |
24 | * By copying, modifying or distributing this software, you acknowledge | 24 | * By copying, modifying or distributing this software, you acknowledge |
25 | * that you have read and understood your obligations described above, | 25 | * that you have read and understood your obligations described above, |
@@ -29,6 +29,7 @@ | |||
29 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | 29 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, |
30 | * COMPLETENESS OR PERFORMANCE. | 30 | * COMPLETENESS OR PERFORMANCE. |
31 | * $/LicenseInfo$ | 31 | * $/LicenseInfo$ |
32 | * | ||
32 | * @endcond | 33 | * @endcond |
33 | */ | 34 | */ |
34 | 35 | ||
diff --git a/linden/indra/llplugin/llpluginmessagepipe.h b/linden/indra/llplugin/llpluginmessagepipe.h index 63fd569..8f74f38 100755 --- a/linden/indra/llplugin/llpluginmessagepipe.h +++ b/linden/indra/llplugin/llpluginmessagepipe.h | |||
@@ -13,13 +13,13 @@ | |||
13 | * ("GPL"), unless you have obtained a separate licensing agreement | 13 | * ("GPL"), unless you have obtained a separate licensing agreement |
14 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 14 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
15 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 15 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
16 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | 16 | * online at http://secondlife.com/developers/opensource/gplv2 |
17 | * | 17 | * |
18 | * There are special exceptions to the terms and conditions of the GPL as | 18 | * There are special exceptions to the terms and conditions of the GPL as |
19 | * it is applied to this Source Code. View the full text of the exception | 19 | * it is applied to this Source Code. View the full text of the exception |
20 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 20 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
21 | * online at | 21 | * online at |
22 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | 22 | * http://secondlife.com/developers/opensource/flossexception |
23 | * | 23 | * |
24 | * By copying, modifying or distributing this software, you acknowledge | 24 | * By copying, modifying or distributing this software, you acknowledge |
25 | * that you have read and understood your obligations described above, | 25 | * that you have read and understood your obligations described above, |
@@ -29,6 +29,7 @@ | |||
29 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | 29 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, |
30 | * COMPLETENESS OR PERFORMANCE. | 30 | * COMPLETENESS OR PERFORMANCE. |
31 | * $/LicenseInfo$ | 31 | * $/LicenseInfo$ |
32 | * | ||
32 | * @endcond | 33 | * @endcond |
33 | */ | 34 | */ |
34 | 35 | ||
diff --git a/linden/indra/llplugin/llpluginprocesschild.cpp b/linden/indra/llplugin/llpluginprocesschild.cpp index e13376f..0b7ce3d 100755 --- a/linden/indra/llplugin/llpluginprocesschild.cpp +++ b/linden/indra/llplugin/llpluginprocesschild.cpp | |||
@@ -13,13 +13,13 @@ | |||
13 | * ("GPL"), unless you have obtained a separate licensing agreement | 13 | * ("GPL"), unless you have obtained a separate licensing agreement |
14 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 14 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
15 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 15 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
16 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | 16 | * online at http://secondlife.com/developers/opensource/gplv2 |
17 | * | 17 | * |
18 | * There are special exceptions to the terms and conditions of the GPL as | 18 | * There are special exceptions to the terms and conditions of the GPL as |
19 | * it is applied to this Source Code. View the full text of the exception | 19 | * it is applied to this Source Code. View the full text of the exception |
20 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 20 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
21 | * online at | 21 | * online at |
22 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | 22 | * http://secondlife.com/developers/opensource/flossexception |
23 | * | 23 | * |
24 | * By copying, modifying or distributing this software, you acknowledge | 24 | * By copying, modifying or distributing this software, you acknowledge |
25 | * that you have read and understood your obligations described above, | 25 | * that you have read and understood your obligations described above, |
@@ -29,6 +29,7 @@ | |||
29 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | 29 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, |
30 | * COMPLETENESS OR PERFORMANCE. | 30 | * COMPLETENESS OR PERFORMANCE. |
31 | * $/LicenseInfo$ | 31 | * $/LicenseInfo$ |
32 | * | ||
32 | * @endcond | 33 | * @endcond |
33 | */ | 34 | */ |
34 | 35 | ||
@@ -156,7 +157,6 @@ void LLPluginProcessChild::idle(void) | |||
156 | { | 157 | { |
157 | setState(STATE_PLUGIN_INITIALIZING); | 158 | setState(STATE_PLUGIN_INITIALIZING); |
158 | LLPluginMessage message("base", "init"); | 159 | LLPluginMessage message("base", "init"); |
159 | message.setValue("user_data_path", mUserDataPath); | ||
160 | sendMessageToPlugin(message); | 160 | sendMessageToPlugin(message); |
161 | } | 161 | } |
162 | break; | 162 | break; |
@@ -329,7 +329,6 @@ void LLPluginProcessChild::receiveMessageRaw(const std::string &message) | |||
329 | if(message_name == "load_plugin") | 329 | if(message_name == "load_plugin") |
330 | { | 330 | { |
331 | mPluginFile = parsed.getValue("file"); | 331 | mPluginFile = parsed.getValue("file"); |
332 | mUserDataPath = parsed.getValue("user_data_path"); | ||
333 | } | 332 | } |
334 | else if(message_name == "shm_add") | 333 | else if(message_name == "shm_add") |
335 | { | 334 | { |
diff --git a/linden/indra/llplugin/llpluginprocesschild.h b/linden/indra/llplugin/llpluginprocesschild.h index 8e9579e..96ae7b4 100755 --- a/linden/indra/llplugin/llpluginprocesschild.h +++ b/linden/indra/llplugin/llpluginprocesschild.h | |||
@@ -13,13 +13,13 @@ | |||
13 | * ("GPL"), unless you have obtained a separate licensing agreement | 13 | * ("GPL"), unless you have obtained a separate licensing agreement |
14 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 14 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
15 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 15 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
16 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | 16 | * online at http://secondlife.com/developers/opensource/gplv2 |
17 | * | 17 | * |
18 | * There are special exceptions to the terms and conditions of the GPL as | 18 | * There are special exceptions to the terms and conditions of the GPL as |
19 | * it is applied to this Source Code. View the full text of the exception | 19 | * it is applied to this Source Code. View the full text of the exception |
20 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 20 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
21 | * online at | 21 | * online at |
22 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | 22 | * http://secondlife.com/developers/opensource/flossexception |
23 | * | 23 | * |
24 | * By copying, modifying or distributing this software, you acknowledge | 24 | * By copying, modifying or distributing this software, you acknowledge |
25 | * that you have read and understood your obligations described above, | 25 | * that you have read and understood your obligations described above, |
@@ -29,6 +29,7 @@ | |||
29 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | 29 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, |
30 | * COMPLETENESS OR PERFORMANCE. | 30 | * COMPLETENESS OR PERFORMANCE. |
31 | * $/LicenseInfo$ | 31 | * $/LicenseInfo$ |
32 | * | ||
32 | * @endcond | 33 | * @endcond |
33 | */ | 34 | */ |
34 | 35 | ||
@@ -99,8 +100,6 @@ private: | |||
99 | 100 | ||
100 | std::string mPluginFile; | 101 | std::string mPluginFile; |
101 | 102 | ||
102 | std::string mUserDataPath; | ||
103 | |||
104 | LLPluginInstance *mInstance; | 103 | LLPluginInstance *mInstance; |
105 | 104 | ||
106 | typedef std::map<std::string, LLPluginSharedMemory*> sharedMemoryRegionsType; | 105 | typedef std::map<std::string, LLPluginSharedMemory*> sharedMemoryRegionsType; |
diff --git a/linden/indra/llplugin/llpluginprocessparent.cpp b/linden/indra/llplugin/llpluginprocessparent.cpp index 9b8ea8b..8ea28f1 100755 --- a/linden/indra/llplugin/llpluginprocessparent.cpp +++ b/linden/indra/llplugin/llpluginprocessparent.cpp | |||
@@ -13,13 +13,13 @@ | |||
13 | * ("GPL"), unless you have obtained a separate licensing agreement | 13 | * ("GPL"), unless you have obtained a separate licensing agreement |
14 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 14 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
15 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 15 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
16 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | 16 | * online at http://secondlife.com/developers/opensource/gplv2 |
17 | * | 17 | * |
18 | * There are special exceptions to the terms and conditions of the GPL as | 18 | * There are special exceptions to the terms and conditions of the GPL as |
19 | * it is applied to this Source Code. View the full text of the exception | 19 | * it is applied to this Source Code. View the full text of the exception |
20 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 20 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
21 | * online at | 21 | * online at |
22 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | 22 | * http://secondlife.com/developers/opensource/flossexception |
23 | * | 23 | * |
24 | * By copying, modifying or distributing this software, you acknowledge | 24 | * By copying, modifying or distributing this software, you acknowledge |
25 | * that you have read and understood your obligations described above, | 25 | * that you have read and understood your obligations described above, |
@@ -29,6 +29,7 @@ | |||
29 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | 29 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, |
30 | * COMPLETENESS OR PERFORMANCE. | 30 | * COMPLETENESS OR PERFORMANCE. |
31 | * $/LicenseInfo$ | 31 | * $/LicenseInfo$ |
32 | * | ||
32 | * @endcond | 33 | * @endcond |
33 | */ | 34 | */ |
34 | 35 | ||
@@ -99,14 +100,12 @@ void LLPluginProcessParent::errorState(void) | |||
99 | setState(STATE_ERROR); | 100 | setState(STATE_ERROR); |
100 | } | 101 | } |
101 | 102 | ||
102 | void LLPluginProcessParent::init(const std::string &launcher_filename, const std::string &plugin_filename, bool debug, const std::string &user_data_path) | 103 | void LLPluginProcessParent::init(const std::string &launcher_filename, const std::string &plugin_filename, bool debug) |
103 | { | 104 | { |
104 | mProcess.setExecutable(launcher_filename); | 105 | mProcess.setExecutable(launcher_filename); |
105 | mPluginFile = plugin_filename; | 106 | mPluginFile = plugin_filename; |
106 | mCPUUsage = 0.0f; | 107 | mCPUUsage = 0.0f; |
107 | mDebug = debug; | 108 | mDebug = debug; |
108 | mUserDataPath = user_data_path; | ||
109 | |||
110 | setState(STATE_INITIALIZED); | 109 | setState(STATE_INITIALIZED); |
111 | } | 110 | } |
112 | 111 | ||
@@ -363,7 +362,6 @@ void LLPluginProcessParent::idle(void) | |||
363 | { | 362 | { |
364 | LLPluginMessage message(LLPLUGIN_MESSAGE_CLASS_INTERNAL, "load_plugin"); | 363 | LLPluginMessage message(LLPLUGIN_MESSAGE_CLASS_INTERNAL, "load_plugin"); |
365 | message.setValue("file", mPluginFile); | 364 | message.setValue("file", mPluginFile); |
366 | message.setValue("user_data_path", mUserDataPath); | ||
367 | sendMessage(message); | 365 | sendMessage(message); |
368 | } | 366 | } |
369 | 367 | ||
diff --git a/linden/indra/llplugin/llpluginprocessparent.h b/linden/indra/llplugin/llpluginprocessparent.h index 6dbe0c1..523ce51 100755 --- a/linden/indra/llplugin/llpluginprocessparent.h +++ b/linden/indra/llplugin/llpluginprocessparent.h | |||
@@ -13,13 +13,13 @@ | |||
13 | * ("GPL"), unless you have obtained a separate licensing agreement | 13 | * ("GPL"), unless you have obtained a separate licensing agreement |
14 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 14 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
15 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 15 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
16 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | 16 | * online at http://secondlife.com/developers/opensource/gplv2 |
17 | * | 17 | * |
18 | * There are special exceptions to the terms and conditions of the GPL as | 18 | * There are special exceptions to the terms and conditions of the GPL as |
19 | * it is applied to this Source Code. View the full text of the exception | 19 | * it is applied to this Source Code. View the full text of the exception |
20 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 20 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
21 | * online at | 21 | * online at |
22 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | 22 | * http://secondlife.com/developers/opensource/flossexception |
23 | * | 23 | * |
24 | * By copying, modifying or distributing this software, you acknowledge | 24 | * By copying, modifying or distributing this software, you acknowledge |
25 | * that you have read and understood your obligations described above, | 25 | * that you have read and understood your obligations described above, |
@@ -29,6 +29,7 @@ | |||
29 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | 29 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, |
30 | * COMPLETENESS OR PERFORMANCE. | 30 | * COMPLETENESS OR PERFORMANCE. |
31 | * $/LicenseInfo$ | 31 | * $/LicenseInfo$ |
32 | * | ||
32 | * @endcond | 33 | * @endcond |
33 | */ | 34 | */ |
34 | 35 | ||
@@ -60,7 +61,10 @@ public: | |||
60 | LLPluginProcessParent(LLPluginProcessParentOwner *owner); | 61 | LLPluginProcessParent(LLPluginProcessParentOwner *owner); |
61 | ~LLPluginProcessParent(); | 62 | ~LLPluginProcessParent(); |
62 | 63 | ||
63 | void init(const std::string &launcher_filename, const std::string &plugin_filename, bool debug, const std::string &user_data_path); | 64 | void init(const std::string &launcher_filename, |
65 | const std::string &plugin_filename, | ||
66 | bool debug); | ||
67 | |||
64 | void idle(void); | 68 | void idle(void); |
65 | 69 | ||
66 | // returns true if the plugin is on its way to steady state | 70 | // returns true if the plugin is on its way to steady state |
@@ -144,8 +148,6 @@ private: | |||
144 | 148 | ||
145 | std::string mPluginFile; | 149 | std::string mPluginFile; |
146 | 150 | ||
147 | std::string mUserDataPath; | ||
148 | |||
149 | LLPluginProcessParentOwner *mOwner; | 151 | LLPluginProcessParentOwner *mOwner; |
150 | 152 | ||
151 | typedef std::map<std::string, LLPluginSharedMemory*> sharedMemoryRegionsType; | 153 | typedef std::map<std::string, LLPluginSharedMemory*> sharedMemoryRegionsType; |
diff --git a/linden/indra/llplugin/llpluginsharedmemory.cpp b/linden/indra/llplugin/llpluginsharedmemory.cpp index a475f12..e8a411a 100755 --- a/linden/indra/llplugin/llpluginsharedmemory.cpp +++ b/linden/indra/llplugin/llpluginsharedmemory.cpp | |||
@@ -13,13 +13,13 @@ | |||
13 | * ("GPL"), unless you have obtained a separate licensing agreement | 13 | * ("GPL"), unless you have obtained a separate licensing agreement |
14 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 14 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
15 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 15 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
16 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | 16 | * online at http://secondlife.com/developers/opensource/gplv2 |
17 | * | 17 | * |
18 | * There are special exceptions to the terms and conditions of the GPL as | 18 | * There are special exceptions to the terms and conditions of the GPL as |
19 | * it is applied to this Source Code. View the full text of the exception | 19 | * it is applied to this Source Code. View the full text of the exception |
20 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 20 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
21 | * online at | 21 | * online at |
22 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | 22 | * http://secondlife.com/developers/opensource/flossexception |
23 | * | 23 | * |
24 | * By copying, modifying or distributing this software, you acknowledge | 24 | * By copying, modifying or distributing this software, you acknowledge |
25 | * that you have read and understood your obligations described above, | 25 | * that you have read and understood your obligations described above, |
@@ -29,6 +29,7 @@ | |||
29 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | 29 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, |
30 | * COMPLETENESS OR PERFORMANCE. | 30 | * COMPLETENESS OR PERFORMANCE. |
31 | * $/LicenseInfo$ | 31 | * $/LicenseInfo$ |
32 | * | ||
32 | * @endcond | 33 | * @endcond |
33 | */ | 34 | */ |
34 | 35 | ||
diff --git a/linden/indra/llplugin/llpluginsharedmemory.h b/linden/indra/llplugin/llpluginsharedmemory.h index 1d23cbe..081d311 100755 --- a/linden/indra/llplugin/llpluginsharedmemory.h +++ b/linden/indra/llplugin/llpluginsharedmemory.h | |||
@@ -12,13 +12,13 @@ | |||
12 | * ("GPL"), unless you have obtained a separate licensing agreement | 12 | * ("GPL"), unless you have obtained a separate licensing agreement |
13 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 13 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
15 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | 15 | * online at http://secondlife.com/developers/opensource/gplv2 |
16 | * | 16 | * |
17 | * There are special exceptions to the terms and conditions of the GPL as | 17 | * There are special exceptions to the terms and conditions of the GPL as |
18 | * it is applied to this Source Code. View the full text of the exception | 18 | * it is applied to this Source Code. View the full text of the exception |
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 19 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
20 | * online at | 20 | * online at |
21 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | 21 | * http://secondlife.com/developers/opensource/flossexception |
22 | * | 22 | * |
23 | * By copying, modifying or distributing this software, you acknowledge | 23 | * By copying, modifying or distributing this software, you acknowledge |
24 | * that you have read and understood your obligations described above, | 24 | * that you have read and understood your obligations described above, |
@@ -28,6 +28,7 @@ | |||
28 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | 28 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, |
29 | * COMPLETENESS OR PERFORMANCE. | 29 | * COMPLETENESS OR PERFORMANCE. |
30 | * $/LicenseInfo$ | 30 | * $/LicenseInfo$ |
31 | * | ||
31 | * @endcond | 32 | * @endcond |
32 | */ | 33 | */ |
33 | 34 | ||
diff --git a/linden/indra/llplugin/slplugin/slplugin.cpp b/linden/indra/llplugin/slplugin/slplugin.cpp index 526734a..649d568 100755 --- a/linden/indra/llplugin/slplugin/slplugin.cpp +++ b/linden/indra/llplugin/slplugin/slplugin.cpp | |||
@@ -14,13 +14,13 @@ | |||
14 | * ("GPL"), unless you have obtained a separate licensing agreement | 14 | * ("GPL"), unless you have obtained a separate licensing agreement |
15 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 15 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
16 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 16 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
17 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | 17 | * online at http://secondlife.com/developers/opensource/gplv2 |
18 | * | 18 | * |
19 | * There are special exceptions to the terms and conditions of the GPL as | 19 | * There are special exceptions to the terms and conditions of the GPL as |
20 | * it is applied to this Source Code. View the full text of the exception | 20 | * it is applied to this Source Code. View the full text of the exception |
21 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 21 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
22 | * online at | 22 | * online at |
23 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | 23 | * http://secondlife.com/developers/opensource/flossexception |
24 | * | 24 | * |
25 | * By copying, modifying or distributing this software, you acknowledge | 25 | * By copying, modifying or distributing this software, you acknowledge |
26 | * that you have read and understood your obligations described above, | 26 | * that you have read and understood your obligations described above, |
@@ -30,6 +30,7 @@ | |||
30 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | 30 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, |
31 | * COMPLETENESS OR PERFORMANCE. | 31 | * COMPLETENESS OR PERFORMANCE. |
32 | * $/LicenseInfo$ | 32 | * $/LicenseInfo$ |
33 | * | ||
33 | * | 34 | * |
34 | * @endcond | 35 | * @endcond |
35 | */ | 36 | */ |
@@ -240,6 +241,9 @@ int main(int argc, char **argv) | |||
240 | checkExceptionHandler(); | 241 | checkExceptionHandler(); |
241 | #endif | 242 | #endif |
242 | 243 | ||
244 | #if LL_DARWIN | ||
245 | EventTargetRef event_target = GetEventDispatcherTarget(); | ||
246 | #endif | ||
243 | while(!plugin->isDone()) | 247 | while(!plugin->isDone()) |
244 | { | 248 | { |
245 | timer.reset(); | 249 | timer.reset(); |
@@ -247,8 +251,12 @@ int main(int argc, char **argv) | |||
247 | #if LL_DARWIN | 251 | #if LL_DARWIN |
248 | { | 252 | { |
249 | // Some plugins (webkit at least) will want an event loop. This qualifies. | 253 | // Some plugins (webkit at least) will want an event loop. This qualifies. |
250 | EventRecord evt; | 254 | EventRef event; |
251 | WaitNextEvent(0, &evt, 0, NULL); | 255 | if(ReceiveNextEvent(0, 0, kEventDurationNoWait, true, &event) == noErr) |
256 | { | ||
257 | SendEventToEventTarget (event, event_target); | ||
258 | ReleaseEvent(event); | ||
259 | } | ||
252 | } | 260 | } |
253 | #endif | 261 | #endif |
254 | F64 elapsed = timer.getElapsedTimeF64(); | 262 | F64 elapsed = timer.getElapsedTimeF64(); |
diff --git a/linden/indra/media_plugins/webkit/media_plugin_webkit.cpp b/linden/indra/media_plugins/webkit/media_plugin_webkit.cpp index 28c6e98..09ba8dc 100755 --- a/linden/indra/media_plugins/webkit/media_plugin_webkit.cpp +++ b/linden/indra/media_plugins/webkit/media_plugin_webkit.cpp | |||
@@ -47,6 +47,7 @@ | |||
47 | 47 | ||
48 | // set to 1 if you're using the version of llqtwebkit that's QPixmap-ified | 48 | // set to 1 if you're using the version of llqtwebkit that's QPixmap-ified |
49 | #if LL_LINUX | 49 | #if LL_LINUX |
50 | # include <iomanip> | ||
50 | # define LL_QTWEBKIT_USES_PIXMAPS 0 | 51 | # define LL_QTWEBKIT_USES_PIXMAPS 0 |
51 | #else | 52 | #else |
52 | # define LL_QTWEBKIT_USES_PIXMAPS 0 | 53 | # define LL_QTWEBKIT_USES_PIXMAPS 0 |
diff --git a/linden/indra/newview/llviewermedia.cpp b/linden/indra/newview/llviewermedia.cpp index c0d1460..8c5cf6a 100644 --- a/linden/indra/newview/llviewermedia.cpp +++ b/linden/indra/newview/llviewermedia.cpp | |||
@@ -480,7 +480,7 @@ LLPluginClassMedia* LLViewerMediaImpl::newSourceFromMediaType(std::string media_ | |||
480 | { | 480 | { |
481 | LLPluginClassMedia* media_source = new LLPluginClassMedia(owner); | 481 | LLPluginClassMedia* media_source = new LLPluginClassMedia(owner); |
482 | media_source->setSize(default_width, default_height); | 482 | media_source->setSize(default_width, default_height); |
483 | if (media_source->init(launcher_name, plugin_name, false, user_data_path)) | 483 | if (media_source->init(launcher_name, plugin_name, false)) |
484 | { | 484 | { |
485 | return media_source; | 485 | return media_source; |
486 | } | 486 | } |
diff --git a/linden/indra/newview/viewer_manifest.py b/linden/indra/newview/viewer_manifest.py index fcebda9..0c00995 100755 --- a/linden/indra/newview/viewer_manifest.py +++ b/linden/indra/newview/viewer_manifest.py | |||
@@ -1092,7 +1092,8 @@ class Linux_x86_64Manifest(LinuxManifest): | |||
1092 | self.path("libcairo.so.2") | 1092 | self.path("libcairo.so.2") |
1093 | self.path("libfontconfig.so.1") | 1093 | self.path("libfontconfig.so.1") |
1094 | self.path("libfreetype.so.6") | 1094 | self.path("libfreetype.so.6") |
1095 | # self.path("libgdk_pixbuf-2.0.so.0") # use systems gdk pixbufs instead | 1095 | self.path("libgdk_pixbuf-2.0.so.0") # was commented to use systems gdk pixbufs instead - |
1096 | # but seems webkit needs it o_O . Packaging for testing now. | ||
1096 | self.path("libgdk-x11-2.0.so.0") | 1097 | self.path("libgdk-x11-2.0.so.0") |
1097 | self.path("libgtk-x11-2.0.so.0") | 1098 | self.path("libgtk-x11-2.0.so.0") |
1098 | # self.path("libpango-1.0.so.0") # use systems pango instead | 1099 | # self.path("libpango-1.0.so.0") # use systems pango instead |
diff --git a/linden/install.xml b/linden/install.xml index d9f400a..07e7498 100644 --- a/linden/install.xml +++ b/linden/install.xml | |||
@@ -1144,23 +1144,30 @@ Portions copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura | |||
1144 | <key>darwin</key> | 1144 | <key>darwin</key> |
1145 | <map> | 1145 | <map> |
1146 | <key>md5sum</key> | 1146 | <key>md5sum</key> |
1147 | <string>95f44f0023dddc80be4398fc4f213861</string> | 1147 | <string>38a31c64cbb021320c6f8c0296933f2b</string> |
1148 | <key>url</key> | 1148 | <key>url</key> |
1149 | <uri>http://s3.amazonaws.com/viewer-source-downloads/install_pkgs/llqtwebkit-4.6-darwin-20100208.tar.bz2</uri> | 1149 | <uri>http://s3.amazonaws.com/viewer-source-downloads/install_pkgs/llqtwebkit-4.6-darwin-20100402.tar.bz2</uri> |
1150 | </map> | 1150 | </map> |
1151 | <key>linux</key> | 1151 | <key>linux</key> |
1152 | <map> | 1152 | <map> |
1153 | <key>md5sum</key> | 1153 | <key>md5sum</key> |
1154 | <string>4c75b2f1e8524c7844ee3ea1cd59a3db</string> | 1154 | <string>78e22d53c84c8642fbaa027fed20cc48</string> |
1155 | <key>url</key> | 1155 | <key>url</key> |
1156 | <uri>http://s3.amazonaws.com/viewer-source-downloads/install_pkgs/llqtwebkit-linux-20100209b.tar.bz2</uri> | 1156 | <uri>http://s3.amazonaws.com/viewer-source-downloads/install_pkgs/llqtwebkit-linux-20100407.tar.bz2</uri> |
1157 | </map> | ||
1158 | <key>linux64</key> | ||
1159 | <map> | ||
1160 | <key>md5sum</key> | ||
1161 | <string>d602324a827be7e0a8c90f85d27d6151</string> | ||
1162 | <key>url</key> | ||
1163 | <uri>http://imprudenceviewer.org/download/libs/llqtwebkit-linux64-20100617.tar.bz2</uri> | ||
1157 | </map> | 1164 | </map> |
1158 | <key>windows</key> | 1165 | <key>windows</key> |
1159 | <map> | 1166 | <map> |
1160 | <key>md5sum</key> | 1167 | <key>md5sum</key> |
1161 | <string>1e9798dc424a6f6c2bea50649bbcc7ae</string> | 1168 | <string>b6ec5fe296b8ad9097b182b5c09a9589</string> |
1162 | <key>url</key> | 1169 | <key>url</key> |
1163 | <uri>http://viewer-source-downloads.s3.amazonaws.com/install_pkgs/llqtwebkit-windows-qt4.6-20100210.tar.bz2</uri> | 1170 | <uri>http://viewer-source-downloads.s3.amazonaws.com/install_pkgs/llqtwebkit-windows-qt4.6-20100402.tar.bz2</uri> |
1164 | </map> | 1171 | </map> |
1165 | </map> | 1172 | </map> |
1166 | </map> | 1173 | </map> |