Libspinscale: begin splitting it off

This commit is contained in:
2025-12-26 01:18:39 -04:00
parent d5c2b61d4c
commit 45959f9d1c
67 changed files with 776 additions and 615 deletions
@@ -0,0 +1,39 @@
#ifndef COMPONENT_H
#define COMPONENT_H
#include <config.h>
#include <memory>
#include <functional>
#include <spinscale/callback.h>
namespace smo {
class Mind;
class ComponentThread;
class Component
{
public:
Component(const std::shared_ptr<ComponentThread> &thread);
~Component() = default;
public:
std::shared_ptr<ComponentThread> thread;
public:
};
class MindComponent
: public Component
{
public:
MindComponent(Mind &parent, const std::shared_ptr<ComponentThread> &thread);
~MindComponent() = default;
public:
Mind &parent;
};
} // namespace smo
#endif // COMPONENT_H