diff --git a/gen/src/synth_shed/synth_shed.h b/gen/src/synth_shed/synth_shed.h index 8002447..144d5af 100644 --- a/gen/src/synth_shed/synth_shed.h +++ b/gen/src/synth_shed/synth_shed.h @@ -1,18 +1,23 @@ #ifndef SYNTH_SHED_H #define SYNTH_SHED_H -// Types +#ifdef __cplusplus +extern "C" { +#endif + + +// Types (as forward declarations) // != 0 means ERR typedef int SYNTH_STATUS; -typedef enum _filtertype filtertype_t; typedef struct _synth synth_t; typedef synth_t synth; + // Enums -enum _filtertype { +typedef enum _filtertype { HPF, LPF, BPF -}; +} filtertype_t; typedef enum _tech { ANALOG, @@ -25,7 +30,6 @@ typedef struct _filter { filtertype_t type; } filter_t; - struct _synth { const char* model_name; int osc_count; @@ -54,4 +58,8 @@ const char* filtertype_to_string(const filtertype_t* filt); const char* play_synth(synth_t* synth); +#ifdef __cplusplus +} // extern "C" +#endif + #endif //SYNTH_SHED_H