Skip to content

Commit

Permalink
Remove global index from clap_plugin_location_element_t, add constant
Browse files Browse the repository at this point in the history
for transparent color in color.h
  • Loading branch information
roelofvkr authored and abique committed Nov 18, 2024
1 parent 04dd411 commit 0bfa8e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 2 additions & 0 deletions include/clap/color.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ typedef struct clap_color {
uint8_t blue;
} clap_color_t;

static const CLAP_CONSTEXPR clap_color_t CLAP_COLOR_TRANSPARENT = { 0, 0, 0, 0 };

#ifdef __cplusplus
}
#endif
7 changes: 2 additions & 5 deletions include/clap/ext/draft/location.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,8 @@ typedef struct clap_plugin_location_element {
int kind;
// Index within the parent element.
uint32_t index_in_group;
// Index of the element in a global context. When sorting elements by this index,
// the order should mirror the order as it is displayed in the host.
uint32_t global_index;
// Color for this element, should be 0x00000000 if no color is used for this
// element.
// Color for this element, should be CLAP_COLOR_TRANSPARENT if no color is
// used for this element.
clap_color_t color;
} clap_plugin_location_element_t;

Expand Down

0 comments on commit 0bfa8e0

Please sign in to comment.