@@ -94,7 +94,8 @@ typedef struct clap_context_menu_builder {
94
94
void * ctx ;
95
95
96
96
// Adds an entry to the menu.
97
- // entry_data type is determined by entry_kind.
97
+ // item_data type is determined by item_kind.
98
+ // Returns true on success.
98
99
bool (CLAP_ABI * add_item )(const struct clap_context_menu_builder * builder ,
99
100
clap_context_menu_item_kind_t item_kind ,
100
101
const void * item_data );
@@ -107,13 +108,15 @@ typedef struct clap_context_menu_builder {
107
108
typedef struct clap_plugin_context_menu {
108
109
// Insert plugin's menu items into the menu builder.
109
110
// If target is null, assume global context.
111
+ // Returns true on success.
110
112
// [main-thread]
111
113
bool (CLAP_ABI * populate )(const clap_plugin_t * plugin ,
112
114
const clap_context_menu_target_t * target ,
113
115
const clap_context_menu_builder_t * builder );
114
116
115
117
// Performs the given action, which was previously provided to the host via populate().
116
118
// If target is null, assume global context.
119
+ // Returns true on success.
117
120
// [main-thread]
118
121
bool (CLAP_ABI * perform )(const clap_plugin_t * plugin ,
119
122
const clap_context_menu_target_t * target ,
@@ -123,13 +126,15 @@ typedef struct clap_plugin_context_menu {
123
126
typedef struct clap_host_context_menu {
124
127
// Insert host's menu items into the menu builder.
125
128
// If target is null, assume global context.
129
+ // Returns true on success.
126
130
// [main-thread]
127
131
bool (CLAP_ABI * populate )(const clap_host_t * host ,
128
132
const clap_context_menu_target_t * target ,
129
133
const clap_context_menu_builder_t * builder );
130
134
131
135
// Performs the given action, which was previously provided to the plugin via populate().
132
136
// If target is null, assume global context.
137
+ // Returns true on success.
133
138
// [main-thread]
134
139
bool (CLAP_ABI * perform )(const clap_host_t * host ,
135
140
const clap_context_menu_target_t * target ,
@@ -145,6 +150,7 @@ typedef struct clap_host_context_menu {
145
150
// If the plugin is using embedded GUI, then x and y are relative to the plugin's window,
146
151
// otherwise they're absolute coordinate, and screen index might be set accordingly.
147
152
// If target is null, assume global context.
153
+ // Returns true on success.
148
154
// [main-thread]
149
155
bool (CLAP_ABI * popup )(const clap_host_t * host ,
150
156
const clap_context_menu_target_t * target ,
0 commit comments