Skip to content

Commit

Permalink
Merge pull request #27 from WebPlatformForEmbedded/development/METROL…
Browse files Browse the repository at this point in the history
…-949

Renaming WPEFramework to Thunder
  • Loading branch information
MFransen69 authored Jun 5, 2024
2 parents c2382c7 + c639000 commit 5aa8fea
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ Launcher.json
Makefile
cmake_install.cmake
install_manifest.txt
libWPEFrameworkLauncher.so
libThunderLauncher.so
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.3)

project(Launcher)

find_package(WPEFramework)
find_package(Thunder)

set(MODULE_NAME ${NAMESPACE}${PROJECT_NAME})

Expand Down
4 changes: 2 additions & 2 deletions Launcher.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "Launcher.h"
#include <inttypes.h>

namespace WPEFramework {
namespace Thunder {

ENUM_CONVERSION_BEGIN(Plugin::Launcher::mode)

Expand Down Expand Up @@ -192,4 +192,4 @@ bool Launcher::ScheduleParameters(const Config& config, string& message, Core::T

} //namespace Plugin

} // namespace WPEFramework
} // namespace Thunder
6 changes: 3 additions & 3 deletions Launcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <linux/cn_proc.h>
#include <vector>

namespace WPEFramework {
namespace Thunder {
namespace Plugin {

class Launcher : public PluginHost::IPlugin {
Expand Down Expand Up @@ -767,7 +767,7 @@ class Launcher : public PluginHost::IPlugin {
// The lifetime of the Service object is guaranteed till the deinitialize method is called.
const string Initialize(PluginHost::IShell* service) override;

// The plugin is unloaded from WPEFramework. This is call allows the module to notify clients
// The plugin is unloaded from Thunder. This is call allows the module to notify clients
// or to persist information if needed. After this call the plugin will unlink from the service path
// and be deactivated. The Service object is the same as passed in during the Initialize.
// After theis call, the lifetime of the Service object ends.
Expand All @@ -792,5 +792,5 @@ class Launcher : public PluginHost::IPlugin {
};

} //namespace Plugin
} //namespace WPEFramework
} //namespace Thunder

12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ Plugin to "Launch" linux applications and scripts

### How to launch a script/application

1. Build launcher plugin. It create /usr/lib/wpeframework/plugins/libWPEFrameworkLauncher.so and /root/etc/WPEFramework/plugins/Launcher.json
1. Build launcher plugin. It create /usr/lib/thunder/plugins/libThunderLauncher.so and /root/etc/Thunder/plugins/Launcher.json

Generated Launcher.json contains,
```
{
"locator":"libWPEFrameworkLauncher.so",
"locator":"libThunderLauncher.so",
"classname":"Launcher",
"precondition":[
"Platform"
Expand All @@ -25,7 +25,7 @@ Plugin to "Launch" linux applications and scripts
E.g. to run command < `du -a /etc` >
```
{
"locator":"libWPEFrameworkLauncher.so",
"locator":"libThunderLauncher.so",
"classname":"Launcher",
"precondition":[
"Platform"
Expand All @@ -42,7 +42,7 @@ Plugin to "Launch" linux applications and scripts
E.g. to run < `du -a /etc -h` >
```
{
"locator":"libWPEFrameworkLauncher.so",
"locator":"libThunderLauncher.so",
"classname":"Launcher",
"precondition":[
"Platform"
Expand Down Expand Up @@ -139,7 +139,7 @@ Note:

```
{
"locator":"libWPEFrameworkLauncher.so",
"locator":"libThunderLauncher.so",
"classname":"Launcher",
"precondition":[
"Platform"
Expand All @@ -162,5 +162,5 @@ E.g.

3. Create testapp3.json by copying Launcher.json (cp Launcher.json testapp3.json) and update with proper commands and options/values

4. Run WPEFramework
4. Run Thunder

0 comments on commit 5aa8fea

Please sign in to comment.