Skip to content

Commit 3b2e3a0

Browse files
committed
Cleanup
Signed-off-by: falkTX <falktx@falktx.com>
1 parent 2b46a5e commit 3b2e3a0

File tree

3 files changed

+82
-128
lines changed

3 files changed

+82
-128
lines changed

modtools/utils.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,6 @@ class PluginAuthor(Structure):
185185
("email", c_char_p),
186186
]
187187

188-
class PluginPortGroup(Structure):
189-
_fields_ = [
190-
("valid", c_bool),
191-
("symbol", c_char_p),
192-
("name", c_char_p),
193-
]
194-
195188
class PluginGUIPort(Structure):
196189
_fields_ = [
197190
("valid", c_bool),
@@ -228,6 +221,13 @@ class PluginGUI_Mini(Structure):
228221
("thumbnail", c_char_p),
229222
]
230223

224+
class PluginPortGroup(Structure):
225+
_fields_ = [
226+
("valid", c_bool),
227+
("symbol", c_char_p),
228+
("name", c_char_p),
229+
]
230+
231231
class PluginPortRanges(Structure):
232232
_fields_ = [
233233
("minimum", c_float),
@@ -260,11 +260,11 @@ class PluginPort(Structure):
260260
("units", PluginPortUnits),
261261
("comment", c_char_p),
262262
("designation", c_char_p),
263+
("group", c_char_p),
263264
("properties", POINTER(c_char_p)),
264265
("rangeSteps", c_int),
265266
("scalePoints", POINTER(PluginPortScalePoint)),
266267
("shortName", c_char_p),
267-
("groupSymbol", c_char_p),
268268
]
269269

270270
class PluginPortsI(Structure):
@@ -351,9 +351,9 @@ class PluginInfo(Structure):
351351
("bundles", POINTER(c_char_p)),
352352
("gui", PluginGUI),
353353
("ports", PluginPorts),
354+
("portGroups", POINTER(PluginPortGroup)),
354355
("parameters", POINTER(PluginParameter)),
355356
("presets", POINTER(PluginPreset)),
356-
("portGroups", POINTER(PluginPortGroup)),
357357
]
358358

359359
# a subset of PluginInfo
@@ -526,7 +526,6 @@ class JackData(Structure):
526526
CvExpInputModeChanged = CFUNCTYPE(None, c_bool)
527527

528528
c_struct_types = (PluginAuthor,
529-
PluginPortGroup,
530529
PluginGUI,
531530
PluginGUI_Mini,
532531
PluginPortRanges,
@@ -542,8 +541,8 @@ class JackData(Structure):
542541
POINTER(PluginPortScalePoint),
543542
POINTER(PluginPort),
544543
POINTER(PluginParameter),
545-
POINTER(PluginPreset),
546544
POINTER(PluginPortGroup),
545+
POINTER(PluginPreset),
547546
POINTER(PedalboardPlugin),
548547
POINTER(PedalboardConnection),
549548
POINTER(PedalboardPluginPort),

utils/utils.h

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2012-2023 MOD Audio UG
1+
// SPDX-FileCopyrightText: 2012-2025 MOD Audio UG
22
// SPDX-License-Identifier: AGPL-3.0-or-later
33

44
#ifndef MOD_UTILS_H_INCLUDED
@@ -43,12 +43,6 @@ typedef struct {
4343
const char* email;
4444
} PluginAuthor;
4545

46-
typedef struct {
47-
bool valid;
48-
const char* symbol;
49-
const char* name;
50-
} PluginPortGroup;
51-
5246
typedef struct {
5347
bool valid;
5448
unsigned int index;
@@ -82,6 +76,13 @@ typedef struct {
8276
const char* thumbnail;
8377
} PluginGUI_Mini;
8478

79+
typedef struct {
80+
bool valid;
81+
const char* uri;
82+
const char* symbol;
83+
const char* name;
84+
} PluginPortGroup;
85+
8586
typedef struct {
8687
float min;
8788
float max;
@@ -110,11 +111,11 @@ typedef struct {
110111
PluginPortUnits units;
111112
const char* comment;
112113
const char* designation;
114+
const char* group;
113115
const char* const* properties;
114116
int rangeSteps;
115117
const PluginPortScalePoint* scalePoints;
116118
const char* shortName;
117-
const char* groupSymbol;
118119
} PluginPort;
119120

120121
typedef struct {
@@ -192,9 +193,9 @@ typedef struct {
192193
const char* const* bundles;
193194
PluginGUI gui;
194195
PluginPorts ports;
196+
const PluginPortGroup* portGroups;
195197
const PluginParameter* parameters;
196198
const PluginPreset* presets;
197-
const PluginPortGroup* portGroups;
198199
} PluginInfo;
199200

200201
typedef struct {

0 commit comments

Comments
 (0)