Skip to content

Commit

Permalink
Merge pull request #372 from baconpaul/expand-on-init
Browse files Browse the repository at this point in the history
Expand a bit on the difference between init and create
  • Loading branch information
abique authored Dec 22, 2023
2 parents cd54084 + 56fa019 commit f17d956
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/clap/plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ typedef struct clap_plugin {
// Must be called after creating the plugin.
// If init returns false, the host must destroy the plugin instance.
// If init returns true, then the plugin is initialized and in the deactivated state.
// Unlike in `plugin-factory::create_plugin`, in init you have complete access to the host
// and host extensions, so clap related setup activities should be done here rather than in
// create_plugin.
// [main-thread]
bool(CLAP_ABI *init)(const struct clap_plugin *plugin);

Expand Down

0 comments on commit f17d956

Please sign in to comment.