|
123456789101112131415161718192021222324252627 |
- #pragma once
- #include <common.hpp>
- #include <engine/Module.hpp>
-
-
- namespace rack {
- namespace engine {
-
-
- struct Cable {
- /** Unique ID for referring to the cable in the engine.
- Between 0 and 2^53 since this is serialized with JSON.
- Assigned when added to the engine.
- */
- int64_t id = -1;
- Module* inputModule = NULL;
- int inputId;
- Module* outputModule = NULL;
- int outputId;
-
- json_t* toJson();
- void fromJson(json_t* rootJ);
- };
-
-
- } // namespace engine
- } // namespace rack
|