summaryrefslogtreecommitdiffhomepage
path: root/api
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-12-19 20:36:56 +0100
committerStanislaw Halik <sthalik@misaki.pl>2021-12-19 20:37:04 +0100
commitcb0753adaefcd365134a16b5ebc0be76c1f7b7da (patch)
tree9e7d6f56e70e804c2d27e9e4a129771d6ff148d1 /api
parentadedc93dfc2f3b62d1fe2cb51207749a2459c2fa (diff)
remove unfinished extension support
Diffstat (limited to 'api')
-rw-r--r--api/plugin-api.cpp2
-rw-r--r--api/plugin-api.hpp45
-rw-r--r--api/plugin-support.hpp6
3 files changed, 0 insertions, 53 deletions
diff --git a/api/plugin-api.cpp b/api/plugin-api.cpp
index 3bfe9855..702870c7 100644
--- a/api/plugin-api.cpp
+++ b/api/plugin-api.cpp
@@ -56,8 +56,6 @@ ITrackerDialog::ITrackerDialog() = default;
ITrackerDialog::~ITrackerDialog() = default;
void ITrackerDialog::register_tracker(ITracker*) {}
void ITrackerDialog::unregister_tracker() {}
-IExtension::~IExtension() = default;
-IExtensionDialog::~IExtensionDialog() = default;
bool module_status::is_ok() const
{
diff --git a/api/plugin-api.hpp b/api/plugin-api.hpp
index 9cc87f82..2d77bdf4 100644
--- a/api/plugin-api.hpp
+++ b/api/plugin-api.hpp
@@ -228,48 +228,3 @@ struct OTR_API_EXPORT ITrackerDialog : public plugin_api::detail::BaseDialog
#define OPENTRACK_DECLARE_TRACKER(tracker_class, dialog_class, metadata_class) \
OPENTRACK_DECLARE_PLUGIN_INTERNAL(tracker_class, ITracker, metadata_class, dialog_class, ITrackerDialog)
-struct OTR_API_EXPORT IExtension : module_status_mixin
-{
- enum event_mask : unsigned
- {
- none = 0u,
- on_raw = 1 << 0,
- on_before_filter = 1 << 1,
- on_before_mapping = 1 << 2,
- on_finished = 1 << 3,
- };
-
- enum event_ordinal : unsigned
- {
- ev_raw = 0,
- ev_before_filter = 1,
- ev_before_mapping = 2,
- ev_finished = 3,
-
- event_count = 4,
- };
-
- IExtension() = default;
- ~IExtension() override;
-
- virtual event_mask hook_types() = 0;
-
- virtual void process_raw(Pose&) {}
- virtual void process_before_filter(Pose&) {}
- virtual void process_before_mapping(Pose&) {}
- virtual void process_finished(Pose&) {}
-
- IExtension(const IExtension&) = delete;
- IExtension& operator=(const IExtension&) = delete;
-};
-
-struct OTR_API_EXPORT IExtensionDialog : public plugin_api::detail::BaseDialog
-{
- ~IExtensionDialog() override;
-
- virtual void register_extension(IExtension& ext) = 0;
- virtual void unregister_extension() = 0;
-};
-
-#define OPENTRACK_DECLARE_EXTENSION(ext_class, dialog_class, metadata_class) \
- OPENTRACK_DECLARE_PLUGIN_INTERNAL(ext_class, IExtension, metadata_class, dialog_class, IExtensionDialog)
diff --git a/api/plugin-support.hpp b/api/plugin-support.hpp
index 9c0a3ae0..30b50753 100644
--- a/api/plugin-support.hpp
+++ b/api/plugin-support.hpp
@@ -38,7 +38,6 @@ enum class dylib_type : unsigned
Filter = 0xdeadbabe,
Tracker = 0xcafebeef,
Protocol = 0xdeadf00d,
- Extension = 0xcafebabe,
Video = 0xbadf00d,
Invalid = (unsigned)-1,
};
@@ -154,7 +153,6 @@ private:
OPENTRACK_LIBRARY_PREFIX "opentrack-tracker-",
OPENTRACK_LIBRARY_PREFIX "opentrack-proto-",
OPENTRACK_LIBRARY_PREFIX "opentrack-filter-",
- OPENTRACK_LIBRARY_PREFIX "opentrack-ext-",
OPENTRACK_LIBRARY_PREFIX "opentrack-video-",
};
@@ -180,20 +178,17 @@ struct Modules final
filter_modules(filter(type::Filter)),
tracker_modules(filter(type::Tracker)),
protocol_modules(filter(type::Protocol)),
- extension_modules(filter(type::Extension)),
video_modules(filter(type::Video))
{}
dylib_list& filters() { return filter_modules; }
dylib_list& trackers() { return tracker_modules; }
dylib_list& protocols() { return protocol_modules; }
- dylib_list& extensions() { return extension_modules; }
private:
dylib_list module_list;
dylib_list filter_modules;
dylib_list tracker_modules;
dylib_list protocol_modules;
- dylib_list extension_modules;
dylib_list video_modules;
static dylib_list& sorted(dylib_list& xs)
@@ -229,7 +224,6 @@ private:
{ type::Filter, OPENTRACK_LIBRARY_PREFIX "opentrack-filter-*." OPENTRACK_LIBRARY_EXTENSION, },
{ type::Tracker, OPENTRACK_LIBRARY_PREFIX "opentrack-tracker-*." OPENTRACK_LIBRARY_EXTENSION, },
{ type::Protocol, OPENTRACK_LIBRARY_PREFIX "opentrack-proto-*." OPENTRACK_LIBRARY_EXTENSION, },
- { type::Extension, OPENTRACK_LIBRARY_PREFIX "opentrack-ext-*." OPENTRACK_LIBRARY_EXTENSION, },
{ type::Video, OPENTRACK_LIBRARY_PREFIX "opentrack-video-*." OPENTRACK_LIBRARY_EXTENSION, dylib_load_none, },
};