mirror of
https://github.com/wiiu-env/libwupsbackend.git
synced 2024-11-22 01:39:18 +01:00
Move everything into the WUPSBackend namespace
This commit is contained in:
parent
c8acaac6a7
commit
2da2336082
@ -24,6 +24,7 @@
|
||||
#include "PluginData.h"
|
||||
#include "PluginMetaInformation.h"
|
||||
|
||||
namespace WUPSBackend {
|
||||
class PluginContainer {
|
||||
|
||||
public:
|
||||
@ -42,3 +43,4 @@ public:
|
||||
const std::shared_ptr<PluginData> pluginData;
|
||||
const std::shared_ptr<PluginMetaInformation> metaInformation;
|
||||
};
|
||||
} // namespace WUPSBackend
|
@ -19,6 +19,7 @@
|
||||
#include <cstdint>
|
||||
#include <wups_backend/import_defines.h>
|
||||
|
||||
namespace WUPSBackend {
|
||||
class PluginData {
|
||||
|
||||
public:
|
||||
@ -31,3 +32,4 @@ public:
|
||||
|
||||
uint32_t handle;
|
||||
};
|
||||
} // namespace WUPSBackend
|
@ -21,6 +21,7 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace WUPSBackend {
|
||||
class PluginMetaInformation {
|
||||
public:
|
||||
[[nodiscard]] const std::string &getName() const {
|
||||
@ -108,3 +109,4 @@ private:
|
||||
std::string storageId;
|
||||
size_t size{};
|
||||
};
|
||||
} // namespace WUPSBackend
|
@ -20,6 +20,7 @@
|
||||
#include "PluginMetaInformation.h"
|
||||
#include <optional>
|
||||
|
||||
namespace WUPSBackend {
|
||||
class PluginUtils {
|
||||
public:
|
||||
static std::optional<std::unique_ptr<PluginMetaInformation>> getMetaInformationForBuffer(char *buffer, size_t size);
|
||||
@ -34,3 +35,4 @@ public:
|
||||
|
||||
static int32_t LoadAndLinkOnRestart(const std::vector<std::unique_ptr<PluginContainer>> &plugins);
|
||||
};
|
||||
} // namespace WUPSBackend
|
@ -20,6 +20,8 @@
|
||||
#include "logger.h"
|
||||
#include <coreinit/debug.h>
|
||||
|
||||
using namespace WUPSBackend;
|
||||
|
||||
PluginData::PluginData(uint32_t handle) {
|
||||
this->handle = handle;
|
||||
}
|
||||
|
@ -18,9 +18,10 @@
|
||||
#include "wups_backend/PluginMetaInformation.h"
|
||||
|
||||
#include <cstring>
|
||||
#include <optional>
|
||||
#include <utility>
|
||||
|
||||
using namespace WUPSBackend;
|
||||
|
||||
PluginMetaInformation::PluginMetaInformation(std::string name,
|
||||
std::string author,
|
||||
std::string version,
|
||||
|
@ -22,6 +22,8 @@
|
||||
#include <cstring>
|
||||
#include <memory>
|
||||
|
||||
using namespace WUPSBackend;
|
||||
|
||||
std::optional<std::unique_ptr<PluginMetaInformation>> getMetaInformation(const plugin_information &info) {
|
||||
if (info.plugin_information_version != PLUGIN_INFORMATION_VERSION) {
|
||||
DEBUG_FUNCTION_LINE_ERR("Version mismatch");
|
||||
|
Loading…
Reference in New Issue
Block a user