Skip to content

Commit

Permalink
do not include draft headers from clap.h
Browse files Browse the repository at this point in the history
All includes of draft headers have been moved from clap.h to a separate draft.h
header.
  • Loading branch information
micahrj committed Jan 7, 2024
1 parent 29a0b08 commit e8591df
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 11 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ Note: we kept the last draft factory ID in order to not break plugins already us

* [plugin-template.c](src/plugin-template.c): implement thread-safe plugin entry init counter

## Organization

* `clap.h` no longer includes headers from `ext/draft` or `factory/draft`. Draft extension and factory headers must now be explicitly included, either individually or via the `draft.h` header.

# Changes in 1.1.10

* [params.h](include/clap/ext/params.h): add `CLAP_PARAM_IS_ENUM` flag.
Expand Down
11 changes: 0 additions & 11 deletions include/clap/clap.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
#include "factory/plugin-factory.h"
#include "factory/preset-discovery.h"

#include "factory/draft/plugin-invalidation.h"
#include "factory/draft/plugin-state-converter.h"

#include "plugin.h"
#include "plugin-features.h"
#include "host.h"
Expand Down Expand Up @@ -64,11 +61,3 @@
#include "ext/timer-support.h"
#include "ext/track-info.h"
#include "ext/voice-info.h"

#include "ext/draft/ambisonic.h"
#include "ext/draft/cv.h"
#include "ext/draft/midi-mappings.h"
#include "ext/draft/resource-directory.h"
#include "ext/draft/triggers.h"
#include "ext/draft/tuning.h"
#include "ext/draft/extensible-audio-ports.h"
12 changes: 12 additions & 0 deletions include/clap/draft.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#pragma once

#include "factory/draft/plugin-invalidation.h"
#include "factory/draft/plugin-state-converter.h"

#include "ext/draft/ambisonic.h"
#include "ext/draft/cv.h"
#include "ext/draft/midi-mappings.h"
#include "ext/draft/resource-directory.h"
#include "ext/draft/triggers.h"
#include "ext/draft/tuning.h"
#include "ext/draft/extensible-audio-ports.h"
1 change: 1 addition & 0 deletions src/main.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <clap/clap.h>
#include <clap/draft.h>

// The purpose of this file is to check that all headers compile
int main(int argc, char **argv) {
Expand Down
1 change: 1 addition & 0 deletions src/main.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <clap/clap.h>
#include <clap/draft.h>

// The purpose of this file is to check that all headers compile

Expand Down

0 comments on commit e8591df

Please sign in to comment.